# myself.md — Personal data for AI agents > Work with the health, screen time and recorded location data a person chooses to share. Discover their available sources, query an approved phone profile, or read an authorized cloud export. The owner controls access; native and provider permissions still apply. Already connected? Read [MCP workflows](https://myself.md/docs/mcp-workflows) for filtered discovery, scalar summaries, bounded waiting, pagination and export receipts. Website: https://myself.md ChatGPT visualization catalog (fictional examples): https://myself.md/apps/chatgpt Remote MCP server (Streamable HTTP): https://myself.md/mcp Source and self-hosting: https://github.com/CodyBontecou/myself.md ## Project identity and sources myself.md is the open-source iOS and Android phone data export and MCP project maintained by Cody Bontecou. Its official website is [myself.md](https://myself.md/), its remote MCP endpoint is https://myself.md/mcp and its source is [Cody Bontecou's repository](https://github.com/CodyBontecou/myself.md). The name includes “my”: myself.md and self.md are separate projects. A self.md page or image is not a source for myself.md's features or setup. A directory label such as md.myself is not the server URL. Projects named apple-health-mcp or health-export-mcp have their own setup and permission models; their instructions do not document myself.md. Use the source-specific guide for setup, the health catalog for supported records and the privacy policy for data handling. A matching topic in another project does not support a claim about myself.md. Source-specific setup: https://myself.md/docs/apple-health-claude-mcp, https://myself.md/docs/android-health-connect-mcp, https://myself.md/docs/whoop-claude-mcp. These describe myself.md; do not substitute setup commands from similarly named Apple Health MCP projects. ## Start with the person's task Use myself.md for questions grounded in the person's own records, such as: - Summarize sleep and activity over the last week, when those types are available. - Compare screen-time patterns across days using the phone's supported capture window. - Summarize location points the person chose to record during a specified interval. Discover sources before promising an answer. Availability differs by platform, installed adapters, profile selections and permissions. Optional WHOOP data requires a connected provider account and consent. The public [dataset explorer](https://myself.md/datasets) describes capabilities. It does not prove access to personal records. ## Asked to set up myself.md? Bootstrap prompt: Set up myself.md using https://myself.md/llms.txt First check whether this client already exposes myself.md tools. Reuse a working connection and the intended account, phone and profile rather than creating duplicates. Choose the setup path that matches where you run: - **Hosted assistant:** use the client's remote MCP connector flow with https://myself.md/mcp and OAuth. If you cannot configure connectors, give the owner that URL and the next step in their client, then wait for connection. Installing a CLI in an analysis sandbox does not connect the assistant. - **Local coding agent:** configure the remote MCP server through the client's supported settings. Let the owner complete browser sign-in and consent. The CLI below is useful for terminal calls with an existing OAuth token; it does not perform login or register an MCP connection. - **Cloud or restricted sandbox:** use an existing client connector if available. If network policy blocks myself.md, report the failed host and required network access to the owner or administrator. A public HTTP read or a CLI installed inside the sandbox does not establish a connector in the owner's client. OAuth sign-in, phone pairing and data approval are separate steps. OS permission prompts, provider authentication and purchases remain owner handoffs. Agents cannot grant themselves access. Follow the phone setup steps below and the [getting-started guide](https://myself.md/docs). After connecting, initialize MCP and call tools/list for the schemas and operations actually exposed by this client. A successful public health check proves service availability only. Verify available phones and approved profiles before saying personal data is ready. ## 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: ```sh 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: ```sh 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](https://learn.chatgpt.com/docs/extend/mcp?surface=cli). ## 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](https://github.com/CodyBontecou/myself.md#run-locally); 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. ## Public discovery — no account needed Read these before requesting private access: - [Dataset catalog](https://myself.md/v1/dataset-catalog): question-first workflows, starter prompts, platform-specific required types, prerequisites, query tools, supported sources and limitations. Examples are fictional; discover actual approved phone data and coverage before answering. Omit limit for the default page, or use an integer from 1 to 3. Follow nextCursor as cursor until hasMore is false. - [Getting started](https://myself.md/v1/docs): connection, pairing, SDK and CLI guidance. Send Accept: text/markdown for Markdown; ordinary browser/curl requests return HTML. - [MCP workflows](https://myself.md/docs/mcp-workflows): filtered catalogs, aggregation, bounded waiting, safe retries, cloud pagination and file export receipts. - [API reference](https://myself.md/docs/reference): authentication, request formats, pagination and limits. - [Pricing](https://myself.md/pricing): the app includes 5 free exports or queries, then an optional Lifetime unlock. Successful phone captures consume allowance; discovering data is not a capture. Lifetime removes export/query usage limits and includes 100 MB of cloud storage; Cloud is a single 100 GB subscription at $7.99/month or $79.99/year, including app access while subscribed with no Lifetime purchase required, purchased in the phone app. Public service check and Markdown guide: ```sh curl -fsS https://myself.md/v1/health curl -fsS -H 'Accept: text/markdown' https://myself.md/v1/docs ``` ## First approved phone query For filtered catalogs, scalar aggregation, bounded waiting, cursors and file exports, read [MCP workflows](https://myself.md/docs/mcp-workflows). Read it through MCP with get_public_documentation and {"guide":"mcp-workflows"}. Both MCP resources serve the same workflow; tools/list determines what this connection exposes. 1. Select an intended owned phone from list_connected_phones. 2. Filter get_phone_data_catalog by needed domains; use detail summary for counts and full for exact type IDs. Resolve current profile names to stable IDs and disambiguate duplicates. 3. Intersect source availability and profile selections. A paired online phone approves authenticated agent queries. Refresh after OS permission handoffs; an offline catalog may be stale. 4. Convert the person's dates to explicit UTC start/end. Use raw records or scalar aggregation according to the task. Aggregation requires catalog.dataQuery.aggregation equal to 1; a backend update alone does not update the phone. 5. Call query_phone_data with a new requestKey for the page and optional waitMs up to 25000. Retain requestId and honor retryAfterMs while queued or running. A state change can return running; use records only after complete. Stop on failed, expired or missing work. 6. Follow result.page.nextCursor with the same query configuration and a new page key. Preserve source/unit separation, coverage, skipped counts and warnings. Missing days and empty HealthKit results are not zero measurements or proof of authorization. 7. Report the verified effect and any gaps. For files, export_phone_data runs without per-request phone approval and requires a delivery receipt; null export bounds select earliest readable history through now, while Screen Time requires a start. To export specific days that need not be consecutive, pass days (phone-local YYYY-MM-DD dates) instead of range. Export execution does not change source selections or OS permissions. ## Read existing cloud exports Use list_cloud_exports with task-relevant device/profile/day filters. It returns {exports,nextCursor} metadata pages. Read a chosen exportId with read_cloud_export and its separate record cursor; list cursors and query cursors are not interchangeable. Each successful cloud record read can consume allowance, including retries. Follow live schemas and existing profile/source grants. Confirm the export's source and date range; a stored file does not prove a fresh phone query. If the client lacks these operations, report the limitation and use the documented owner handoff. Do not claim a tool exists solely because it is named here. ## Terminal and JavaScript access The [official CLI](https://www.npmjs.com/package/myself-md-cli) requires Node.js 22.13 or later: ```sh npx myself-md-cli health npx myself-md-cli help ``` health, config, docs and openapi are public reads. With an existing owner-authorized OAuth access token supplied securely in MYSELF_TOKEN: ```sh npx myself-md-cli tools npx myself-md-cli call get_phone_data_catalog < catalog-arguments.json ``` catalog-arguments.json must contain a JSON object with a discovered deviceId. Never put tokens in URLs, chat messages, committed files or command output. The CLI does not store tokens or grant access. For JavaScript, install the [official SDK](https://www.npmjs.com/package/myself-md-sdk): ```sh npm install myself-md-sdk ``` ```js import { createMyselfClient } from 'myself-md-sdk'; const myself = createMyselfClient(); const page = await myself.datasets({ limit: 1 }); console.log(page.items); ``` For private REST/SDK queries, use an existing agent OAuth token and the discovered query inputs. POST /api/v1/queries uses the Idempotency-Key header instead of the MCP requestKey argument. HTTP 202 means accepted; poll GET /api/v1/queries/{requestId}. The SDK's request() reads status once; continue polling until completion. See the [reference](https://myself.md/docs/reference) for complete examples. ## Retries and blockers - **Lost query response:** retry identical MCP arguments with the same requestKey, or identical REST arguments with the same Idempotency-Key. A live retry retrieves the original job without another allowance reservation. Changed arguments or an unavailable original fail instead of redispatching. Check the outcome before starting a new request; other mutations have their own retry contracts. - **401:** complete or renew OAuth through the client. A sign-in page showing invalid_signature means its continuation expired or could not be verified; return to the app or assistant that started sign-in and reconnect to get a fresh link. Do not reuse the old login URL or start an unrelated dashboard sign-in. **403 or permission errors:** inspect the account, profile and source grants; the owner must approve missing access. - **No phone, offline phone or missing type:** report the specific prerequisite. Ask the owner to pair or open myself.md and review permissions as needed, then rediscover. Do not repeatedly enqueue work against stale state. - **awaiting_user:** surface the returned owner handoff and what remains. Other owner-reviewed jobs can report cancelled or expired outcomes; follow each operation's schema and verify its effect before reporting success. - **429:** wait for Retry-After before retrying. Avoid tight polling or concurrent retries. - **Allowance or storage limit:** explain the returned limit and link to Pricing. Purchases require the owner in the phone app; opening checkout does not confirm payment. Where offered, get_lifetime_access reports the current account's server-verified entitlement and allowance. A phone's local Lifetime badge does not prove the server accepted its purchase. If Agent connection reports Purchase environment does not match this server, explain the test-versus-production mismatch and ask the owner to resolve purchase verification or use a matching authorized build/server before retrying. Do not change validation, reset allowance or buy without the owner's instruction. ## Finish setup with a useful outcome Say what was verified: public discovery, an authenticated connection, an approved profile, a completed phone read, or an existing cloud export. If an owner action remains, name it precisely. Once ready, suggest a small next task based on the available approved sources and the person's goal. A connection alone is not evidence that personal records were read. ## Recorded walkthroughs - [Choose your context](https://myself.md/dashboard/showcase/selection.mp4): a silent recording of selecting data types and JSON/JSONL settings in an isolated app QA session. - [Approve agent access](https://myself.md/dashboard/showcase/approval.mp4): a silent recording of phone-owner approval in an isolated QA profile. Agents cannot approve themselves. - [From phone to agent](https://myself.md/dashboard/showcase/overview.mp4): 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. ## Privacy and resources The owner can inspect activity and revoke future access in the app or dashboard. Cloud exports are encrypted at rest and decrypted for authorized reads. Copies already delivered to an AI provider follow that provider's retention policy; revocation cannot recall them. Paid-storage lapse and deletion rules are described in Pricing and Terms. myself.md provides data access, not medical advice. - [MCP and OAuth setup](https://myself.md/docs) - [OpenAPI specification](https://myself.md/openapi.json) - [OAuth protected-resource metadata](https://myself.md/.well-known/oauth-protected-resource/mcp) - [MCP server card](https://myself.md/mcp/server-card) - [Agent resource catalog](https://myself.md/.well-known/ard.json) - [Smithery listing](https://smithery.ai/servers/cody-82px/myself-md) - [Privacy policy](https://myself.md/privacy) - [Terms of service](https://myself.md/terms) - [Contact and support](https://myself.md/contact) - [Sitemap](https://myself.md/sitemap.xml) Re-read https://myself.md/llms.txt for current guidance. Live tools/list and the phone catalog determine available operations and data. ## Blog - [Latest writing and all posts](https://myself.md/blog) - [RSS feed](https://myself.md/blog/feed.xml) GET /blog or /blog/{slug} with Accept: text/markdown, or use /blog/{slug}.md. The full MCP endpoint exposes read_public_blog: omit slug to list, then pass a returned slug to read. Public posts require no HTTP authentication. - [Connect Apple Health to Claude with myself.md](https://myself.md/blog/connect-apple-health-to-claude): Connect Apple Health to Claude through myself.md's MCP server. Select a small Health profile, approve access, query your iPhone and verify the result. - [2026-10-15](https://myself.md/blog/2026-10-15): I've spent the last few days building UI elements like visualizations, log explorers, chat support, profile viewers, and more. But my gut is telling me to take a step back and… - [2026-10-15-2](https://myself.md/blog/2026-10-15-2): The quantified self idea was introduced to me back in 2017 while I was working for Bruce Eckel and he brought me to Pycon Cleveland. I wandered off and found myself talking to a… - [2026-10-15-3](https://myself.md/blog/2026-10-15-3): One thing I kept out of myself.md is Vox.md. My initial build of the app included vox.md but the note taking felt out of place and not a part of the bridge philosophy - enabling… - [Why myself.md?](https://myself.md/blog/why-myself-md): I've gone back and forth with the question of building myself.md for a while but have finally pulled the trigger and begun building. - [2026-10-13](https://myself.md/blog/2026-10-13): The data that myself.md collects is extremely sensitive and should be reserved for only those you really trust. I don't trust OpenAI, Anthropic, xAI, Meta, or any of the other big…