Fitatu MCP Unofficial

io.github.AndekQR由 GitHub 账号 AndekQR 发布v3.0.1更新于 Oct 24, 2026

Unofficial MCP server for the Polish Fitatu app. Search foods and manage meals, recipes, and logs.

已验证STDIO仅桌面位置与生活效率与工作流

概览

AI 生成的概览

非官方 MCP 服务器,让助手读取和修改你自己的 Fitatu 饮食账户:食物搜索、餐食计划、食谱和身体测量。

可以做什么
通过 stdio 或 Streamable HTTP 为个人 Fitatu 账户提供类型化工具。可查询个人资料、每日计划、营养汇总、用户设置和身体测量,并可搜索食物与食谱。写入类工具可添加、更新、替换、移动或删除餐食条目,以及创建、更新或软删除食谱。该项目与 Fitatu 无关联。
适用场景
当你希望助手在自己的 Fitatu 账户中记录或调整餐食、查询食物和条形码、查看营养与能量汇总,或管理食谱时使用。适合个人饮食记录,而非团队或多用户场景。
运行要求
作为本地 Node.js 进程运行(Node.js >= 22.18.0、npm),也可用 Docker;需要 Fitatu 账户。需设置 FITATU_EMAIL 和 FITATU_PASSWORD,通常放在 .env 文件中。可选:ngrok 以及单独的 FITATU_INTEGRATION_* 测试账户,用于隧道和集成测试流程。
安装前请注意
需要你的 Fitatu 账户凭据(FITATU_EMAIL、FITATU_PASSWORD);请将其与账户数据视为敏感信息,不要提交 .env。许多工具会写入、移动或删除餐食条目和食谱,集成测试可能改动餐食计划、食谱和身体测量数据。Dockerfile 会把 .env 复制进镜像,因此不要发布或分享该镜像。远程隧道 URL 无需认证即可访问。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Fitatu MCP Unofficial,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Fitatu MCP Unofficial logo]

Fitatu MCP Unofficial

Unofficial Model Context Protocol (MCP) server for accessing and updating data in your own Fitatu account. It provides typed tools for profile data, meal plans, nutrition summaries, food search, and recipe management over stdio or Streamable HTTP.

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

Features

  • Profile, day-plan, and nutrition summary queries.
  • Latest or date-specific body measurement lookup and partial updates for explicit calendar dates.
  • Food and recipe search with identifiers required by mutation tools.
  • Meal item creation, update, replacement, movement, and removal.
  • Recipe creation, inspection, update, and deletion.
  • MCP transports for local stdio and Streamable HTTP clients.
  • Local development and Docker workflows.

Requirements

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

Docker and ngrok are optional and required only for their respective workflows.

Quick start

Install dependencies and create the local configuration file:

bash
npm installcp .env.example .env

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

bash
npm run dev:server

The default MCP endpoint is http://localhost:3000/mcp.

MCP client configuration

Choose one transport with MCP_TRANSPORT:

TransportBest forProcess model
stdioA local client that launches its own MCP serverOne server process per client
httpA persistent server shared by one or more clientsLong-running server on /mcp

stdio

Build the server before configuring the client:

bash
npm run build

Use absolute paths to the repository's .env and dist/index.js files:

json
{	"mcpServers": {		"fitatu": {			"command": "node",			"args": [				"--env-file=/absolute/path/to/fitatu-mcp-unofficial/.env",				"/absolute/path/to/fitatu-mcp-unofficial/dist/index.js"			],			"env": {				"MCP_TRANSPORT": "stdio"			}		}	}}

The client starts and stops the server. In stdio mode, logs are written to stderr because stdout is reserved for the JSON-RPC stream.

Streamable HTTP

Start the server with npm run dev:server, or build and run it with:

bash
npm run buildnpm start

Clients with native Streamable HTTP support can connect directly to:

text
http://localhost:3000/mcp

For a client that launches remote MCP connections through a command, use mcp-remote:

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

To inspect the local server interactively:

bash
npm run inspector

Connect the Inspector to http://localhost:3000/mcp.

Remote MCP access with ngrok

Install and authenticate ngrok. In .env, configure two different Fitatu accounts using FITATU_* and FITATU_INTEGRATION_*, then add your assigned domain:

dotenv
NGROK_DOMAIN=your-assigned-domain.ngrok-free.dev
bash
npm run dev:tunnel:all  # Personal and test accounts, gateway, and ngrok tunnelnpm run dev:tunnel:test # Test account, gateway, and ngrok tunnel (alternative)

In any MCP client that supports remote Streamable HTTP connections, use one of these URLs without authentication:

  • Personal: https://YOUR_NGROK_DOMAIN/personal/mcp
  • Test: https://YOUR_NGROK_DOMAIN/test/mcp

Available tools

ToolPurpose
get_current_userReturn a safe subset of the authenticated user profile.
get_body_measurementReturn the latest body measurement, or the complete entry for an optional YYYY-MM-DD date.
save_body_measurementPartially update body measurements for a YYYY-MM-DD date using profile units.
get_user_settingsReturn date-resolved energy, calculated, and water settings with requested and effective dates; date defaults to today in the Fitatu timezone.
update_user_settingsSet a manual or automatic energy target, update the water serving size, or apply both changes together.
get_day_plan_itemsReturn meals and food items for a YYYY-MM-DD date.
get_diet_summarySummarize nutrition and energy for an inclusive date range.
search_foodSearch Fitatu food catalogs and return mutation-ready identifiers.
search_food_by_barcodesSearch the public food catalog for up to 10 barcodes in parallel.
add_meal_itemsAdd products, recipes, or custom items to a meal.
update_meal_itemUpdate quantity, measure, or eaten state.
replace_meal_itemReplace one exact meal entry.
move_meal_itemMove an item to another meal, date, or both.
remove_meal_itemsAtomically remove selected day-plan entries by UUID.
search_recipesSearch private recipes, public recipes, or both catalogs.
get_recipeReturn canonical per-serving recipe details.
create_recipeCreate a private recipe from product and measure identifiers.
update_recipePartially update an owned, editable recipe.
delete_recipeSoft-delete a recipe after exact-name confirmation.

Configuration

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

VariableRequiredDefaultDescription
FITATU_EMAILYes—Fitatu account email address.
FITATU_PASSWORDYes—Fitatu account password.
FITATU_INTEGRATION_EMAILFor integration tests and tunnel commands—Email address of a dedicated Fitatu test account.
FITATU_INTEGRATION_PASSWORDFor integration tests and tunnel commands—Password for the dedicated Fitatu test account.
MCP_TRANSPORTNohttpMCP transport: http or stdio.
PORTNo3000HTTP port; unused in stdio mode.
HOSTNo0.0.0.0HTTP bind address; unused in stdio mode. The tunnel launcher forces loopback.
NODE_ENVNodevelopmentdevelopment, production, or test.
SERVER_NAMENofitatu-mcpName reported by the MCP server.
SERVER_VERSIONNo3.0.0Version reported by the MCP server.
LOG_LEVELNoinfosilent, error, warn, info, or debug.
FITATU_USER_AGENTNoDart/3.10 (dart:io)Fitatu mobile runtime user agent.
FITATU_APP_VERSIONNo4.14.4Fitatu mobile application version.
FITATU_API_APK_UUIDNoBE4B.251210.005Fitatu mobile build identifier.

Do not commit .env. The mobile client profile defaults match Fitatu 4.14.4 traffic captured on 2026-07-30 and can be overridden without changing code.

Docker

The current image build requires a configured .env file:

bash
cp .env.example .envdocker build -t fitatu-mcp .docker run --name fitatu-mcp -p 3000:3000 fitatu-mcp

The Dockerfile copies .env into the image. Treat the resulting image as sensitive; do not publish or share it.

Development

TaskCommand
One server using .env, with automatic restart; no ngroknpm run dev:server
Personal and test servers, gateway, and ngroknpm run dev:tunnel:all
Test server, gateway, and ngroknpm run dev:tunnel:test
Stop this repository's development servers and ngrok, including orphaned processesnpm run dev:stop
Production buildnpm run build
Start built servernpm start
Type checkingnpm run typecheck
Lintnpm run lint
Formatting checknpm run format:check
Unit tests with coveragenpm run test:ci
Local coverage reportnpm run test:coverage
Integration testsnpm run test:integration

npm run test:ci is deterministic and does not load Fitatu credentials. Integration tests use the dedicated Fitatu test account described above and may mutate its meal-plan, recipe, and body-measurement data.

See ARCHITECTURE.md for layer boundaries and design rules, and CONTRIBUTING.md for contribution guidelines.

License

Licensed under the MIT License.

来源:README.md,提交 e4538bb

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v3.0.1最新Sep 21, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分