Build on Haplotype Wallet

One MCP endpoint gives your agent or app the same access to genetic data that the signed-in person has.

Updated October 13, 2026

What the server does

Haplotype Wallet stores a person's genotype files and runs public algorithms on them. The MCP server exposes that to a client the person has authorized. A client can list their samples, query variants in them, look up public reference databases, and schedule polygenic score runs.

Every call runs as the signed-in user. A client never sees another user's data, and it has no admin mode.

The server is for educational, research and wellness workflows. It returns genotype calls and public annotations. It does not diagnose.

Endpoint

The MCP endpoint is https://api.haplotype.ai/mcp. The transport is Streamable HTTP and authorization is OAuth 2.1.

If you only want to ask Claude or ChatGPT about your own data, you do not need these pages. Add the connector from Connected apps in the app.

If you want your users to connect their wallet to your app, read Connect Wallet. It covers credentials, the OAuth flow and the permissions your app can ask for.

How the tools fit together

The server sends the text below to every client that connects. We wrote it for the model, and it is still the shortest accurate account of which tool to call when. Tool names link to their reference pages.

Haplotype Wallet provides secure storage and interoperability for biomarker data, whole genome VCF files, and raw data files from consumer genetic tests. It is intended for educational, research, and wellness information workflows. It does not provide clinical diagnoses, and is not a substitute for a doctor or a genetic counselor.

The MCP tools expose permissioned access to samples the caller is authorized to use (the web UI calls these genotypes, listed under My People), high-performance mirrors of public reference databases, and endpoints for running publicly available algorithms on authorized data.

Samples: use list_samples to see available samples and get_sample for details on one sample. Both show provenance: how it was produced (imputation pipeline, tools, reference panel, source→target genome build), so you can explain where a result came from. get_run shows what a run consumed (its inputs and the source sample's provenance).

Variants: use lookup_variant_references to look up reference coordinates and alleles for SNP rsIDs, and query_variants to retrieve observed variants by gene, HGVS notation, genomic region, GWAS Catalog trait/allele association, or BRaVa rare-variant association. Batch up to 20 loci per call (positions, or a list of HGVS strings) rather than one call per SNP. query_variants returns genotype calls and public database annotations for context, not determinations.

Reference lookups (global, not sample-specific) mirror public databases: lookup_cpic for CPIC gene-drug reference tables, lookup_clingen for ClinGen gene/condition curations and dosage records, and list_gwas_associations to browse GWAS Catalog entries by trait/gene/rsID. GWAS also filters by effect size, p-value, and study sample size. All three accept sort/order (e.g. rank GWAS hits by effect size, largest studies first). list_brava_associations looks up BRaVa rare-variant results (rare coding variants, allele frequency <= 0.001) for a gene or a variant, and list_brava_traits lists its 44 traits. BRaVa stores only results with p <= 0.01, so total_count 0 means no association at or below the requested p_value_max, not that the gene was not studied. Name BRaVa and cite its publication when you report a BRaVa result.

Polygenic scores, discover then run: list_pgs_categories and search_pgs_scores find PGS Catalog models for a trait. Then compute them with the ids from search_pgs_scores, comma-separated, and poll get_run for the results:

schedule_run('pgsc_calc', input={'pgs_model_ids': '<ids>'}, sample_id=...)

Use list_member_pgs_scores to read back already-computed scores (check there before re-running pgsc_calc). To explain where a score came from, follow its result_id into get_run(result_id), which returns what the run consumed and how the input sample was imputed.

Reports: list_reports names the reports the Wallet can make (for example a polygenic score summary or a pharmacogenomics overview), and get_report(report, sample_id) makes one from stored data and returns its JSON. In the Wallet chat the user can also open the HTML version and download the PDF under that call.

Biobank questions, where these tools are offered: some questions only a large research cohort can answer, such as how often a variant occurs among All of Us participants with a condition. submit_biobank_request queues one for a person to run by hand, and the answer takes days, so tell the user it comes later. If it involves the user's own variant, look the variant up with query_variants first. Phrase the question about the cohort, never about the user, with no names or genotypes, and one question per request. Check on it with get_biobank_request; list_biobank_requests finds answers that arrived since an earlier conversation.

If a tool fails or returns something clearly wrong, say so plainly and offer to file a bug report with report_issue, passing the '(ref: ...)' from the error message as error_reference so the maintainers get the trace. File it only once the user agrees, and never put genotypes or sequence in a report.

Where to go next

  • Connect Wallet shows how your app gets a user's permission and a token, and what each permission unlocks.
  • Connect button has the "Connect Haplotype Wallet" button files and the rules for using them.
  • Calling a tool walks through authorization and a first call in Python, TypeScript and plain HTTP.
  • Tools lists every tool with its parameters.
  • Errors explains what a failed call looks like and what to do about it.
  • mcp-tools.json is the raw spec these pages are generated from.
  • connect-contract.json lists the OAuth and MCP endpoints, the permissions an app can ask for, and the tools each one unlocks, for apps that generate code from it.