Skip to main content
Glama

Apple Health MCP Server

record.pyβ€’1.68 kB
from typing import Literal from pydantic import BaseModel RecordType = Literal[ "HKQuantityTypeIdentifierStepCount", "HKQuantityTypeIdentifierBodyMassIndex", "HKQuantityTypeIdentifierHeartRate", "HKQuantityTypeIdentifierBodyMass", "HKQuantityTypeIdentifierHeight", "HKQuantityTypeIdentifierDietaryWater", "HKQuantityTypeIdentifierActiveEnergyBurned", "HKQuantityTypeIdentifierBasalEnergyBurned", "HKQuantityTypeIdentifierDistanceWalkingRunning", "HKQuantityTypeIdentifierRunningSpeed", "HKQuantityTypeIdentifierRunningPower", "HKQuantityTypeIdentifierAppleExerciseTime", "HKQuantityTypeIdentifierAppleStandTime", "HKQuantityTypeIdentifierFlightsClimbed", "HKQuantityTypeIdentifierWalkingStepLength", "HKQuantityTypeIdentifierWalkingSpeed", "HKQuantityTypeIdentifierEnvironmentalAudioExposure", ] WorkoutType = Literal[ "HKWorkoutActivityTypeRunning", "HKWorkoutActivityTypeWalking", "HKWorkoutActivityTypeHiking", "HKWorkoutActivityTypeTraditionalStrengthTraining", "HKWorkoutActivityTypeCycling", "HKWorkoutActivityTypeMixedMetabolicCardioTraining", "HKWorkoutActivityTypeHighIntensityIntervalTraining", "HKWorkoutActivityTypeHockey", ] IntervalType = Literal["day", "week", "month", "year"] class HealthRecordSearchParams(BaseModel): record_type: RecordType | WorkoutType | str | None = None source_name: str | None = None date_from: str | None = None date_to: str | None = None min_workout_duration: str | None = None max_workout_duration: str | None = None value_min: str | None = None value_max: str | None = None limit: int = 10

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/the-momentum/apple-health-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server