fitdays-mcp-server
v2.0.0MCP server exposing the unofficial FitDays / iComon smart-scale API as tools (weight history, devices, users) for LLM clients.
Model Context Protocol server that exposes the unofficial FitDays / iComon smart-scale API as tools that an LLM client (Claude Desktop, Claude Code, etc.) can call. It works with accounts on the FitDays 2.0 app, keeps one FitDays session, caches the account data in memory for five minutes, and serves it as structured tool responses. The server reads credentials from environment variables:
Summary extracted from the README.
fitdays-mcp-server
Model Context Protocol server that exposes the unofficial FitDays / iComon smart-scale API as tools that an LLM client (Claude Desktop, Claude Code, etc.) can call.
It works with accounts on the FitDays 2.0 app, keeps one FitDays session, caches the account data in memory for five minutes, and serves it as structured tool responses.
[!WARNING] FitDays allows one session per account: when the server logs in, the FitDays phone app is signed out, and logging in to the app again makes the server log in again on its next refresh. Set
FITDAYS_SESSION_FILE(the Docker image does) so restarts reuse the stored session instead of logging in. Consider a dedicated FitDays account shared with your main one if both need to stay signed in.
Tools
| Tool | What it does |
|---|---|
list_users |
Profiles (people) registered under the account, with the active one and the latest height. |
list_devices |
Scales bound to the account. |
get_weight_history |
Weigh-ins with body composition (body fat, muscle, water, protein, bone mass, visceral and subcutaneous fat, BMR, body age, score, body type), newest first. Filters: account_user_id, since, until, limit. |
get_latest_weight |
Most recent weigh-in, optionally for one account_user_id. |
refresh_sync |
Force-refresh the cached data. Returns record counts. |
Install
npm install -g fitdays-mcp-server
Requires Node.js ≥ 22.
Configuration
The server reads credentials from environment variables:
| Variable | Required | Default |
|---|---|---|
FITDAYS_EMAIL |
yes | — |
FITDAYS_PASSWORD |
yes | — |
FITDAYS_REGION |
no | us (eu and cn also exist) |
FITDAYS_SESSION_FILE |
no | none — the session lives in memory only. The Docker image sets /data/session.json |
Use with Claude Desktop / Claude Code
Add it to your MCP client config (claude_desktop_config.json or
~/.claude.json / .mcp.json):
{
"mcpServers": {
"fitdays": {
"command": "npx",
"args": ["-y", "fitdays-mcp-server"],
"env": {
"FITDAYS_EMAIL": "you@example.com",
"FITDAYS_PASSWORD": "your-password"
}
}
}
}
Run with Docker
A multi-arch image (linux/amd64, linux/arm64) is published to GitHub
Container Registry on every release, tagged with the release version
(1.2.0, 1.2, 1) and latest:
docker run -d --name fitdays-mcp \
-e FITDAYS_EMAIL=you@example.com \
-e FITDAYS_PASSWORD=your-password \
-v fitdays-mcp-data:/data \
-p 8000:8000 \
ghcr.io/roquerodrigo/fitdays-mcp-server:latest
The volume keeps the FitDays session across container re-creations, so updating the image does not log in again (and sign the phone app out).
The container serves the server over
Streamable HTTP
at http://localhost:8000/mcp, with a health endpoint at /healthz, so
remote MCP clients can connect to it directly:
{
"mcpServers": {
"fitdays": {
"type": "http",
"url": "http://localhost:8000/mcp"
}
}
}
Credentials are read only from the environment; nothing is baked into the image. To use the stdio transport instead, run the server binary as the container command:
{
"mcpServers": {
"fitdays": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "FITDAYS_EMAIL", "-e", "FITDAYS_PASSWORD",
"-v", "fitdays-mcp-data:/data",
"ghcr.io/roquerodrigo/fitdays-mcp-server:latest",
"fitdays-mcp-server"
],
"env": {
"FITDAYS_EMAIL": "you@example.com",
"FITDAYS_PASSWORD": "your-password"
}
}
}
}
Upgrading from 1.x
Version 2 follows the move of FitDays accounts to the FitDays 2.0 app, whose API returns different data:
- Profiles are identified by
account_user_id(a string) instead ofsuid;list_usersno longer returns sex, birthday or target weight. - Measurements use descriptive field names (
body_fat_pct,visceral_fat_index, …) grouped underbody_composition. ext_data(FitDays reference ranges and targets) and theinclude_deleted/include_ext_dataoptions are gone; the 2.0 API does not return deleted records.refresh_syncreturns a plain count of weight records.
Run from source
git clone https://github.com/roquerodrigo/fitdays-mcp-server.git
cd fitdays-mcp-server
npm install
npm run build
FITDAYS_EMAIL=… FITDAYS_PASSWORD=… npm start
Support
This MCP server is built and maintained on personal time, on hardware bought for the purpose. If it is useful to you, consider sponsoring the work — it keeps the devices, the testing and the releases coming.
License
MIT