Skip to content
unofficial WeightWatchers MCP

WeightWatchers MCP in VS Code

One file in your workspace connects GitHub Copilot’s agent mode to your WW account: points, diary, food search, recipes and tracking.

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

VS Code reads MCP servers from .vscode/mcp.json

The same server and tools as in Claude, configured for VS Code.

Show the config

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 login

The 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.

## Let it ask before it writes

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 print ww: MCP server running (stdio). on stderr and wait.
  • node not found by the client: use the absolute path of node in command.
  • Use the MCP inspector: npx @modelcontextprotocol/inspector npx -y unofficial-weightwatchers-mcp.

More in Troubleshooting.

Continue with