Your WeightWatchers diary, kept by your AI assistant.
Ask for your points, paste a recipe, say what you had for lunch. An unofficial MCP server, CLI, Node library and local HTTP API that let Claude, Cursor or your own code work with your WW account, while WW does the points maths.
Free and open source (MIT) · runs on your computer · not affiliated with WeightWatchers
Log my lunch: this recipe, I had one of the four servings.
Chickpea & spinach curry · serves 4
2 tins chickpeas, 200 g baby spinach, 400 ml light coconut milk, 1 onion, 2 tbsp red curry paste, 1 tbsp olive oil, 150 g basmati rice
I’ll match the ingredients in WW, save the recipe so WW calculates the points, then track one serving.
Done. Chickpea & spinach curry is saved in your recipes at 7 points per serving, and one serving is in your diary under lunch. You’ve used 21 of 30 today, so 9 are left, plus 12 in your weekly allowance.
Saved to your recipes
Chickpea & spinach curry
4 servings · 7 ingredients matched
7
per serving
Today
Thursday, 3 December
- Used
- 21 of 30
- Weekly left
- 12 of 28
- BreakfastOvernight oats, flat white8
- Lunch Chickpea & spinach currynew 7
- SnacksApple, dark chocolate, crispbread6
- DinnerNothing tracked yet0
Stylised mock with invented data, not a real client. Connected, the same tools work on your own account.
Works in the assistants and tools you already use
- ClaudeDesktop and Code
- CodexOpenAI, over stdio
- Cursormcp.json
- VS CodeCopilot agent mode
- n8nvia the HTTP API
Logos are trademarks of Anthropic, OpenAI, Anysphere, Microsoft and n8n, shown to name compatible clients; none of them endorses this project. ChatGPT itself needs a remote connector with OAuth, which this project does not run.
Chat with it, script it, or call it over HTTP.
All four use the same sign-in on your computer and the same 42 tools. Sign in once with ww login; your password goes to WeightWatchers and is not written to disk.
Claude Desktop, one click
Download the extension, double-click, Install.
$ claude mcp add weightwatchers -- npx -y unofficial-weightwatchers-mcp{
"mcpServers": {
"weightwatchers": {
"command": "npx",
"args": ["-y", "unofficial-weightwatchers-mcp"]
}
}
}VS Code uses the key servers with "type": "stdio". Paths for every client: MCP clients.
$ ww day 2026-12-03
2026-12-03
Points today 21 of 30 (remaining: 9)
Weekly allowance 16 of 28 (remaining: 12)
Activity 9 earned
Calories 1184 (target 1500-1800)
Protein 58 g (target 75-110)
Carbohydrates 141 g (target 160-220)
Fat 41 g (target 45-70)
Fiber 29 g (target 25-35)
Weight 78.4 kg (as of 2026-12-01)
$ ww tracked 2026-12-03
Tracked on 2026-12-03
morning
Overnight oats with berries 6 P [MEMBERRECIPE/d3m000000000000000000001]
Flat white, skimmed milk 2 P [WWFOOD/d3m000000000000000000002]
midday
Chickpea & spinach curry 7 P [MEMBERRECIPE/d3m000000000000000000006]
anytime
Dark chocolate, 70 % 3 P [WWFOOD/d3m000000000000000000003]
Apple 0 P [WWFOOD/d3m000000000000000000004]
Rye crispbread 3 P [WWFOOD/d3m000000000000000000005]
Real output of the ww command on invented data. --json prints the raw response. All commands: CLI reference.
import { WeightWatchers } from 'unofficial-weightwatchers-mcp';
const ww = new WeightWatchers(); // uses the session from `ww login`
const recipe = await ww.createMemberRecipe({
name: 'Chickpea & spinach curry',
servingSize: 4,
isBlended: false,
ingredients: await matchIngredients(ww), // ww.search() per line, see below
});
console.log(`Saved "${recipe.name}": ${recipe.points} points per serving`);
await ww.track('2026-12-03', [
{ _id: recipe._id, versionId: recipe.versionId, sourceType: 'MEMBERRECIPE', portionSize: 1, timeOfDay: 'midday' },
]);
const { pointsDetails: p } = await ww.daySummary('2026-12-03');
console.log(`Tracked 1 serving for lunch. ${p.dailyPointsUsed} of ${p.dailyPointTarget} used, ${p.dailyPointsRemaining} left.`);
async function matchIngredients(ww) {
const lines = [['chickpeas', 480], ['spinach', 200], ['coconut milk', 400], ['onion', 1], ['curry paste', 2], ['olive oil', 1], ['basmati', 150]];
const items = [];
for (const [i, [query, quantity]] of lines.entries()) {
const hit = (await ww.search(query, { limit: 1 })).hits[0];
console.log(` ${query.padEnd(13)} → ${hit.name}`);
items.push({ itemSequence: i, itemId: hit._id, itemVersionId: hit.versionId, itemType: hit.sourceType, portionId: hit.portionId, quantity });
}
return items;
}
Node.js 20 or newer, on a server or your machine. The WW API sends no CORS headers, so a browser cannot call it directly: put your backend or ww serve in between. Library reference.
$ ww serve --read-only
$ curl -H "Authorization: Bearer $WW_API_KEY" \
http://127.0.0.1:8787/v1/day/2026-12-03{
"ok": true,
"data": {
"date": "2026-12-03",
"points": {
"used": 21,
"target": 30,
"remaining": 9,
"weeklyAllowanceRemaining": 12
}
}
}
- /openapi.json · /docs
- OpenAPI 3.1 for every route, plus a docs page.
- POST /v1/tools/{tool}
- Any of the 42 MCP tools as a JSON call.
- POST /mcp
- MCP over Streamable HTTP, for n8n and other HTTP clients.
- --read-only
- Only reading tools. Listens on 127.0.0.1 with an API key. HTTP API reference.
Paste a recipe and WW works out the points.
The assistant looks up every ingredient in the WW food database and saves the recipe in your account. The points come from WeightWatchers’ own calculation, and the recipe stays in your list for next time.
Recipes in Samsung Food? Run Unofficial Samsung Food MCP in the same assistant and ask: “Take my oat pancakes from Samsung Food, save them in WeightWatchers and track one serving for breakfast.” The assistant reads the recipe there, WW works out the points here. The two servers only share what the assistant passes between them. Source on GitHub.
Chickpea & spinach curry
serves 4
28 for the pot ÷ 4 servings7
Invented example. Real points depend on your WW plan and the entries the assistant picks; it shows you its matches.
42 tools, each marked by what it may change.
Every tool carries MCP annotations, so clients that ask before writing can ask. Destructive means it can delete or overwrite; deleting is a soft delete at WW, and the object stays readable by its ID.
- read-only
- 20
- write
- 8
- destructive
- 14
Diary 7
- day (read-only)
- tracked (read-only)
- track (write)
- untrack (destructive)
- update_tracked (destructive)
- copy_tracked (write)
- frequent_and_recent (read-only)
Food and points 2
- search_food (read-only)
- calculate_points (read-only)
Recipes 7
- list_my_recipes (read-only)
- get_my_recipe (read-only)
- create_my_recipe (write)
- update_my_recipe (destructive)
- delete_my_recipe (destructive)
- calculate_recipe_points (read-only)
- search_recipes (read-only)
Own foods 5
- list_my_foods (read-only)
- get_my_food (read-only)
- create_my_food (write)
- update_my_food (destructive)
- delete_my_food (destructive)
Saved meals 4
- list_my_meals (read-only)
- create_my_meal (write)
- update_my_meal (destructive)
- delete_my_meal (destructive)
Favorite foods 3
- list_favorite_foods (read-only)
- add_favorite_food (write)
- remove_favorite_food (destructive)
Water 3
- get_water (read-only)
- set_water (destructive)
- delete_water (destructive)
Activity 6
- search_activity (read-only)
- calculate_activity_points (read-only)
- activity_week (read-only)
- log_activity (write)
- update_activity (destructive)
- delete_activity (destructive)
Weight 2
- weight_entries (read-only)
- weight_status (read-only)
Account 2
- status (read-only)
- login (write)
Raw API 1
- api_call (destructive)
Parameters, limits and examples for each tool: tool reference. Anything else in the API: ww_api_call, with no safety net.
What leaves your computer, and where it goes.
There is no server of ours in between and no telemetry. Two parties see your data: WeightWatchers, as always, and the provider of the assistant you connect.
WeightWatchers
The only hosts it calls: auth.weightwatchers.<region>, cmx.weightwatchers.<region>, api.ww.com. Every other host is refused, also for raw calls.
Your computer
- Session token in
~/.weightwatchers/auth.json, mode 600. - Password not stored, unless you opt into the system keychain.
- In a chat,
ww_loginopens a local page, so the password never passes through the assistant.
Your AI provider
Points, diary entries and weight you ask about appear in the conversation and are processed by the model provider of your client. Pick one you are comfortable sharing health data with.
- Unofficial
- Not affiliated with, endorsed by or supported by WW International, Inc. “WeightWatchers” and “WW” are trademarks of their owners; no WW logo is used here.
- Private API
- WW has no public API. Using the private one may violate the WeightWatchers Terms of Service and could get an account restricted. It can change or break without notice.
- Real data
- Write and destructive tools change your actual diary, recipes, foods, meals, water and activity. Use a client that asks before it writes.
- Not medical advice
- It moves numbers between your account and your assistant. Food, weight and health decisions stay with you and the people who treat you.
Details in SECURITY.md. Found a problem? Report it privately there.
Questions people ask first.
Is this an official WeightWatchers API?
No. WeightWatchers has no public API. This is an independent open source project, not affiliated with, endorsed by or supported by WW International, Inc. It uses the private API behind the WW apps with your own sign-in.
Can my WeightWatchers account get restricted?
Possibly. Using the private API may violate the WeightWatchers Terms of Service, and WW could restrict an account for it. Use it at your own risk, not on an account you cannot afford to lose, and not for bulk or commercial access.
Where does my data go?
From your computer to WeightWatchers (auth.weightwatchers.<region>, cmx.weightwatchers.<region>, api.ww.com) and nowhere else. There is no server run by this project and no telemetry. Tool results such as points, diary entries and weight go to your AI client and from there to its model provider.
Where is my password stored?
Nowhere by default. It is sent to WeightWatchers to sign in and then dropped; only a session token is kept in ~/.weightwatchers/auth.json (mode 600). For unattended renewal you can opt into the system credential store with ww login --save-password, or set WW_EMAIL and WW_PASSWORD on a server.
Does the assistant estimate points?
It should not, and the tools tell it so. For a recipe it searches each ingredient in the WW food database and saves the recipe in your account with ww_create_my_recipe, so WeightWatchers computes the points itself. ww_calculate_points uses the WW formula for raw nutrition values.
Does it work outside Germany?
Only region de (weightwatchers.de) is tested. Other WW markets (com, co.uk, fr, nl, be, ch, com.au, ca) are accepted with WW_REGION and are experimental. Sign-in needs an e-mail and password; social logins are not supported.
Can I call it from a web page?
Not directly. The WW API sends no CORS headers, so a browser cannot call it. Use the library on a backend, or run ww serve on your machine and call its local HTTP API.
Is it medical advice?
No. It moves numbers between your WW account and your assistant. Decisions about food, weight and health belong with you and the people who treat you.
Sign in once, then ask.
Node.js 20 or newer and a WeightWatchers login with e-mail and password. Only weightwatchers.de is tested; other regions are experimental.
$ npx --package unofficial-weightwatchers-mcp ww loginE-mail: you@example.com
Password (not stored unless --save-password):
Signed in as you@example.com (region de)