Skip to main content
Glama
AndekQR

Fitatu MCP Unofficial

by AndekQR

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.

  • Diet summary tool for an inclusive date range, including period energy, key nutrients, and full nutrient details.

  • Food search with product and measure identifiers for follow-up mutations.

  • Meal item add, update, move, and remove tools.

  • Recipe search and complete recipe lifecycle tools: create, inspect, update, and delete.

  • Docker workflow for local/private deployment.

Related MCP server: fatsecret-mcp-server

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.

To test the server manually in a browser-based tool, run the MCP Inspector and connect it to the Streamable HTTP endpoint:

npx @modelcontextprotocol/inspector

Use this URL in the Inspector:

http://localhost:3000/mcp

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

get_diet_summary

Returns an agent-friendly nutrition and energy summary for an inclusive date range.

No

search_food

Searches Fitatu food catalogs for product, recipe, and measure identifiers.

No

add_meal_items

Adds products, recipes, or one-off custom items 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_items

Atomically removes exact day-plan entries of any food type by item UUID.

Yes

search_recipes

Lists or searches the user's recipes, public recipes, or both catalogs.

No

get_recipe

Returns canonical per-serving details for a recipe.

No

create_recipe

Creates a private recipe by default from product and measure identifiers.

Yes

update_recipe

Partially updates an owned, editable recipe and returns its resulting recipe ID.

Yes

delete_recipe

Soft-deletes a recipe definition after exact-name confirmation.

Yes

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.

FITATU_USER_AGENT

No

Dart/3.10 (dart:io)

No

Fitatu mobile runtime user agent.

FITATU_APP_VERSION

No

4.14.4

No

Fitatu mobile application version.

FITATU_API_APK_UUID

No

BE4B.251210.005

No

Fitatu mobile build identifier sent to the API.

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

2.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. The mobile client profile defaults match Fitatu 4.14.4 traffic captured on 2026-07-30. Override these values when a newer Fitatu release changes its request profile; no code change is required.

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

test:ci runs deterministic unit tests with an informational V8 coverage report and does not load Fitatu credentials. Generate the same text, HTML, and JSON coverage reports locally with:

npm run test:coverage

The HTML and JSON summary are written to the ignored coverage/ directory. Run strict TypeScript checks for both production and unit-test code with:

npm run typecheck

Integration tests stay separate:

npm run test:integration

Integration tests require valid Fitatu credentials in .env and may read or mutate meal-plan and recipe data in the authenticated account. Recipe workflow tests create temporary recipes and attempt to remove them during cleanup.

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.

  • Treat remove_meal_items as destructive and atomic for its selected day-plan UUIDs.

  • delete_recipe soft-deletes only the catalog definition and leaves existing or historical day-plan snapshots intact.

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

This project is licensed under the MIT License.

A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
2Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AndekQR/fitatu-mcp-unofficial'

If you have feedback or need assistance with the MCP directory API, please join our Discord server