Mi Fitness MCP
Provides tools to sync and serve Mi Fitness cloud data, including daily activity (steps, distance, calories), heart rate, and body measurements (weight, BMI, body composition metrics).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mi Fitness MCPShow my daily activity for the last 14 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mi Fitness MCP
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
Related MCP server: whoop-mcp
Install
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'Setup
You need:
userIdpassToken
Typical flow:
Open
https://account.xiaomi.comSign in to your Xiaomi account
Open browser DevTools
Inspect cookies for
account.xiaomi.comCopy
userIdandpassToken
Configure 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>"Use
mi-fitness-mcp sync --start-date 2025-04-01 --end-date 2025-05-31
mi-fitness-mcp serveMCP 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 serveDevelopment
pytest
python -m buildTroubleshooting
Connection: failedverify
userIdandpassTokenverify region, usually
ru
Credentials not foundrun
setupagain
syncreturns no datatry another date range
verify that the data actually exists in Mi Fitness cloud
Security
passTokenis stored via the system keyringdo not commit
.env, local config files, or real credentialsrotate tokens if they were pasted into chats or shell history
Disclaimer
This is an unofficial project and is not affiliated with Xiaomi.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/kubulashvili/mi-fitness-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server