Before you start
Node.js 20 or newer and a WeightWatchers account that signs in with e-mail and password. Sign in once in a terminal; the server reuses the stored session:
npx --package unofficial-weightwatchers-mcp ww loginThe password goes to WeightWatchers and is not written to disk. Prefer not to use a terminal? Ask the assistant to sign you in later: the ww_login tool opens a local page in your browser, so the password never passes through the chat. More on sign-in, sessions and regions: Getting started.
Add the server
Create .vscode/mcp.json in the workspace. This file uses the key servers, not mcpServers, and needs type:
{
"servers": {
"weightwatchers": {
"type": "stdio",
"command": "npx",
"args": ["-y", "unofficial-weightwatchers-mcp"]
}
}
}Settings such as the region go into an env object in the same entry, for example "env": { "WW_REGION": "de" }. All variables: Configuration.
Check the connection
Save the file. VS Code shows the server in mcp.json with a control to start it, and lists its state in the MCP server view. Open Copilot Chat, switch to agent mode, and check that the WeightWatchers tools are enabled in the tools picker.
Try it
Ask in plain words. The assistant picks the tools; a client that asks before writing shows each write call first.
“How many points do I have left today?”
“What did I track yesterday, and how many points was dinner?”
“Save this recipe in WeightWatchers and track one serving for dinner: …”
“Log 30 minutes of cycling for today.”
Every tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint). Clients that
support per-tool approval can auto-approve read-only tools and ask before every write or destructive
tool, for example ww_track, ww_untrack, ww_create_my_recipe, ww_set_water and ww_api_call. See the tool reference for the flag of each tool.
If nothing happens
- Restart the client after changing its configuration.
- Run the server by hand:
npx -y unofficial-weightwatchers-mcp. It should printww: MCP server running (stdio).on stderr and wait. nodenot found by the client: use the absolute path ofnodeincommand.- Use the MCP inspector:
npx @modelcontextprotocol/inspector npx -y unofficial-weightwatchers-mcp.
More in Troubleshooting.