Calorie Tracker MCP Server
@thitiph0n
About Calorie Tracker MCP Server
MCP server for tracking daily calorie intake with accurate BMR/TDEE calculations. Built on Cloudflare Workers with D1 database.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"calorie-tracker-mcp-server": {
"command": "npx",
"args": [
"wrangler",
"d1",
"create",
"calorie-tracker"
]
}
}
}Tools
9List food entries with pagination
Add food entry with macros
Update existing entry
Delete entry
Get profile with BMR/TDEE calculations
Update profile data (height, weight, activity level)
Historical tracking data
Register new user
Revoke user access
Overview
What is Calorie Tracker MCP Server?
MCP server for tracking daily calorie intake with accurate BMR/TDEE calculations. Built on Cloudflare Workers with D1 database, it provides food tracking, profile management, and historical data via API key authentication with role-based access.
How to use Calorie Tracker MCP Server?
Install dependencies with pnpm install, create and migrate the D1 database using Wrangler, then run the development server with pnpm run dev. Configure Claude Desktop by adding the server to mcpServers with a bearer token, and use tools like add_entry, list_entries, and get_profile to interact.
Key features of Calorie Tracker MCP Server
- Food tracking with add, update, delete and macros
- Profile management with BMR/TDEE calculations
- Historical data for weight and body composition
- Secure API key authentication with role-based access
- Admin tools for user registration and revocation
Use cases of Calorie Tracker MCP Server
- Track daily calorie and macronutrient intake
- Calculate personalized BMR and TDEE using Harris-Benedict equation
- Monitor weight and body composition changes over time
- Manage multiple users with admin-level access control
- Deploy as a scalable serverless application on Cloudflare Workers
FAQ from Calorie Tracker MCP Server
How are BMR and TDEE calculated?
BMR uses the Harris-Benedict equation (1984 revision) with separate formulas for males and females. TDEE is BMR multiplied by an activity multiplier ranging from 1.2 to 1.9.
What authentication does the server use?
The server uses API key authentication with role-based access. You must provide a BEARER_TOKEN environment variable matching an admin API key in Claude Desktop config.
What is the tech stack?
The server is built with TypeScript on Cloudflare Workers, uses D1 (SQLite) as the database, Zod for validation, and Vitest for testing.
How do I deploy to production?
Run pnpm run deploy to deploy the server to Cloudflare Workers. Ensure your wrangler.jsonc contains the correct D1 database ID.
What tools are available for food tracking?
Tools include list_entries with pagination, add_entry with macros, update_entry, and delete_entry.

Comments