loseit-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@loseit-mcpsearch for Greek yogurt"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
loseit-mcp
An MCP server and CLI for logging food to Lose It!.
⚠️ Unofficial. Lose It! publishes no public API. This talks to the private GWT-RPC endpoint used by the Lose It! web app, so it can break whenever they ship a new web build.
Tools
Tool | Description |
| Search the food database; returns |
| Full nutrition and serving detail for one food |
| A day's entries with calories and macros, plus totals |
| Log a database food to a meal |
| Log arbitrary calories/macros with no database match |
| Record a weigh-in |
| Delete a diary entry |
| Show the authenticated account |
log_custom_food exists because updateFoodLogEntry carries the food's name,
brand, and nutrient map inline — so an entry can describe a food the database
has never heard of. Use it for restaurant meals, homemade dishes, or any
portion where forcing a database match would distort the numbers.
Related MCP server: nutrition-mcp
Setup
uv sync
cp .env.example .env # then fill in your credentialsConfiguration
Settings resolve in priority order: CLI flags → environment → .env → JSON
config file → defaults.
Variable | Required | Description |
| yes* | Lose It! account email |
| yes* | Lose It! account password |
| no | A |
| no | UTC offset in whole hours; auto-detected |
| no | GWT permutation, if Lose It ships a new build |
| no | GWT policy hash, if Lose It ships a new build |
* Not required if LOSEIT_TOKEN is set.
.env is gitignored. The session token is cached at
~/.config/loseit-mcp/session.json with owner-only permissions and refreshes
automatically when it expires.
Running the server
loseit-mcp serve # stdio (default)
loseit-mcp serve --transport streamable-http --port 8000Register the stdio server with an MCP client:
{
"mcpServers": {
"loseit": {
"command": "uv",
"args": ["run", "loseit-mcp", "serve"],
"cwd": "/absolute/path/to/loseit-mcp"
}
}
}CLI
The same operations are available directly, which is the easiest way to test:
loseit-mcp search "greek yogurt" -n 5
loseit-mcp describe <food_id>
loseit-mcp diary 2026-07-25
loseit-mcp log <food_id> -m lunch -a 120 -u g
loseit-mcp log-custom "Caesar Salad" 620 -m lunch -b "Gastrohub" -p 46 -c 18 -f 40
loseit-mcp weigh 199.2
loseit-mcp delete <entry_id> -d 2026-07-25Add --dry-run to either log command to preview the math without writing, and
--json for machine-readable output.
Notes
Deleting writes a recoverable copy to local trash before the wire call.
Weights carry no unit over the wire; the number is interpreted in whatever unit the account displays (lb or kg).
Fractional portions of database foods can display a misleading unit (half a banana rendering as "1/4 Each") because the server's canonical serving count differs from the food's native unit. Calories stay correct, but
log-customis the more predictable route for odd portions.
Architecture
The GWT-RPC wire format is handled by the
phitoduck/lose-it SDK. This project
adds email/password authentication (the SDK expects you to supply a JWT
yourself, and its browser-cookie import does not support Windows), the
custom-food logging path, weight recording via saveRecordedWeight (captured
from the web app's weigh-in widget), and the MCP server and CLI layers.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cabird/loseit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server