Calorie Tracker MCP Server
MCP server for tracking daily calorie intake with accurate BMR/TDEE calculations. Built on Cloudflare Workers with D1 database.
Potencialize seu agente
Instalação do publicador. Não é um endpoint do PlugMCP.
Host a copy with our keys and logs.
Ainda não há uma versão empacotada no registro. Siga o README do repositório.
URL remota ou um comando na sua máquina? Como as duas instalações diferem
Rodar no PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
AbrirDo publicador
MCP server for tracking daily calorie intake with accurate BMR/TDEE calculations. Built on Cloudflare Workers with D1 database.
MCP server for tracking daily calorie intake. Built on Cloudflare Workers with D1 database.
pnpm install
# Create resources and update wrangler.jsonc with IDs
npx wrangler d1 create calorie-tracker
npx wrangler kv:namespace create OAUTH_KV
# Run migrations and start dev server
npx wrangler d1 migrations apply calorie-tracker --local
pnpm run dev
Set an admin API key:
# Development: Update wrangler.jsonc vars.ADMIN_API_KEY
# Production: Use secrets
npx wrangler secret put ADMIN_API_KEY
Register an OAuth client to obtain credentials:
curl -X POST http://localhost:8787/oauth/register \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_ADMIN_API_KEY" \
-d '{
"client_name": "Claude Desktop",
"redirect_uris": ["http://127.0.0.1/callback", "http://localhost/callback"],
"user_id": "admin"
}'
Note: Claude Desktop will specify its callback URL during the OAuth flow. If you get a redirect URI mismatch error, check Claude Desktop's OAuth logs for the actual callback URL it expects.
Response:
{
"client_id": "uuid-client-id",
"client_secret": "generated-secret",
"client_name": "Claude Desktop"
}
Simple authentication using client secret as bearer token:
Register OAuth client:
curl -X POST http://localhost:8787/oauth/register \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_ADMIN_API_KEY" \
-d '{
"client_name": "Claude Desktop",
"redirect_uris": ["https://claude.ai/api/mcp/auth_callback"],
"user_id": "admin"
}'
Save the client_secret from response.
Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"calorie-tracker": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8787/sse"],
"env": {
"BEARER_TOKEN": "<client_secret from registration>"
}
}
}
}
Private connector with Client ID/Secret:
Register OAuth client with callback URL https://claude.ai/api/mcp/auth_callback
Add custom connector in Claude:
https://YOUR-WORKER.workers.dev/sse<client_id from registration><client_secret from registration>Deploy to Cloudflare Workers for mobile/web access:
pnpm run deploy
pnpm run migrate
npx wrangler secret put ADMIN_API_KEY
Food Tracking:
list_entries - List food entries with paginationadd_entry - Add food entry with macrosupdate_entry - Update existing entrydelete_entry - Delete entryProfile Management:
get_profile - Get profile with BMR/TDEE calculationsupdate_profile - Update profile data (height, weight, activity level)get_profile_history - Historical tracking dataAdmin:
register_user - Register new userrevoke_user - Revoke user accessUses Mifflin-St Jeor equation (gold standard):
Male: BMR = (10 × weight) + (6.25 × height) - (5 × age) + 5
Female: BMR = (10 × weight) + (6.25 × height) - (5 × age) - 161
TDEE: BMR × Activity Multiplier (1.2 - 1.9)
pnpm test # Run tests
pnpm run type-check # TypeScript validation
pnpm run deploy # Deploy to production
pnpm run migrate # Run migrations on remote
MCP server for tracking daily calorie intake. Built on Cloudflare Workers with D1 database.
Ferramentas
Ainda não há lista de ferramentas. Servidores remotos recebem uma após a primeira verificação de saúde.
Perguntas frequentes
Copie nesta página a configuração stdio para Cursor, Claude Desktop, Claude Code ou VS Code. Ela usa a instalação do publicador, não um proxy do PlugMCP.
Este registro não lista nenhuma variável de ambiente obrigatória.
Calorie Tracker roda localmente via stdio.
Última verificação: 2026-10-28. MCP server for tracking daily calorie intake. Built on Cloudflare Workers with D1 database.