Lose It MCP
Enables access to Lose It calorie tracking data including daily summaries with budgets and remaining calories, weekly history, and food logs. Integrates with the Lose It web app API to retrieve nutrition information and dietary entries for monitoring caloric intake.
README
Lose It MCP
Unofficial MCP server for Lose It, reverse-engineered from observed web app traffic and validated against live API behavior.
Built entirely by Claude Opus 4.6 via Claude Code.
Overview
This project exposes Lose It calorie tracking and nutrition data through MCP using the web app's GWT-RPC API.
Supported capabilities include:
- reading daily calorie summary with budget, eaten, and remaining calories
- reading weekly calorie history with per-day breakdowns
- reading food log entries with food names and brands
API Coverage
The current implementation uses the Lose It web app GWT-RPC endpoint (www.loseit.com/web/service) with session cookies obtained from api.loseit.com/account/login. The iOS app's protobuf API is not used.
The GWT-RPC policy hash and permutation header are tied to the current Lose It web app build. If Lose It deploys a new version, these values may need updating via environment variables.
Setup
npm install
cp .env.example .env
npm test
npm run build
Configuration requires:
LOSEIT_EMAILLOSEIT_PASSWORD
Optional values:
LOSEIT_TIMEZONE(IANA zone, defaultAmerica/Chicago)LOSEIT_SESSION_PATH(default~/.loseit-mcp/session.json)LOSEIT_REQUEST_TIMEOUT_MS(default15000)LOSEIT_GWT_POLICY_HASH(override if Lose It deploys a new web build)LOSEIT_GWT_PERMUTATION(override if Lose It deploys a new web build)
MCP Setup
The server runs over stdio.
Example client configuration for the built server:
{
"mcpServers": {
"loseit": {
"command": "node",
"args": ["/absolute/path/to/loseit-mcp/dist/index.js"],
"cwd": "/absolute/path/to/loseit-mcp"
}
}
}
For local development without building first:
{
"mcpServers": {
"loseit": {
"command": "npx",
"args": ["tsx", "src/index.ts"],
"cwd": "/absolute/path/to/loseit-mcp"
}
}
}
If a client does not support cwd, pass the Lose It environment variables directly in the client configuration instead of relying on .env.
Notes
- Session cookies are cached to
~/.loseit-mcp/session.jsonto avoid re-authenticating on every server start. The cache is created with restricted file permissions. - The food log returns food names and brands but does not include per-item calorie or macro breakdowns. Daily totals are available from the daily summary tool.
- The GWT-RPC response parser uses targeted pattern extraction rather than a full generic deserializer.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.