Read-only access to your own Mi Fitness (Xiaomi) data: sleep, heart rate, steps, workouts
MCPpedia last refreshed this data
io.github.Jenwein/mifit is an MCP server that read-only access to your own Mi Fitness (Xiaomi) data: sleep, heart rate, steps, workouts. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 85/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-jenwein-mifit": {
"args": [
"mifit"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Read-only access to your own Mi Fitness (Xiaomi) data: sleep, heart rate, steps, workouts
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
uvx 'mifit' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked mifit against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in health
MCP server for the ClinicalTrials.gov v2 API. Search trials, retrieve study details and results, and match patients to eligible trials.
Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.
FL Studio MCP server: AI mixing, mix diagnosis, plugin control, patterns and composition.
Every doctor, your complete record: connect your patient portals or upload records from any doctor.
MCP Security Weekly
Get CVE alerts and security updates for io.github.Jenwein/mifit and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
English · 简体中文
Read your own Mi Fitness (小米运动健康) data from the Xiaomi cloud: a small Python library, a command-line tool and an MCP server for AI assistants.
The Mi Fitness app syncs your steps, heart rate, sleep and more to the Xiaomi cloud, but Xiaomi offers no public API for individuals. mifit signs in to your own account by QR code, reads that synced data and returns it as JSON or as Python objects, so you can build on it.
Unofficial. Not affiliated with, endorsed by or supported by Xiaomi. See Disclaimer.
Tried mifit on your device or in your region? Open an issue to tell us what worked or where you got stuck. Documentation fixes and code contributions are welcome too. See Development to get started.
| Domain | What you get | records type | Checked against the app |
|---|---|---|---|
steps | steps and distance per day | StepRecord | yes |
heart_rate | raw heart-rate samples | HeartRatePoint | yes |
heart_rate_daily | heart rate per day: average, maximum, minimum, resting | HeartRateDailySummary | yes |
consumption | calories per day: resting, active, intake, total | ConsumptionRecord | yes |
sleep | sleep per day: totals, stage minutes, sessions with their stage timeline | SleepRecord → SleepSession → SleepStage | yes; the sleep score could not be checked and is in raw only |
workouts | one entry per workout: start and end, sport, duration, distance, active and total calories, average and maximum heart rate, steps | Workout | yes |
workout_detail | per workout (outdoor runs and rides): per-second samples (heart rate, cumulative distance and steps, cadence, pace or speed) and the GPS track | WorkoutDetail → WorkoutSample / TrackPoint | yes (one outdoor run, one ride); altitude is in raw only: the run's was a few metres off the app's |
spo2_daily | blood oxygen (SpO2) per day: average, maximum, minimum | Spo2DailySummary | yes |
spo2 | raw SpO2 readings | Spo2Point | yes |
stress_daily | stress level per day: average, highest, lowest, and minutes in each stress band (relaxed, mild, moderate, severe) | StressDailySummary | yes |
activity_daily | activity per day, as on the app's 活力指标 page: activity count (活动次数), activity minutes (活动时长), active calories (卡路里) | ActivityDailySummary | yes |
weight | weight entries: time, weight, BMI (body composition in raw only) | WeightRecord | yes; body composition could not be checked and is in raw only |
profile (its own command: mifit profile) | height, weight, daily step, calorie and activity-time goals | UserProfile | yes |
raw (CLI: mifit raw; Python: client.raw, raw_window, daily_report) | the rows of any fitness-data or daily-report key, as the service sends them | none: the service's rows, uninterpreted | not applicable: nothing is interpreted |
"Checked against the app" means the values were compared with what the Mi
Fitness app shows, on one real account (China region, UTC+8). More is
planned. Meanwhile, mifit raw (in Python raw_window and daily_report)
returns the rows of any other key of the fitness-data or (with --daily)
daily-report endpoint, uninterpreted.
What changed in each version, breaking changes included, is in CHANGELOG.md.
Requires Python 3.12 or later; uv installs one for you if needed.
uv tool install mifit # recommended: its own environment, `m
... [View full README on GitHub](https://github.com/jenwein/mifit#readme)