Mi Fitness
БесплатноНе проверенMCP server for Mi Fitness cloud data. Provides a local SQLite-backed server to sync and query daily activity, heart rate, and body measurements.
Описание
MCP server for Mi Fitness cloud data. Provides a local SQLite-backed server to sync and query daily activity, heart rate, and body measurements.
README
MCP server for Mi Fitness data.
This project provides a local SQLite-backed MCP server for Mi Fitness cloud data.
Current data coverage
Confirmed with the current cloud flow:
- daily activity
- steps
- distance
- active calories
- heart rate
- body measurements
- weight
- BMI
- fat, water, bone, and muscle metrics
- visceral fat
- basal metabolism
Not yet confirmed with the current Xiaomi cloud endpoint:
- sleep
- workouts
Install
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
Setup
You need:
userIdpassToken
Typical flow:
- Open
https://account.xiaomi.com - Sign in to your Xiaomi account
- Open browser DevTools
- Inspect cookies for
account.xiaomi.com - Copy
userIdandpassToken
Configure the server:
mi-fitness-mcp setup --mode mi_fitness_cloud --user-id "<userId>" --pass-token "<passToken>" --region ru
mi-fitness-mcp doctor
For local endpoint exploration there is also a probe script:
python probe_mifitness.py --user-id "<userId>" --pass-token "<passToken>"
Use
mi-fitness-mcp sync --start-date 2025-04-01 --end-date 2025-05-31
mi-fitness-mcp serve
MCP client config
Example Claude Desktop config:
{
"mcpServers": {
"mi-fitness": {
"command": "mi-fitness-mcp",
"args": ["serve"]
}
}
}
Example prompts
Show my daily activity for the last 14 daysHow has my resting heart rate changed this month?Summarize my latest body measurementsSync my latest Mi Fitness data
Commands
mi-fitness-mcp --help
mi-fitness-mcp setup --help
mi-fitness-mcp doctor
mi-fitness-mcp sync --help
mi-fitness-mcp serve
Development
pytest
python -m build
Troubleshooting
Connection: failed- verify
userIdandpassToken - verify region, usually
ru
- verify
Credentials not found- run
setupagain
- run
syncreturns no data- try another date range
- verify that the data actually exists in Mi Fitness cloud
Security
passTokenis stored via the system keyring- do not commit
.env, local config files, or real credentials - rotate tokens if they were pasted into chats or shell history
Disclaimer
This is an unofficial project and is not affiliated with Xiaomi.
Установка Mi Fitness
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/kubulashvili/mi-fitness-mcpFAQ
Mi Fitness MCP бесплатный?
Да, Mi Fitness MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Mi Fitness?
Нет, Mi Fitness работает без API-ключей и переменных окружения.
Mi Fitness — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Mi Fitness в Claude Desktop, Claude Code или Cursor?
Открой Mi Fitness на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Mi Fitness with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
