Calorie Tracker MCP Server
@thitiph0n
关于 Calorie Tracker MCP Server
MCP server for tracking daily calorie intake with accurate BMR/TDEE calculations. Built on Cloudflare Workers with D1 database.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"calorie-tracker-mcp-server": {
"command": "npx",
"args": [
"wrangler",
"d1",
"create",
"calorie-tracker"
]
}
}
}工具
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
概览
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.
其他 分类下的更多 MCP 服务器
Core Philosophy: Connect, Unify, Respond
mindsdbDelegate anything. It comes back done.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Blender
ahujasidOpen-source MCP to use Blender with any LLM
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
评论