Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoEnables stateless HTTP on :PORT; absent means stdio.
ZEPP_CONFIGNoConfig path.~/.zepp-mcp/config.json
ZEPP_REGIONNoRegion: global, eu or us.global
ZEPP_USER_IDNoUser id; normally discovered from recent band data.auto
ZEPP_API_BASENoOverride the activity API (proxy or tests). Default is the region default.
ZEPP_APPTOKENNoApptoken for the default profile. Optional if saved via setup_credentials instead of the environment.
ZEPP_TIMEZONENoIANA timezone for date boundaries.Local
ZEPP_CACHE_TTLNoSnapshot cache duration.5m
ZEPP_CONFIG_KEYNoAES-256-GCM key for saved secrets.
ZEPP_WEIGHT_APINoOverride the weight API.https://api-mifit.zepp.com
ZEPP_HISTORY_DAYSNoHistory window. Requests are batched in 30-day chunks.2200
ZEPP_CONFIG_KEY_FILENoFile containing the AES-256-GCM key.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Zepp MCP server reads activity, sleep, heart rate, workouts and body composition from the unofficial Zepp cloud.

  1. SETUP: call check_auth_status. If no apptoken is saved, sign in at https://user.huami.com/privacy2/index.html, copy the apptoken cookie and call setup_credentials with it. The token persists in ~/.zepp-mcp/config.json.

  2. READ: get_daily_summary, get_daily_health, get_sleep, get_sleep_breathing, get_heart_rate, get_hrv, get_respiratory_rate, get_readiness, get_body_charge, list_workouts, get_workout_detail, list_devices, get_workout_track, export_workout_gpx, get_stress, get_training_load, get_sport_load, get_vo2_max, get_spo2, get_pai, get_skin_temperature, get_health_events, get_body_measurements, get_trend, compare_periods, get_raw_collection and export_data.

  3. SYNC: the first read logs in with the apptoken and downloads the configured history window (default 2200 days). Snapshots are cached for five minutes; refresh_sync forces a fresh download.

The API is unofficial. Every tool except setup_credentials is read-only. Over HTTP, X-MCP-User selects the profile; stdio uses "default".

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_auth_statusA

Read-only. Report the saved Zepp apptoken, profile, region and cache state without network access.

compare_periodsC

Read-only. Compare average daily metrics between two date ranges.

export_dataC

Read-only. Export daily, sleep, heart-rate, workout or body rows as CSV or JSON.

export_workout_gpxB

Read-only. Export one workout with a GPS track as GPX 1.1 text.

get_body_chargeC

Read-only. Zepp Body Charge daily min/max/average with mental and physical components.

get_body_measurementsB

Read-only. Weight and body-composition records from Zepp scale data.

get_daily_healthC

Read-only. Daily steps, active calories, active minutes and distances with Zepp goals and goal-met flags.

get_daily_summaryB

Read-only. Daily steps, distance and active calories for a date range, newest first.

get_health_eventsC

Read-only. Generic Zepp event stream for respiratory rate, HRV, body battery and other event types.

get_heart_rateC

Read-only. Resting and minute-level passive heart rate, newest first.

get_hrvC

Read-only. Daily HRV averages with minute-level RMSSD and SDNN samples; SDNN unit is unverified.

get_paiB

Read-only. PAI daily score, rolling total, zone scores/minutes and PAI heart rates.

get_profileA

Read-only. Return the Zepp user id, region, timezone and available data counts.

get_raw_collectionB

Read-only. Redacted raw Zepp payloads for band, heart_rate, workouts or body.

get_readinessB

Read-only. Zepp readiness score with HRV, resting-HR, skin-temperature, sleep-breathing, physical and mental component scores.

get_respiratory_rateC

Read-only. Daily respiratory rate from overnight per-minute samples.

get_skin_temperatureB

Read-only. Overnight skin-temperature deviation from the personal baseline, score and baseline.

get_sleepB

Read-only. Sleep sessions with duration, stages, score and resting heart rate.

get_sleep_breathingB

Read-only. Overnight ODI, desaturation events, measured minutes and sleep-breathing score.

get_spo2A

Read-only. Manual SpO2 readings and oxygen-desaturation events from the blood-oxygen event stream; use get_sleep_breathing for overnight ODI.

get_sport_loadC

Read-only. Daily and weekly Zepp training load with the optimal range and overreaching flag.

get_stressB

Read-only. Daily stress from HRV with avg/max/min, zone percentages and 5-minute readings.

get_training_loadC

Read-only. Zepp exertion: exercise score, target, completion, recovery and ATL/CTL/TSB.

get_trendC

Read-only. Weekly trend and weekly slope for steps, distance, calories, sleep, resting heart rate, weight or body composition.

get_vo2_maxB

Read-only. Zepp VO2 max estimates from qualifying outdoor workouts.

get_workout_detailA

Read-only. Raw Zepp detail for one workout track id (GPS, heart-rate and pace series when available).

get_workout_trackB

Read-only. Decoded GPS, altitude, heart-rate, cadence and power points for one workout.

list_devicesA

Read-only. Bound Zepp devices with model, firmware, serial and active state. Device auth keys are never returned.

list_workoutsC

Read-only. Workout history with type, duration, distance, calories and heart rate.

refresh_syncA

Read-only. Bypass the five-minute cache and download a fresh Zepp snapshot.

setup_credentialsC

Save a Zepp apptoken and validate it. The apptoken comes from the apptoken cookie on user.huami.com.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 31 tools

Disambiguation3/5

Most tools map to a distinct Zepp metric, but several pairs have genuinely fuzzy boundaries: get_daily_health vs get_daily_summary both return daily steps/distance/calories, get_sport_load vs get_training_load both cover training load, and get_trend vs compare_periods both aggregate over ranges. The descriptions partially resolve these (get_spo2 explicitly redirects to get_sleep_breathing), but an agent still has to read carefully to pick the right one.

Naming Consistency5/5

Every tool follows a consistent snake_case verb_noun pattern (get_, list_, export_, compare_, check_, refresh_, setup_) with a domain-specific noun. No camelCase mixing, no vague single-word names, and the verb choice reliably signals the operation type.

Tool Count2/5

At 31 tools the surface is well past the comfortable 3-15 range and above the 25+ 'too many' threshold. While each metric is individually defensible, several tools could be folded together (e.g. daily_health/daily_summary, sport_load/training_load) or parameterized by metric type instead of one tool per Zepp field.

Completeness4/5

Coverage of the read-only Zepp health domain is broad and deep: sleep, HR/HRV, SpO2, stress, temperature, body composition, PAI, readiness, training load, workouts, GPS export and raw payloads are all present. Minor gaps remain, such as no way to clear/revoke saved credentials after setup_credentials, and no unified single-day report spanning all metrics.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues