Run your own server

Optional, for people who want their data on infrastructure they control

Most people use the Vitals for AI service and never need this page. If you would rather keep your encrypted health summaries in your own Cloudflare account, you can deploy your own copy of the server and point the app at it. The server is open source, and the free plan is enough for one person.

What you need

Step 1: Deploy the server

Use the button below, sign in to Cloudflare, connect GitHub when asked, and keep the default names. Cloudflare creates the database and key-value store and deploys the server.

Deploy to Cloudflare   View source

Or deploy 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 deploy

When it finishes you have an address like the one below. Open it in a browser: a page titled “Vitals for AI” that names the MCP endpoint means it worked.

https://vitals-for-ai.<your-subdomain>.workers.dev

Step 2: Point the app at your server

  1. In the app, open Settings › Server and choose “Your own server”. If you are not signed in yet, tap “Use your own server” on the sign-in screen.
  2. Enter the address from step 1, tap “Connect to this server”, and confirm.
  3. Sign in with Apple. The first person to sign in becomes the owner; after that no other Apple Account can create an account on it.
  4. Wait for the first sync to finish.

Step 3: Connect your AI apps

Exactly as with the hosted service, but with your own address: add a custom MCP server in the AI app using your server address followed by /mcp, choose OAuth, then scan the code with the app to approve. The Connections tab in the app shows this address and lets you copy it.

https://vitals-for-ai.<your-subdomain>.workers.dev/mcp

What switching servers does

Keeping it up to date

A newer app may need a newer server; the app tells you when the server is too old. To update, bring the latest changes from the source repository into your copy and deploy again. If you used the button, Cloudflare redeploys whenever your GitHub copy changes. The database upgrades itself on first use.

Security notes

Who is responsible

When you use your own server, your health data is not sent to Nagakaze, and you are responsible for the server’s security, availability and the data on it. We cannot see, restore or delete anything stored there. Report security problems to support@nagakaze.com.