Skip to content
unofficial WeightWatchers MCP

The ww command line

Your WW day, diary, recipes, foods, water, activity and weight as plain text in the terminal, or as JSON with --json. It also signs you in and starts the local HTTP API.

Unofficial. Not affiliated with WeightWatchers (WW International, Inc.). Uses the private API behind the WW apps, which may break and may violate the WW terms. What that means

The ww command. From a checkout: node bin/ww.js. Without a command it prints the help.

Global options: --json (raw JSON output where a command has a formatted one) and --region <tld> (default WW_REGION, the stored region, or de).

Sign-in

ww login [--email <address>] [--region <tld>] [--save-password] [--browser] [--password-stdin]

Signs in and stores the session in $WW_HOME/auth.json. Without --email it uses WW_EMAIL, then asks.

The password comes from, in order: --password-stdin, WW_PASSWORD, a prompt without echo. It is never written to a file.

OptionEffect
--save-passwordStore the password in the system credential store, so the client can sign in again when the session expires. Fails if no store is available.
--browserDo not prompt; open a local page on 127.0.0.1 (random port and key) where you enter e-mail and password.
--password-stdinRead the password from standard input.
--region <tld>Region of the account, default de.

ww logout [--keychain]

Removes the stored session. With --keychain the password in the credential store is removed too.

ww status

Shows region, e-mail, member, token expiry, whether a session is stored and where an unattended re-login would get its password (env, keychain, null). Works offline. Never prints a token or password.

ww refresh

Renews the token from the stored session (signing in again if needed and possible).

Data

ww day [YYYY-MM-DD]

Points used, target and remaining, weekly allowance, activity, nutrition against targets and weight. Default: today.

ww tracked [YYYY-MM-DD]

Foods tracked on a day, by slot, with points and [sourceType/foodId].

ww search <text> [--limit n]

Food search; prints names with [sourceType/id]. --json shows the full result.

ww recipes | foods | meals | favorites [--limit n]

Your own recipes (with points per serving), your own foods, your saved meals and your favorite foods, with [sourceType/id]. Read only. --json shows the full answer.

ww water [YYYY-MM-DD]

Water logged on a day (servings and size). Default: today.

ww weight [--limit n]

Weigh-ins, newest first (default 10). Read only.

ww activity [YYYY-MM-DD]

Exercises of the seven days from that day, with minutes, points and the exercise ID. Default: today.

ww get <path> [--full]

A GET against the cmx host, for exploring the API. --full adds fullDetails=true. Example: ww get api/v1/cmx/profile-options. Only the cmx host and api.ww.com are reachable.

ww tools

Lists the MCP tools and whether each reads, writes or deletes.

The CLI has no commands that write: use the MCP tools or the library to create, change or delete data.

ww serve

ww serve [--host 127.0.0.1] [--port 8787] [--read-only] [--allow-raw] [--no-mcp] [--rate-limit 120] [--quiet]
ww serve --show-key

Starts the local HTTP API (REST, OpenAPI, MCP over HTTP) with your stored session. See http-api.md. ww-api is the same as a standalone command.

Continue with