cronometer-api-mcp
MCP server by rwestergren Community
Connects an AI assistant to Cronometer nutrition tracking so it can read and edit food diary entries, macros and fasting data. It is for people who already track their food and weight in Cronometer.
Install cronometer-api-mcp
Built from the published package, never by AI.
claude mcp add cronometer-api-mcp -e CRONOMETER_USERNAME=YOUR_CRONOMETER_USERNAME -e CRONOMETER_PASSWORD=YOUR_CRONOMETER_PASSWORD -- uvx cronometer-api-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"cronometer-api-mcp": {
"env": {
"CRONOMETER_PASSWORD": "YOUR_CRONOMETER_PASSWORD",
"CRONOMETER_USERNAME": "YOUR_CRONOMETER_USERNAME"
},
"args": [
"cronometer-api-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"cronometer-api-mcp": {
"env": {
"CRONOMETER_PASSWORD": "YOUR_CRONOMETER_PASSWORD",
"CRONOMETER_USERNAME": "YOUR_CRONOMETER_USERNAME"
},
"args": [
"cronometer-api-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"cronometer-api-mcp": {
"env": {
"CRONOMETER_PASSWORD": "YOUR_CRONOMETER_PASSWORD",
"CRONOMETER_USERNAME": "YOUR_CRONOMETER_USERNAME"
},
"args": [
"cronometer-api-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add cronometer-api-mcp --env CRONOMETER_USERNAME=YOUR_CRONOMETER_USERNAME --env CRONOMETER_PASSWORD=YOUR_CRONOMETER_PASSWORD -- uvx cronometer-api-mcp{
"mcpServers": {
"cronometer-api-mcp": {
"env": {
"CRONOMETER_PASSWORD": "YOUR_CRONOMETER_PASSWORD",
"CRONOMETER_USERNAME": "YOUR_CRONOMETER_USERNAME"
},
"args": [
"cronometer-api-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add cronometer-api-mcp uvx cronometer-api-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the cronometer-api-mcp block.
About
cronometer-api-mcp is an MCP server for Cronometer, a nutrition tracking app. It lets an AI assistant read food logs, daily macro and micronutrient totals, and nutrition scores. It can also search the food database, add or remove diary entries, create custom foods and recipes, and read fasting history and biometric metrics such as weight.
The server talks to the same JSON REST API used by the Cronometer Android app, which the author reverse-engineered. It runs over stdio and is started with uvx using your Cronometer username and password. Optional settings cover two-factor authentication and an account timezone override. The author describes it as an alternative to cronometer-mcp. It suits people who want an assistant to log meals or review their intake.
Written from the project's README and checked against it.
Tools it gives your assistant
get_food_logReturns diary entries for a date with food names, serving details, and an energy summary.get_daily_nutritionReturns consumed macro and micronutrient totals for every nutrient tracked in Cronometer.get_nutrition_scoresReturns category scores such as Vitamins and Minerals with confidence levels.search_foodsSearches the Cronometer food database by name.get_food_detailsReturns the full nutrition profile and serving sizes for a food.add_food_entryLogs a food serving to the diary.remove_food_entryRemoves one or more diary entries.add_custom_foodCreates a custom food with specified nutrition and optional barcodes.copy_dayCopies all entries from the previous day.get_biometricsReturns biometric time series such as weight or body fat within a date range.
What you need
- A Cronometer account with username and password
- uv, the Python package runner
- An MCP-compatible client such as OpenCode or Claude Desktop
| Setting | Needed | What it is |
|---|---|---|
CRONOMETER_Environment variable | Required | Your Cronometer account email |
CRONOMETER_Environment variable, secret | Required | Your Cronometer account password |
CRONOMETER_Environment variable, secret | Optional | Base32 key for accounts with two-factor authentication |
CRONOMETER_Environment variable | Optional | Optional IANA timezone override, for example America/Los_Angeles |
CRONOMETER_Environment variable | Optional | Comma-separated tool names to expose. Leave blank to expose all tools. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Show me what I ate yesterday and how many calories I have left.
- Log 200 grams of chicken breast to today's diary.
- How have my calories looked over the last 3 days?
Good to know
- Uses an unofficial, reverse-engineered mobile API.
- Transport is stdio only, with no built-in authentication.
- Remote use needs an authenticating gateway or reverse proxy.
- A hosted version for Claude.ai, ChatGPT and Grok is listed as coming soon.
Security check
B- Downloads a script from the internet and runs it (a well-known installer)In
README.md:curl -LsSf https://astral.sh/uv/install.sh | sh
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to cronometer-api-mcp
All alternatives →Standardizes lab test names to LOINC codes and units to UCUM, and symptoms and diagnoses to ICPC-3, offline and with no API key. Built for people who want their health records on their own machine and queryable by an AI agent over MCP.
RuView is a WiFi sensing platform and MCP server that uses low-cost ESP32 sensors to detect people, breathing and heart rate. It is for developers and operators who want room sensing without cameras or wearables.
ToolUniverse is an MCP server that gives AI assistants access to more than 2,700 scientific tools for life science, research and literature. It is aimed at AI scientists, researchers and developers building research systems.
Mirobody is a self-hosted engine that turns lab reports, wearable data and genetic files into a single health record. Its built-in MCP server lets an AI assistant query that record and trace each number back to its source file. It is for people who want their health data on their own machine.
ScanSci PDF gets academic papers for AI agents. Give it a DOI, arXiv ID, article link, reference list or research question, and it searches candidate sources and tries to fetch accessible full texts. It is for students, researchers and labs.
Searches CNKI and Web of Science through an MCP server, returning records with impact factors. It can also open a paper in the user's signed-in browser and read its full text. Built for researchers who want AI answers on science topics backed by the source article.
Compare with Mirobody, Ruview or tooluniverse
cronometer-api-mcp: common questions
Does cronometer-api-mcp work with two-factor authentication?
Yes. Set CRONOMETER_TOTP_SECRET to the base32 key from setup, and the server derives the 6-digit code at each login.
How does it differ from cronometer-mcp?
The author says this server uses the JSON REST API from the Android app with clean payloads and stable, versioned endpoints. cronometer-mcp uses the GWT-RPC web backend.
Can I ask about days other than today?
Yes. Tools accept dates like today, yesterday and N days ago, and get_daily_nutrition and get_food_log accept a days value from 1 to 31.
How do I install cronometer-api-mcp?
In Claude Code run claude mcp add cronometer-api-mcp -e CRONOMETER_USERNAME=YOUR_CRONOMETER_USERNAME -e CRONOMETER_PASSWORD=YOUR_CRONOMETER_PASSWORD -- uvx cronometer-api-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is cronometer-api-mcp the official server?
cronometer-api-mcp is a community project by rwestergren, not verified by a company domain.
Is cronometer-api-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cronometer-api-mcp safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (downloads a script from the internet and runs it (a well-known installer)). Review the code before you install. How grades work.
What are alternatives to cronometer-api-mcp?
Similar MCP servers: Mirobody, Ruview, tooluniverse, Mirobody.
Does cronometer-api-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
