Fitatu MCP Unofficial

Fitatu MCP Unofficial

Unofficial MCP server that exposes Fitatu account operations as tools for inspecting and updating your meal plan.

Category
访问服务器

README

Fitatu MCP Unofficial logo

Fitatu MCP Unofficial

Unofficial Model Context Protocol (MCP) server for Fitatu. It exposes selected Fitatu account operations as typed MCP tools so an MCP client can inspect and update your own meal plan.

[!IMPORTANT] This project is not affiliated with, endorsed by, or sponsored by Fitatu. Fitatu credentials and account data are sensitive. Use this server only with your own account.

Features

  • Streamable HTTP MCP endpoint at /mcp.
  • Fitatu authentication through local environment variables.
  • Safe profile and day-plan read tools.
  • Food search with product and measure identifiers for follow-up mutations.
  • Meal item add, update, move, and remove tools.
  • Docker workflow for local/private deployment.

Requirements

  • Node.js >=22.18.0
  • npm
  • A Fitatu account

Quick Start

Install dependencies:

npm install

Create local configuration:

cp .env.example .env

Fill in FITATU_EMAIL and FITATU_PASSWORD in .env, then start the development server:

npm run dev

The MCP endpoint is available at:

http://localhost:3000/mcp

MCP Client Setup

If your MCP client supports remote Streamable HTTP servers, use this endpoint directly:

http://localhost:3000/mcp

For clients that launch MCP servers through a command, use mcp-remote:

{
  "mcpServers": {
    "fitatu": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:3000/mcp"]
    }
  }
}

When using a public tunnel, replace the local URL with the tunnel URL and keep the /mcp path.

Available Tools

Tool Purpose Mutates Fitatu data
get_current_user Returns a safe subset of the authenticated Fitatu user profile. No
get_day_plan_items Returns meals and food items for a YYYY-MM-DD date. No
search_food Searches Fitatu food catalogs for product, recipe, and measure identifiers. No
add_meal_items Adds one or more products or recipes to a meal. Yes
update_meal_item Updates quantity, measure, or eaten state for an existing meal item. Yes
move_meal_item Moves a meal item to another meal, date, or both. Yes
remove_meal_item Removes an existing meal item. Yes

Typical workflow:

  1. Call get_day_plan_items to inspect available mealKey and itemId values.
  2. Call search_food to find a matching productId, foodId, foodType, and measureId.
  3. Call a mutation tool such as add_meal_items, update_meal_item, move_meal_item, or remove_meal_item.
  4. Call get_day_plan_items again to verify the final state.

Fitatu applies some mutations asynchronously, so a very fast follow-up read may briefly return the previous state.

Configuration

Runtime configuration is read from environment variables and validated at startup.

Variable Required Default Sensitive Description
FITATU_EMAIL Yes none Yes Fitatu account email address.
FITATU_PASSWORD Yes none Yes Fitatu account password.
PORT No 3000 No HTTP server port.
NODE_ENV No development No development, production, or test.
SERVER_NAME No fitatu-mcp No MCP server name.
SERVER_VERSION No 1.0.0 No MCP server version.
LOG_LEVEL No info No error, warn, info, or debug.

Do not commit .env. The repository keeps .env.example as documentation only.

Local Development

Start the server in watch mode:

npm run dev

Build the project:

npm run build

Start the built server:

npm start

Run quality checks:

npm run lint
npm run format:check
npm run test:ci
npm run build

Integration tests require valid Fitatu credentials in .env and may read or mutate data in the authenticated account.

Docker

Create .env before building the image:

cp .env.example .env

Fill in your Fitatu credentials in .env.

Build the Docker image:

docker build -t fitatu-mcp .

The build copies .env into the image so the server can read it at runtime. Treat the built image as sensitive. Do not push it to a public registry or share it with other people.

Run the container:

docker run --name fitatu-mcp -p 3000:3000 fitatu-mcp

If a container with that name already exists, recreate it:

docker stop fitatu-mcp
docker rm fitatu-mcp
docker run --name fitatu-mcp -p 3000:3000 fitatu-mcp

Exposing a Local Server with Cloudflare Tunnel

When the server is running locally on port 3000, expose it through a temporary Cloudflare Tunnel:

cloudflared tunnel --url http://localhost:3000

Cloudflare will print a public tunnel URL. Use that URL with the /mcp path as the MCP endpoint.

Security Notes

  • Use this server only with your own Fitatu account.
  • Do not commit Fitatu credentials, tokens, cookies, account identifiers, nutrition logs, body measurements, or profile data.
  • Do not expose full upstream Fitatu responses in issues, logs, tests, fixtures, or MCP responses.
  • Captured HTTP traffic should be used only for legitimate work with your own account and your own network traffic.
  • Review mutation tool calls carefully before allowing an MCP client to execute them.

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

This project is licensed under the MIT License.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选