Vitals for AI Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Vitals for AI server
The server behind the Vitals for AI iPhone app. The app sends encrypted daily summaries of your Apple Health data here, and this server answers ChatGPT, Claude and other AI apps over a remote MCP endpoint with sign-in (OAuth).
Most people use the hosted service and never need this repository. Run your own copy if you want your health data to stay on infrastructure you control.
What you need
A Cloudflare account. The free plan is enough for one person.
A GitHub account, if you use the deploy button: it copies this repository into your account.
The Vitals for AI app from the App Store.
A step-by-step guide with the app side included: https://nagakaze.com/health/self-host
Related MCP server: apple-health-shortcuts-mcp
Deploy
The button copies this repository into your GitHub account, creates the database and
key-value store, and deploys. Keep the default names on the setup page; it asks for no
secrets. When it finishes, your server has an address like
https://vitals-for-ai.<your-subdomain>.workers.dev, shown on the Worker's page in the
Cloudflare dashboard.
Or from a terminal:
git clone https://github.com/mengchangfeng/vitals-for-ai-server && cd vitals-for-ai-server
npm install
npx wrangler login
npm run deployThis needs Node.js 22.12 or later. wrangler.official.jsonc and npm run deploy:official are
for the hosted service at health.nagakaze.com; ignore them.
To check the result, open <your address>/v1/meta in a browser. It should show:
{"service":"vitals-for-ai","api_version":1,"single_user":true,"claimed":false}Point the app at it
In the app, open Settings › Server and choose Custom.
Enter your server's address, for example
https://vitals-for-ai.example.workers.dev, and confirm.Sign in with Apple. The first person to sign in becomes the owner of the server.
Add connections as usual. The address to give an AI app is your server's address followed by
/mcp.
Switching servers does not move anything. Data and connections on the server you left stay there until you switch back or delete that account.
Settings
These live under vars in wrangler.jsonc. Change them in that file, in your copy of the
repository, and deploy again; values edited only in the dashboard are replaced by the next
deploy.
Name | Default | Meaning |
|
| Only the first person to sign in can use the server. Set to |
|
| Sign-in tokens must come from the App Store app. Leave as is. |
| unset | If you add a custom domain, set this to the bare host, such as |
Updating
Bring the latest changes into your copy and deploy again:
git remote add upstream https://github.com/mengchangfeng/vitals-for-ai-server # once
git pull upstream main
git push # button deploys: Cloudflare redeploys when your GitHub copy changes
npm run deploy # terminal deploysThe database updates itself on first use.
The app checks the server's version (GET /v1/meta) and tells you when the server is too old.
What this server can see
Be clear about what running it means:
Summaries are stored encrypted. The key is created on the iPhone and is not stored here.
Approving a connection gives that connection a copy of the key, encrypted so that only the holder of the connection's token can open it. While answering a request the server decrypts the categories you shared, in memory. This is not end-to-end encryption.
Whoever controls the Cloudflare account controls the server. Protect that account with two-factor sign-in.
Leave
DEV_AUTH_SECRETunset. It enables a sign-in route meant only for local testing.
Develop
npm run dev # local server on http://localhost:8787
node scripts/e2e.mjs # plays phone, browser and AI client against it
npm run typecheckLocal testing needs a .dev.vars file:
DEV_AUTH_SECRET=local-dev-secret
SINGLE_USER=falseLicence
MIT. Vitals for AI is made by Dongfeng Li, publishing as Nagakaze. Report security problems privately to support@nagakaze.com.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Apple Health MCP for Claude and ChatGPT, works outside the US. iPhone app, no local server.
Hosted Apple Health MCP: daily brief, records, sleep, HRV in ChatGPT, Claude, Grok. Free, no export.
Encrypted Apple Health for MCP clients. Your key never leaves your iPhone.
Encrypted Apple Health for MCP clients. Your key never leaves your iPhone.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA private, read-only MCP server that lets Claude retrieve your Oura Ring health data for a daily check-in, self-hosted on Cloudflare with OAuth authentication.-
- AlicenseNot gradedqualityNot gradedmaintenanceExposes read-only Apple Health data (current status, sleep details, trends) to AI via a Cloudflare-deployed MCP server and iPhone Shortcuts.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceA Cloudflare Workers MCP server that allows AI to read-only access Apple Health data (current status, sleep details, trends) via shortcuts without modifying or deleting data.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that gives AI read-only access to Apple Health data through shortcuts and Cloudflare, enabling queries of current stats, detailed records, and trends.MIT