Skip to content
myself.md
Menu
Documentation navigation

Get started

Connect the phone data you choose to share to a compatible AI assistant through MCP (Model Context Protocol).

Choose your starting point

Already connected? Follow MCP workflows for filtered discovery, raw records or scalar summaries, bounded waiting, cloud pagination and automatic file exports.

Public App Store and Google Play downloads are coming soon. Live queries require an installed myself.md app or authorized test build. Developers can follow the source setup instructions. The CLI connects to the service; it does not install the phone app.

  • No installed app: explore the supported datasets, without an account or API key.
  • Installed app: connect your assistant below, pair the same account and approve a profile on the phone.
  • Existing approved cloud export: ask your assistant to list authorized exports and read the chosen file; this does not require a live phone query.

For guided agent setup, use this prompt: Set up myself.md using https://myself.md/llms.txt

Connect an AI assistant

Directory listing: https://smithery.ai/servers/cody-82px/myself-md.

Add this URL as a remote MCP server in your assistant’s settings. MCP is the connection that lets an assistant use myself.md tools.

https://myself.md/mcp
  1. Sign in when your assistant opens the connection flow.
  2. Pair your phone with the same account.
  3. Approve the profiles and data types you want to share.

Your assistant can read only what you approve. Keep the phone app open and connected while verifying a live query, with the required operating-system permissions enabled.

Verify your first health question

Ask: “Discover my approved phone profiles and available health types. Tell me which source, profile and date range you can read before querying.” Confirm the intended phone and selected Health types. Then ask one bounded question, such as the step records for one explicit day and time zone. Wait for the request to complete and check its returned source, interval and pagination before interpreting the records. Empty records do not prove zero activity or authorization.

On iPhone, Apple Health reads use HealthKit. Select only the intended types and grant OS read permission; HealthKit does not disclose read denial. On Android, use Health Connect and enable only the intended read categories, rather than Allow all; older history and exercise routes may require additional consent. Follow the health examples and platform limits. Compatible Claude and Codex clients use the same endpoint above; connector tool availability varies.

Source-specific connection guides

Recorded walkthroughs

  • Choose your context: a silent recording of selecting data types and JSON/JSONL settings in an isolated app QA session.
  • Approve agent access: a silent recording of phone-owner approval in an isolated QA profile. Agents cannot approve themselves.
  • From phone to agent: a silent film combining app setup footage with an illustrated replay of an actual MCP run using synthetic phone data. The agent UI is illustrative.

Recordings date from October 2026; app UI may differ from the current release. Browsers provide native playback controls, and agents can retrieve these public media URLs without authentication. Watching a recording does not initiate account setup or change permissions.

Codex CLI setup

If the owner uses the Codex CLI, first inspect existing connections with codex mcp list. Reuse an existing myself.md entry; otherwise add the remote server:

codex mcp add myself --url https://myself.md/mcp

If that entry still requires OAuth, start sign-in and let the owner complete the browser flow:

codex mcp login myself --scopes myselfmd,offline_access

Use the existing entry's name instead of myself when it differs. After authorization, verify the server's tools are available in the intended session; configuration alone is not a successful connection. Other clients use their supported remote MCP settings. See official Codex MCP instructions.

Pair a phone and approve a profile

Live reads require an installed myself.md app. Public App Store and Google Play downloads are coming soon. If the owner has no installed app or authorized test-build access, explain that prerequisite and offer public discovery or already-approved cloud exports. For a developer installation, use the source setup instructions; do not invent a store link or treat the CLI as a phone installer.

  1. Verify the intended account using get_account_logins where exposed, then list_connected_phones. Reuse the intended paired phone. If an existing connection points to the wrong account, ask the owner to correct it before reading records; do not silently switch accounts.
  2. If a phone still needs pairing and tools/list exposes create_phone_pairing, call it once. Show its returned pairingUrl or QR to the owner. On the installed app, open **Settings → Agent connection**, scan the QR or paste the pairing link, sign in to the same account and confirm. If sign-in returns to **Account**, go Back to the retained **Confirm connection** screen and finish there. On the same phone, the pairing page's **Open in myself.md** button opens the app. Pairing links expire after five minutes and are single-use; keep the link private.
  3. Where exposed, poll get_pairing_status with the returned pairingId, then refresh list_connected_phones and get_phone_data_catalog. Verify the returned device ID identifies the intended phone in that refreshed list and catalog; a non-null device alone is not enough. A displayed QR, browser sign-in or opened app is not a confirmed pairing. For an expired uncompleted link, create a new pairing handoff rather than reusing it.
  4. Open **Profiles**, select the intended profile, and review **Data selection**. Select only the types needed for the task and complete the app's OS/provider permission prompts. On Android, Health Connect may list additional categories; enable only the intended types rather than Allow all. If an earlier denial prevents a new prompt, the owner must re-enable that access in Health Connect → App permissions for the installed myself.md app. A paired online phone approves authenticated agent reads of the saved profile’s selected data without a separate agent toggle. Keep the app open while verifying a live query.
  5. Refresh get_phone_data_catalog and confirm the intended phone is online, the saved profile exists, and its selections cover the request before querying. If catalog is null, there is no discoverable live profile yet; do not guess IDs or enqueue a query.

Some directory connections use the separate read-only resource https://myself.md/mcp/chatgpt. Reuse that connection for its approved reads. It does not expose pairing-ticket creation or profile proposals. If those tools are absent, explain the owner step: pair using a compatible full MCP client connected to https://myself.md/mcp, then return to this connection and rediscover. Both clients and the phone must use the same intended account; verify that identity before continuing. Do not change the existing connector's resource or try hidden tool names to bypass its restrictions. Owners always control profile and OS permissions in the phone app.

What is myself.md?

myself.md is an open-source app for iOS and Android that exports selected health, screen time and recorded location data to files you control. Its MCP server lets compatible AI assistants query approved phone profiles or read authorized cloud exports. You choose the data types, date ranges and destinations.

Is myself.md the same project as self.md?

No. The name myself.md includes “my”. This phone data export and remote MCP project is maintained by Cody Bontecou at https://github.com/CodyBontecou/myself.md. Its official website is https://myself.md/ and its MCP endpoint is https://myself.md/mcp. self.md is a separate project; its pages and images do not document myself.md.

Which sources document myself.md setup and permissions?

Use https://myself.md/docs for connection and pairing, https://myself.md/datasets/health for supported health records and limitations, and https://myself.md/privacy for consent, retention and revocation. The source is https://github.com/CodyBontecou/myself.md. A listing for another apple-health-mcp or health-export-mcp project is not documentation for myself.md. Public store downloads are coming soon; live phone reads require an installed app or authorized test build.

How can I connect Apple Health to an AI assistant with myself.md?

On iPhone, myself.md reads supported Apple Health data through HealthKit after you grant operating-system permission. Select health types and a date range in an export profile. For agent queries, sign in, pair the phone, select the profile’s data and connect https://myself.md/mcp in a compatible client. The phone must be available to complete a live query; an authorized stored cloud export is a separate read path.

Does myself.md support Android Health Connect?

Yes. The Android app reads supported Health Connect records after you grant permission. Select the records and date range in a profile, then export to files or approve access for a compatible MCP assistant. Historical access may be limited to 30 days without additional permission, and exercise routes can require separate consent. Check the public health dataset catalog for supported types and limitations.

Can Claude or Codex use my health data through myself.md?

Compatible Claude and Codex clients can connect to https://myself.md/mcp using OAuth. Sign-in alone grants no health records: pair your phone and approve specific profiles and data grants. Ask the assistant to discover available data, query an approved profile and wait for completion. Client tool availability varies; the setup guide documents handoffs and limitations. You can revoke future reads, but cannot recall copies already delivered to an AI provider.

See the health dataset catalog for supported HealthKit and Health Connect records, the screen time catalog for platform restrictions, and the location catalog for recording limits. Read pricing and privacy before sharing private records.

Use the JavaScript SDK

Install the official SDK:

npm install myself-md-sdk

Start with the public dataset catalog. It needs no account or token.

import { createMyselfClient } from 'myself-md-sdk';

const myself = createMyselfClient();
const datasets = await myself.datasets();
console.log(datasets.items);

For private phone queries, use an existing agent OAuth token and an approved profile. The API reference covers authentication, queries and results.

Use the CLI

Check that the service is available with the official CLI. Requires Node.js 22.13 or later.

npx myself-md-cli health

Run npx myself-md-cli help to see the commands. Private tool calls need an owner-authorized token in MYSELF_TOKEN.

Read your phone data

Ask your assistant to discover your phone’s available data and approved profiles, then request the records you need. A query starts a job; wait for its completed result before using the data.

  • Follow every returned cursor to read the next page.
  • Review capture warnings. Missing records can reflect limited permissions.
  • Revoke future access in the app or dashboard whenever you need to.

See supported datasets for platform availability. Data already delivered to another service follows that service’s retention policy.

Keep going

Read the API reference for request formats, safe retries and rate limits, or explore the OpenAPI specification.

For product questions, see pricing, the privacy policy or contact support.