kubulashvili/mi-fitness-mcp
MCP server for Mi Fitness data access
[](https://github.com/kubulashvili/mi-fitness-mcp/actions/workflows/ci.yml) [](https://github.com/kubulashvili/mi-fitness-mcp/releases) [](https://github.com/kubulashvili/mi-fitness-mcp/blob/main/LICENSE)
MCP server for Mi Fitness data.
This project provides a local SQLite-backed MCP server for Mi Fitness cloud data.
Confirmed with the current cloud flow:
Not yet confirmed with the current Xiaomi cloud endpoint:
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'You need:
userIdpassTokenTypical flow:
https://account.xiaomi.comaccount.xiaomi.comuserId and passTokenConfigure the server:
mi-fitness-mcp setup --mode mi_fitness_cloud --user-id "<userId>" --pass-token "<passToken>" --region ru
mi-fitness-mcp doctorFor local endpoint exploration there is also a probe script:
python probe_mifitness.py --user-id "<userId>" --pass-token "<passToken>"mi-fitness-mcp sync --start-date 2025-04-01 --end-date 2025-05-31
mi-fitness-mcp serveExample Claude Desktop config:
{
"mcpServers": {
"mi-fitness": {
"command": "mi-fitness-mcp",
"args": ["serve"]
}
}
}Show my daily activity for the last 14 daysHow has my resting heart rate changed this month?Loading reviews...