{
  "markdown": "<!-- delx-wellness header v2 -->\n<h1 align=\"center\">Samsung Health MCP</h1>\n\n<div align=\"center\">\n  <img src=\"assets/banner.png\" alt=\"Samsung Health MCP — Samsung Health MCP for AI agents\" width=\"85%\" />\n</div>\n\n<h3 align=\"center\">\n  Read your Samsung Health CSV/ZIP exports &mdash; activity, sleep, heart, stress &mdash; locally.<br>\n  Local-first MCP server &mdash; <strong>tokens never leave your machine</strong>.\n</h3>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/samsung-health-mcp-unofficial\"><img src=\"https://img.shields.io/npm/v/samsung-health-mcp-unofficial?style=for-the-badge&labelColor=0F172A&color=10B981&logo=npm&logoColor=white\" alt=\"npm version\" /></a>\n  <a href=\"https://www.npmjs.com/package/samsung-health-mcp-unofficial\"><img src=\"https://img.shields.io/npm/dm/samsung-health-mcp-unofficial?style=for-the-badge&labelColor=0F172A&color=0EA5A3&logo=npm&logoColor=white\" alt=\"npm downloads\" /></a>\n  <a href=\"LICENSE\"><img src=\"https://img.shields.io/badge/LICENSE-MIT-22C55E?style=for-the-badge&labelColor=0F172A\" alt=\"License MIT\" /></a>\n  <a href=\"https://wellness.delx.ai/connectors/samsung-health\"><img src=\"https://img.shields.io/badge/SITE-wellness.delx.ai-0EA5A3?style=for-the-badge&labelColor=0F172A\" alt=\"Site\" /></a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/davidmosiah/samsung-health-mcp/stargazers\"><img src=\"https://img.shields.io/github/stars/davidmosiah/samsung-health-mcp?style=for-the-badge&labelColor=0F172A&color=FBBF24&logo=github\" alt=\"GitHub stars\" /></a>\n  <a href=\"https://modelcontextprotocol.io\"><img src=\"https://img.shields.io/badge/BUILT_FOR-MCP-7C3AED?style=for-the-badge&labelColor=0F172A\" alt=\"Built for MCP\" /></a>\n  <a href=\"https://github.com/davidmosiah/delx-wellness-hermes\"><img src=\"https://img.shields.io/badge/HERMES-one--command_setup-10B981?style=for-the-badge&labelColor=0F172A\" alt=\"Hermes one-command setup\" /></a>\n  <a href=\"https://github.com/davidmosiah/delx-wellness\"><img src=\"https://img.shields.io/badge/Samsung%20Health-1428A0?style=for-the-badge&labelColor=0F172A&logoColor=white&logo=samsung&logoColor=white\" alt=\"Samsung Health\" /></a>\n</p>\n\n> ⚡ **One-command install** with [Delx Wellness for Hermes](https://github.com/davidmosiah/delx-wellness-hermes):\n> `npx -y delx-wellness-hermes setup` &mdash; preconfigures this connector and the other 8 in a dedicated Hermes profile.\n>\n> Or wire it standalone into Claude Desktop / Cursor / ChatGPT Desktop &mdash; see the install section below.\n\n---\n\n## HTTP (v2 stateless)\n\nDefault is **stdio**. Optional Streamable HTTP — no session id, JSON responses, loopback only:\n\n```bash\nnpx -y samsung-health-mcp-unofficial --http\n# GET  http://127.0.0.1:3000/health\n# POST http://127.0.0.1:3000/mcp   (sessionless)\n```\n\nEnv: `SAMSUNG_HEALTH_MCP_HOST`, `SAMSUNG_HEALTH_MCP_PORT`, `SAMSUNG_HEALTH_MCP_TRANSPORT=http`.\n\n\n<!-- /delx-wellness header v2 -->\n\n**Unofficial local-first MCP server that reads Samsung Health personal-data CSV/ZIP exports and exposes them safely to AI agents.**\n\n> **Unofficial project.** Not affiliated with, endorsed by, or supported by Samsung Electronics. Samsung Health is a trademark of Samsung Electronics. This package reads exports you generate yourself from the Samsung Health app.\n\n> **No live Samsung Health cloud API.** Samsung has Android SDK paths for partner apps, but this Node MCP does not log into Samsung, scrape accounts, or read Health Connect directly. It reads local exports now; a future Android bridge can sit beside it.\n\nBuilt by [David Mosiah](https://github.com/davidmosiah) as part of [Delx Wellness](https://github.com/davidmosiah/delx-wellness), a registry of local-first wellness MCP connectors for Claude, Cursor, Hermes, OpenClaw and other MCP-compatible agents.\n\n## Why this exists\n\nSamsung Health can collect high-signal wellness data from Galaxy Watch, Galaxy Ring and phones: steps, sleep, exercise, heart rate, oxygen saturation, body measurements and more. Samsung's official Health Data SDK can access many of these data types from Android apps with user permission, but distribution requires the Samsung app process and partnership flow. For a desktop MCP today, the reliable privacy-preserving path is a local personal-data download.\n\nThis connector reads that download locally, supports a folder of CSV files, a single CSV, or a zip containing CSV files, then exposes bounded summaries and records through MCP. No Samsung credentials, no OAuth token, no cloud proxy.\n\n## Setup In 60 Seconds\n\n1. On Android, export data from Samsung Health:\n\n```text\nSamsung Health -> More options -> Settings -> Download personal data\n```\n\n2. Transfer the downloaded Samsung Health folder or zip to this machine.\n\n3. Configure and verify:\n\n```bash\nnpx -y samsung-health-mcp-unofficial setup --export-path /path/to/SamsungHealth\nnpx -y samsung-health-mcp-unofficial doctor\n```\n\nOr let the CLI find the newest local Samsung Health export in `Downloads`, `Desktop` or `Documents`, copy it into managed local storage, and save that path:\n\n```bash\nnpx -y samsung-health-mcp-unofficial setup --auto-import\n```\n\nSupported export paths:\n\n- `/path/to/SamsungHealth/` or another folder containing CSV files\n- `/path/to/samsung_health_export.zip`\n- `/path/to/com.samsung.health.step_count.csv`\n\nThen add this to your MCP client config:\n\n```json\n{\n  \"mcpServers\": {\n    \"samsung_health\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"samsung-health-mcp-unofficial\"]\n    }\n  }\n}\n```\n\nFor Claude Desktop, run `setup --client claude --export-path /path/to/SamsungHealth` and the snippet is written for you.\n\n**Keep it fresh — watch a folder (no Android device needed):**\n\n```bash\nnpx -y samsung-health-mcp-unofficial setup --watch-path /path/to/health-exports\n```\n\nNow every time you download personal data from the Samsung Health app and drop the new `SamsungHealth` folder (or its `.zip`, or any `*samsung*health*.zip`) into that folder, the connector auto-promotes the newest one to be the active export — on server startup and live while it runs — and refreshes the cached summaries. You can also trigger a re-scan on demand with the `samsung_health_reimport` tool. This is the cross-platform recurring-refresh path; a fully live Samsung Health sync still needs a native Android Health Connect bridge.\n\n## Try It With Your Agent\n\n```text\nUse samsung_health_connection_status to check setup, then run samsung_health_daily_summary.\nGive me a 5-line wellness brief for today.\n```\n\n```text\nCall samsung_health_data_inventory first. What Samsung Health signals and date ranges\nare available in this export?\n```\n\n```text\nCall samsung_health_weekly_summary with response_format=json. Compare steps,\nsleep, workouts and heart signals across the last 7 days.\n```\n\n## Data Availability\n\nThe parser is intentionally flexible because Samsung personal-data downloads can vary by app version, locale and device. It infers record types from CSV filenames and headers.\n\n| Data | Available | Notes |\n|---|:---:|---|\n| Steps | yes | `samsung_health_steps` |\n| Distance + active energy | yes | When present in CSVs or exercise rows |\n| Heart rate + resting heart rate | yes | Galaxy Watch exports when available |\n| HRV, respiratory rate, oxygen saturation | yes | Device and region dependent |\n| Sleep + sleep stages | yes | Galaxy Watch sleep exports when available |\n| Workouts / exercise | yes | Duration, distance, calories and activity type |\n| Body weight + body fat | yes | When logged or synced |\n| Live Health Connect read | no | Planned separate Android bridge |\n| Samsung account login | no | Deliberately unsupported |\n\n## Tools\n\nStart with these:\n\n- `samsung_health_connection_status` - verify export path before reading data\n- `samsung_health_data_inventory` - discover available record types, date coverage, source count and stale export risk\n- `samsung_health_daily_summary` - daily wellness brief from export data\n- `samsung_health_weekly_summary` - weekly comparison and habit signals\n\nDiagnostics:\n\n- `samsung_health_capabilities`\n- `samsung_health_agent_manifest`\n- `samsung_health_privacy_audit`\n\nRecords:\n\n- `samsung_health_list_records` - bounded records by `type`, `start`, `end`, `limit`\n- `samsung_health_list_workouts` - bounded workout records\n\nMaintenance:\n\n- `samsung_health_reimport` - re-scan the watch folder (`SAMSUNG_HEALTH_WATCH_PATH`) and promote the newest export, refreshing summaries; pass `check_only: true` to preview without promoting\n\n## Prompts And Resources\n\nPrompts:\n\n- `samsung_health_daily_review`\n- `samsung_health_weekly_review`\n\nResources:\n\n- `samsung-health://capabilities`\n- `samsung-health://agent-manifest`\n- `samsung-health://inventory`\n- `samsung-health://summary/daily`\n- `samsung-health://summary/weekly`\n\n## Privacy And Safety\n\n- Samsung Health exports are sensitive personal health data. Keep them local.\n- Never commit Samsung Health CSV/ZIP exports to GitHub, paste raw exports into chat, or upload them to issues.\n- The export path is read-only; the MCP never modifies your source export.\n- `SAMSUNG_HEALTH_PRIVACY_MODE` defaults to `summary`; raw record dumps are opt-in. It applies to every data path: `samsung_health_list_records`, `samsung_health_list_workouts` and `samsung_health_daily_summary` (which returns individual workout records only when `privacy_mode` is `structured` or `raw`).\n- `samsung_health_weekly_summary` accepts `privacy_mode` but **always aggregates** — a 30-day window of raw workouts is not what a weekly rollup is for. Rather than echoing back a mode it did not apply, the response carries `requested_privacy_mode` (what you asked for), `privacy_mode` (always `summary`, what was applied) and a `privacy_disclosure` naming the override. For record-level access use `samsung_health_daily_summary` or `samsung_health_list_workouts`.\n- Record and workout `metadata` is **allowlisted**, not denylisted. Only recognised wellness columns (times, durations, distances, calories, heart/sleep/body metrics, source names) leave the parser. GPS coordinates, altitude, `deviceuuid` and free-text user fields are dropped at parse time and never reach any tool, resource or `raw` response; a `withheld_metadata_count` field reports how many columns were dropped.\n- This is not medical advice. The server exposes data you exported yourself for personal AI workflows, not diagnosis or emergency monitoring.\n\n## Configuration\n\n```bash\nSAMSUNG_HEALTH_EXPORT_PATH=/path/to/SamsungHealth  # folder, csv, or zip\nSAMSUNG_HEALTH_PRIVACY_MODE=summary                # summary | structured | raw\nSAMSUNG_HEALTH_TIMEZONE=America/Fortaleza          # local-day summaries\nSAMSUNG_HEALTH_WATCH_PATH=/path/to/health-exports  # optional: auto-reimport the newest export dropped here\n```\n\n`setup` writes these settings into `~/.samsung-health-mcp/config.json` with `0600` permissions.\n\n`setup --auto-import` scans common local folders for the newest Samsung Health export and copies it to `~/.samsung-health-mcp/exports/` with restrictive permissions. Fully live Samsung Health sync still requires a separate Android bridge.\n\n### Watch folder (recurring auto-reimport)\n\n`setup --watch-path <dir>` (or `SAMSUNG_HEALTH_WATCH_PATH`) makes the connector treat a folder as a drop zone. On startup, while running (via filesystem events), and whenever the `samsung_health_reimport` tool is called, it promotes the newest Samsung Health export found there — a `SamsungHealth` export directory of CSVs, a single `*.csv`, or any `*samsung*health*.zip` — to be the active export and clears the snapshot + incremental caches so the next summary reflects the new data. `samsung_health_connection_status` reports the watch folder state and warns when a newer export is waiting. Fully live sync still requires a native Android Health Connect bridge.\n\n## Hermes / Remote Setup\n\n```bash\nnpx -y samsung-health-mcp-unofficial setup --client hermes --export-path /path/to/SamsungHealth\nnpx -y samsung-health-mcp-unofficial doctor --client hermes\nhermes mcp test samsung_health\n```\n\nAfter Hermes config changes, use `/reload-mcp` or `hermes mcp test samsung_health`. Don't restart the gateway for normal export access.\n\n## Development\n\n```bash\ngit clone https://github.com/davidmosiah/samsung-health-mcp.git\ncd samsung-health-mcp\nnpm install\nnpm test\n```\n\nOptional local HTTP transport:\n\n```bash\nSAMSUNG_HEALTH_MCP_TRANSPORT=http SAMSUNG_HEALTH_MCP_PORT=3000 node dist/index.js\ncurl http://127.0.0.1:3000/health\n```\n\n## Official References\n\n- Samsung personal-data export: <https://www.samsung.com/us/support/answer/ANS10001379/>\n- Samsung Health Data SDK: <https://developer.samsung.com/health/data/overview.html>\n- Samsung Health Data SDK app process: <https://developer.samsung.com/health/data/process.html>\n- Android Health Connect: <https://support.google.com/android/answer/12201227>\n\n## Links\n\n- npm: <https://www.npmjs.com/package/samsung-health-mcp-unofficial>\n- Docs site: <https://wellness.delx.ai/connectors/samsung-health>\n- GitHub: <https://github.com/davidmosiah/samsung-health-mcp>\n- Delx Wellness registry: <https://github.com/davidmosiah/delx-wellness>\n\n---\n\n## 📧 Contact & Support\n\n- 📨 **support@delx.ai** — general questions, integration help, partnerships\n- 🐛 **Bug reports / feature requests** — [GitHub Issues](https://github.com/davidmosiah/samsung-health-mcp/issues)\n- 🐦 **Updates** — [@delx369](https://x.com/delx369) on X\n- 🌐 **Site** — [wellness.delx.ai](https://wellness.delx.ai)\n\n## Skill or MCP\n\nSame package, two doors. MCP registers tools on stdio/HTTP. The [skill](skill/SKILL.md) can drive the **same** tools through the CLI when the client has no MCP:\n\n```bash\nnpx -y samsung-health-mcp-unofficial call samsung_health_connection_status --json '{}'\n```\n\nCopy `skill/SKILL.md` into your agent skills dir.\n",
  "bytes": 13754,
  "sha": "f77b2bae9543507ad5d29e8a8120721648ca4cf4843cbd359214c5d29e97b735",
  "repo_slug": "davidmosiah/samsung-health-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_davidmosiah_samsung_health_mcp_6a2e3a82/readme"
}