Przejdź do głównej zawartości

GeneBe MCP for AI assistants

GeneBe MCP lets an AI assistant look up a genetic variant in GeneBe and answer from data, instead of guessing. It is a hosted, read-only Model Context Protocol (MCP) server: you add a URL to your assistant, and it can annotate and classify variants for you.

Two ways to connect​

There are two URLs. Both are read-only; they differ in whether you sign in.

PublicSigned in
URLhttps://mcp.genebe.net/v1/mcphttps://mcp.genebe.net/v1/signed-in/mcp
AccountNot neededYou sign in to GeneBe in your browser
ToolsVariants and genes: annotation, ACMG classification, conversion, liftoverThe same, plus your own samples: search, details, phenotype and variants
LimitsShared, per IP addressYour account's daily limits
Your dataNone, and none is sentOnly what you permit on the consent screen

Why two? Looking up a variant uses only public data, so it should work for anyone in a minute, with no account and no key. Your samples are patient data. Reading them needs to know who you are, and you must decide what the assistant may see. So that part is behind a sign-in with permissions you approve and can withdraw at any time. Keeping the public URL separate means that a connection without sign-in can never reach your data.

Which one should I use? If you only want to look up variants, use the public URL. If you want the assistant to work with your samples, or you want your own account's limits, use the signed-in URL; it includes everything the public one offers, so you do not need both.

Research use only

GeneBe MCP is not a medical device and its answers are not a diagnosis. Classifications must be reviewed by a qualified specialist before any clinical use.

What you can ask​

  • "What is chr6-160585140-T-G? Explain why it is classified that way."
  • "Is NM_005577.4:c.4195A>C benign?"
  • "Convert rs41272110 to hg38 and list its consequences on each transcript."
  • "Show the MANE Select transcript and ClinGen gene–disease validity for TP53."
  • "Lift chr17:7674220 from hg38 to hg19."

Signed in to your account, you can also ask about your own data:

  • "List the pathogenic, rare variants in the GJB2 gene in my sample." This is the question you will probably ask most often: the assistant finds the sample, reads the columns of its variant table, filters by gene, ACMG classification and gnomAD frequency, and answers with the matching variants.
  • "Which of my trios created in the last 30 days are ready to view?"
  • "In sample smp_... list rare, non-reference variants in LMNA."
  • "Does the phenotype of this sample fit the variants you found?"

For each variant the assistant gets GeneBe's transparent, points-based ACMG classification with the reasoning behind every criterion, together with population frequencies (gnomAD), in-silico predictor scores, ClinVar, per-transcript consequences and links back to GeneBe.

Connect your assistant​

Pick the URL (see Two ways to connect) and add it to your assistant. You can add both; give them different names.

# public: variant and gene descriptions, no account, no access to your samples or private data
claude mcp add --transport http genebe-public https://mcp.genebe.net/v1/mcp

# signed-in: the same, plus your own samples; you sign in with your GeneBe account
claude mcp add --transport http genebe-signed-in https://mcp.genebe.net/v1/signed-in/mcp

For the signed-in URL, finish with the sign-in steps below. The other clients:

Claude (web and desktop)​

Open Settings → Connectors, choose Add custom connector, and enter https://mcp.genebe.net/v1/mcp (public) or https://mcp.genebe.net/v1/signed-in/mcp (signed in).

ChatGPT​

Open chatgpt.com/plugins, click Add (+) → Add custom MCP, and enter https://mcp.genebe.net/v1/mcp (public) or https://mcp.genebe.net/v1/signed-in/mcp (signed in).

Cursor​

Add to ~/.cursor/mcp.json:

{
"mcpServers": {
"genebe-public": { "url": "https://mcp.genebe.net/v1/mcp" },
"genebe-signed-in": { "url": "https://mcp.genebe.net/v1/signed-in/mcp" }
}
}

VS Code​

Add to .vscode/mcp.json:

{
"servers": {
"genebe-public": { "type": "http", "url": "https://mcp.genebe.net/v1/mcp" },
"genebe-signed-in": { "type": "http", "url": "https://mcp.genebe.net/v1/signed-in/mcp" }
}
}

Any other MCP client​

Any client that supports remote MCP over Streamable HTTP can use the URLs above; the signed-in one needs a client with MCP authorization (OAuth), which opens your browser by itself. To try the public URL from a terminal:

curl -s -X POST https://mcp.genebe.net/v1/mcp \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"annotate_variant","arguments":{"variant":"chr6-160585140-T-G"}}}'

You can also inspect the server with the MCP Inspector: choose the Streamable HTTP transport and enter a URL above.

Tools​

ToolWhat it does
annotate_variantStart here. Any notation (genomic coordinates, HGVS, rsID, SPDI) gives the ACMG verdict, points and criteria, frequencies, predictor scores, ClinVar, consequences and GeneBe links.
explain_acmg_decision_pathExplains, in plain text, why each classification criterion applied.
convert_variantConverts HGVS, rsID or SPDI to hg38 coordinates.
get_variant_effectsPer-transcript consequences (HGVS c./p., impact).
get_geneGene identifiers, location, MANE Select, ClinGen gene–disease validity and transcripts.
liftover_coordinateMoves positions, intervals or variants between hg19, hg38 and T2T.
get_my_accountOnly at the signed-in URL: shows which GeneBe account the assistant is signed in as, your plan and today's usage.
search_my_samples, get_my_sampleOnly at the signed-in URL: list and search your own samples and read their details (status, labels, members, input files, quality metrics).
get_sample_phenotypeOnly at the signed-in URL: phenotype, HPO terms, diagnosis and sex of a sample. Needs a separate permission.
list_sample_files, describe_sample_file, query_sample_fileOnly at the signed-in URL: list the result files of a sample, describe the columns of a variant table and select its rows with a SQL-like filter.

The default genome build is hg38. See variant formats for the notations GeneBe understands. Long lists are capped, so one call stays small enough for an assistant to read comfortably.

Use your own samples (signed in)​

For a complete example using a sample's table schema and a reproducible filter, see Filter an annotated sample with GeneBe MCP.

At the signed-in URL you get the tools above plus the ones below. Your requests are counted against your account's daily limits instead of the shared limit for anonymous users. The sample tools only read, and only with the permissions you give on the consent screen (see what you are agreeing to). More tools for your own data (editing, uploads, analyses) are planned (see the roadmap).

ToolWhat it does
get_my_accountShows which GeneBe account the assistant is signed in as, your plan and today's usage.
search_my_samplesLists and searches your samples (your own and those shared with your organizations), newest first. Filter by words, project, sequencing id, experiment type (WGS, TRIO, ...), status, labels, organization and creation date.
get_my_sampleShows one sample: status, labels, tags, trio or pair members, input file names and quality metrics.
get_sample_phenotypeShows the phenotype of a sample: free text, HPO terms, diagnosis and sex.
list_sample_filesLists the result files of a sample; files marked queryable are variant tables.
describe_sample_fileExplains a variant table: what a row means, the columns and how to filter them.
query_sample_fileSelects rows (variants) from a table with a SQL-like filter, for example gene = 'LMNA' AND gt <> 'REF/REF' AND AF_gnomad4 < 0.01. Up to 50 rows per call.

Try asking: "List the pathogenic, rare variants in the GJB2 gene in my sample", "What samples do I have?", "Show my trios created in the last 30 days that are ready to view", "Which samples in project cardio have the label urgent?", "In sample smp_... list rare, non-reference variants in LMNA", "Does the phenotype of this sample fit these variants?"

Sign-in steps​

You sign in on genebe.net, in your browser, and decide what the assistant may do. The assistant never sees your password. After adding the signed-in URL:

  1. In Claude Code run /mcp, choose genebe-signed-in and select Authenticate. Other clients open the browser by themselves.
  2. Your browser opens on genebe.net. Sign in if you are asked to.
  3. Check the screen: it names the application asking for access and lists what it will be able to do. Click Allow.
  4. Go back to your assistant. To confirm, ask "Which GeneBe account am I signed in as?"; the assistant calls get_my_account.

Server names are unique, which is why the examples above call the two connections genebe-public and genebe-signed-in.

What you are agreeing to​

The consent screen shows the permissions the assistant asks for, and you can untick any of them. There are four:

  • Look up and classify variants and genes using GeneBe public data. No access to your data.
  • See the list of your samples and their basic details (read only). The assistant can list and search your samples and read their details. Sample names and sequencing ids are sent, so keep in mind that they can identify a person.
  • Read the clinical data of your samples. Phenotype text, HPO terms, diagnosis and sex. Names, dates of birth and collection, and origin are left out.
  • Read the variant tables of your samples. The assistant can list the result files, and select variants and annotations from them. This is patient data.

In every case the assistant cannot change, delete or upload anything. If you untick a permission, the matching tools answer that access was not granted. If you untick everything, Allow is disabled. Connected before the sample tools were extended? Disconnect in Connected Apps and connect again to approve the new permissions.

You stay connected while you use the assistant. Access renews itself in the background, and if you do not use it for about 30 days you are asked to sign in again.

Disconnect​

Open Settings → Connected Apps on genebe.net. Every assistant and device connected to your account is listed with its permissions and when it was last used. Disconnect removes its access immediately; the assistant can no longer act as you, and to use it again you sign in anew.

Privacy when signed in​

  • GeneBe remembers which assistants you connected (name, permissions, last use) so that you can manage them. Access tokens are stored only as hashes.
  • The MCP server stores nothing about your questions, and variant input is not logged.
  • What an assistant reads becomes part of your conversation with the AI service you use it with. Keep that in mind when you ask about your own samples.
  • GeneBe MCP is for research use only; see the overview.

Troubleshooting sign-in​

  • "401" or "authentication required" before signing in is expected: it is how the assistant learns it has to start the sign-in. Authenticate as described above.
  • The browser did not open (for example over SSH): copy the address your assistant prints into a browser on any machine, finish there, and the assistant continues.
  • "This request is invalid or has expired" on the consent screen: start the connection again from the assistant. A request is valid for 15 minutes.
  • It stopped working after a while: you may have disconnected it in Connected Apps, or not used it for about 30 days. Authenticate again.

Privacy and limits​

  • Read-only. No tool changes anything.
  • No uploads. The server does not accept patient data or VCF files. The public URL answers about single variants only. Signed in, the assistant can read your own samples, and only the parts you permit: the list and details, the phenotype, and the variant tables. Names, dates of birth and collection, origin and storage paths are never sent.
  • Nothing is stored by the MCP server, and variant input is not logged.
  • Fair use. Requests to the public URL are rate limited per IP address; signed in, your account's limits apply.

For file-based work, use the GeneBe web application, the API or GeneBe Desktop.

Roadmap​

GeneBe MCP answers questions about single variants, publicly or signed in to your account, where it can also read your samples, their phenotype and their variants. None of the following is available yet, and the order may change.

  • Editing your own samples
  • Searching for a variant across your whole set of samples at once
  • Uploading samples
  • Starting analyses, following their progress and reading the results

Open source and feedback​

The server is open source (MIT): github.com/genebe-net/genebe-mcp. It is also listed in the official MCP Registry as net.genebe/genebe-mcp. Questions, ideas and bug reports are welcome as GitHub issues or through the contact page.