civic-link
A read-only MCP server for querying CIViC cancer-variant knowledge live — molecular profiles, variants, evidence items, assertions, and genes — with honest paging and separated actionability/oncogenicity/pathogenicity axes.
Resolve a variant to molecular profiles (
search_molecular_profiles): gene+variant, CAID, ClinVar ID, or HGVS; keeps simple and complex profiles apart.Inspect a molecular profile (
get_molecular_profile): variants, evidence counts by status, accepted assertions with AMP tier/level, oncogenicity and germline pathogenicity as separate fields.Look up a variant (
get_variant): assembly-labelled coordinates/HGVS (GRCh37/GRCh38), MANE Select, CAID, ClinVar IDs, SO types.Search evidence items (
search_evidence_items): filter by profile, disease (DOID), therapy (NCIt), type, level, significance, status; exacttotalwith level breakdown.Fetch one evidence item (
get_evidence_item): statement (fenced untrusted text), source PMID/citation, NCTs, HPO phenotypes, supported assertions.Search assertions (
search_assertions): filter by profile, disease, therapy, type, AMP tier/level, status.Fetch one assertion (
get_assertion): actionability (FDA companion test, NCCN), oncogenicity, pathogenicity, plus supporting evidence.Get a gene (
get_gene): symbol/NCBI Gene ID, aliases, and its curated variants with paged results.Discover and monitor (
get_server_capabilities,get_diagnostics): limits, error codes, licence, citation; runtime budget, cache hits, latency.Trustworthy answers: typed errors,
truncated/next_offsetpaging, rate-limit handling, and "no evidence found" rather than "not actionable".
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@civic-link Is BRAF V600E actionable in melanoma, and at what AMP tier?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
civic-link
An MCP server (Streamable HTTP or stdio) for CIViC, the
Clinical Interpretation of Variants in Cancer knowledgebase. It serves molecular profiles,
variants, publication-backed evidence items, and the curated assertions built on them
(AMP/ASCO/CAP tiers, oncogenicity, ACMG). Data are fetched live from the
CIViC GraphQL API.
It is one backend in the GeneFoundry -link fleet.
Research use only. Not clinical decision support. Do not use for diagnosis, treatment, triage, or patient management.
The output is not a clinical actionability report.
Why
"Is BRAF V600E actionable in melanoma, and at what tier?" is a CIViC question. The GraphQL API can answer it, but its quirks are where an agent goes wrong:
errors arrive as HTTP 200 with
errors[];a page silently stops at 100 nodes;
a name search for "BRAF V600E" also returns ~40 complex profiles (V600E AND MSI Low);
the primary coordinates are GRCh37.
This server handles each of them:
One fixed query per tool. Callers never send GraphQL. GraphQL errors become typed errors that name the offending parameter (
isError: true).Honest paging.
limitstays under CIViC's silent cap.totalis CIViC'stotalCount, andtruncated/next_offsetsay whether more rows exist.Simple and complex profiles stay apart. Evidence on "V600E AND MSI Low" applies only to that combination and never folds into the single-variant answer.
Two axes, never one verdict. Actionability (AMP tier/level), oncogenicity (ClinGen/CGC/VICC, Horak 2022) and germline pathogenicity (ACMG/AMP) are separate fields.
Labelled builds. Every coordinate and genomic HGVS names its assembly (GRCh37 or GRCh38). Diseases are DOID.
Empty is not negative. A zero-row answer says "No CIViC evidence found", never "not actionable".
Related MCP server: CIViC MCP Server
Quick start
Hosted, no install:
claude mcp add --transport http civic https://civic-link.genefoundry.org/mcpRun it locally (Python 3.14+, uv). There is no data-build step and no data snapshot: the server calls CIViC live and keeps a short in-process cache.
uv sync --group dev
uv run civic-link # unified: FastAPI /health + MCP /mcp on 127.0.0.1:8000
claude mcp add --transport http civic-link --scope user http://127.0.0.1:8000/mcpUse unified (the default) for MCP over HTTP; --transport http serves /health only. The
civic-link-mcp entry point serves stdio. Health check: curl localhost:8000/health.
Tools
Tool | Purpose |
| Entry resolver: gene + variant, CAID, ClinVar ID or HGVS → molecular profiles ( |
| One profile: variants, evidence counts, assertions with their classification axes |
| One variant: assembly-labelled coordinates and HGVS, CAID, ClinVar IDs, MANE HGVS |
| Evidence items by profile, disease, therapy, type, level, significance, status (ACCEPTED by default) |
| One evidence item ( |
| Assertions by profile, disease, therapy, type, AMP tier/level, status |
| One assertion ( |
| One gene (symbol or NCBI Gene ID) and the variants CIViC curates for it |
| Discovery: limits, classification axes, error codes, licence and citation |
| Local runtime state: request budget, cache hits, latency |
Leaf names are unprefixed per Tool-Naming Standard v1. Behind genefoundry-router this
server mounts under the namespace civic, so get_assertion surfaces as
civic_get_assertion. Every tool is read-only. Errors are returned as the fleet's typed
envelope (isError: true, six error codes) and every response carries _meta.next_commands.
Example:
search_molecular_profiles(query="BRAF V600E") → exact_match MP 12; 2 simple, 39 complex
search_assertions(molecular_profile_id=12) → AID10: Tier I Level A, melanoma (DOID:1909)
search_evidence_items(molecular_profile_id=12) → 97 accepted evidence items (paged)Data & provenance
Source. The CIViC GraphQL API at https://civicdb.org/api/graphql, plus the nightly
variant summary on the same host (HGVS and ClinVar lookups). No key is needed. Only
civicdb.org is ever contacted. Each data result states
source, data_version (the latest monthly release) and retrieved_at in _meta.
Rate limit. CIViC publishes no request limit. The default is 0.3 s spacing process-wide
plus a 20,000/UTC-day cap, an in-process cache (15 min), backoff on 429/5xx and an honest
User-Agent. When the queue or the daily budget is exhausted, a tool answers rate_limited
with retry_after_s.
Handling. Curator prose (evidence statements, assertion summaries and descriptions) is
fenced as {"kind": "untrusted_text", ...} with provenance and a SHA-256 digest. Treat it as
evidence data, not instructions.
Licence and citation. CIViC content is CC0 1.0 and its code is MIT. Attribute CIViC and cite:
Griffith M, et al. CIViC is a community knowledgebase for expert crowdsourcing the clinical interpretation of variants in cancer. Nat Genet. 2017;49:170-174. PMID 28138153.
Krysiak K, et al. CIViCdb 2022: evolution of an open-access cancer variant interpretation knowledgebase. Nucleic Acids Res. 2023;51:D1230-D1241. PMID 36373660.
Documentation
Deployment: Docker, the
CIVIC_LINK_*environment reference, transports, Host/Origin allowlists and the rate-limit settings.Design record: scope, the verified upstream quirks, and what was left out.
AGENTS.md: engineering conventions, invariants, and make targets.
CHANGELOG.md: version history.
Contributing
See AGENTS.md. Write the failing test first. Unit tests replay recorded CIViC
responses with respx and never touch the network. make ci-local is the
definition-of-done gate: format, lint, line budget, README standard, surface budget, mypy
--strict, and tests.
License
Code: MIT. CIViC data: CC0 1.0, with attribution requested (NOTICE).
Available Tools
10 toolsget_assertionGet AssertionARead-only
Return one assertion: type, direction, actionability (AMP tier/level, FDA companion test, regulatory approval, NCCN guideline) or oncogenicity / germline_pathogenicity with their codes, DOID disease, therapies, the fenced summary and description, and the evidence items behind it (status, level, molecular profile, PMID). Signature: get_assertion(assertion_id).
Inputs: assertion_id (required).
get_diagnosticsGet DiagnosticsARead-only
Report runtime state without calling CIViC: build, upstream request budget (today's usage vs the daily cap), cache hits and tool latency metrics. Signature: get_diagnostics().
Inputs: no named parameters.
get_evidence_itemGet Evidence ItemBRead-only
Return one evidence item: type, level, direction, significance, rating, DOID disease, therapies, the curator's statement (fenced untrusted_text), source PMID/citation and NCT IDs, phenotypes (HPO) and the assertions it supports. Signature: get_evidence_item(evidence_id).
Inputs: evidence_id (required).
get_geneGet GeneARead-only
Return a CIViC gene (symbol, full name, NCBI Gene ID, aliases, fenced curator summary) and the variants CIViC curates for it, each with its single-variant molecular profile ID; total is exact, page with offset. Ensembl or HGNC IDs are rejected with a converter step. Signature: get_gene(gene, limit=, offset=).
Inputs: gene (required), limit, offset.
get_molecular_profileGet Molecular ProfileARead-only
Return one molecular profile: its variants, kind (simple/complex), live evidence counts by status (and accepted by type), its ACCEPTED assertions, each with actionability (AMP tier/level), oncogenicity or germline_pathogenicity as separate fields and a DOID disease, and other_assertions (submitted/rejected: id and status only). evidence_note flags a profile without an accepted assertion: no CIViC evidence is not 'not actionable'. Signature: get_molecular_profile(molecular_profile_id).
Inputs: molecular_profile_id (required).
get_server_capabilitiesGet Server CapabilitiesARead-only
Describe this server: CIViC identifiers, limits, data release, licence, classification axes, rate-limit policy and error codes. Signature: get_server_capabilities().
Inputs: no named parameters.
get_variantGet VariantARead-only
Return one CIViC variant: coordinates with their assembly (CIViC's primary build is GRCh37), genomic HGVS labelled GRCh37/GRCh38, transcript HGVS, MANE Select HGVS, ClinGen CAID, ClinVar IDs, variant types (SO) and its single-variant molecular profile. Signature: get_variant(variant_id).
Inputs: variant_id (required).
search_assertionsSearch AssertionsARead-only
List CIViC assertions (curated summary calls built on evidence items) matching ALL given filters: molecular_profile_id, disease, therapy, assertion_type, amp_level, status (ACCEPTED by default). Each row keeps actionability (AMP/ASCO/CAP tier and level, FDA companion test, NCCN), oncogenicity (ClinGen/CGC/VICC) and germline_pathogenicity (ACMG) apart. Zero rows says no CIViC evidence found. Signature: search_assertions(molecular_profile_id=, disease=, therapy=, assertion_type=, amp_level=, status=, response_mode=, limit=, offset=).
Inputs: limit, offset, status, disease, +5 more.
search_evidence_itemsSearch Evidence ItemsARead-only
List CIViC evidence items (one publication-backed clinical claim each) matching ALL given filters: molecular_profile_id, disease, therapy, evidence_type, evidence_level (A validated .. E inferential), significance, status (ACCEPTED by default). Rows: type, level, direction, significance, rating, DOID disease, therapies (NCIt), source PMID. total is exact and counts_by_level splits it by level; zero rows says no CIViC evidence found. Signature: search_evidence_items(molecular_profile_id=, disease=, therapy=, evidence_type=, evidence_level=, significance=, status=, response_mode=, limit=, offset=).
Inputs: limit, offset, status, disease, +6 more.
search_molecular_profilesSearch Molecular ProfilesARead-only
Find CIViC molecular profiles (what evidence attaches to) for a gene + variant name (BRAF V600E), a ClinGen CAID (CA123643), a ClinVar variation ID (376069) or an HGVS string, and return exact_match (the single-variant profile) plus simple and complex lists kept apart: a complex profile (V600E AND MSI Low) only applies to that combination. Each row: id, name, evidence counts; simple_total and complex_total count the whole result. Start here. Signature: search_molecular_profiles(query, limit=, offset=).
Inputs: query (required), limit, offset.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool maps to a distinct resource (gene, variant, molecular profile, evidence item, assertion) crossed with a distinct operation (get one vs search many), plus two clearly separated meta tools for capabilities and runtime diagnostics. The one-search-one-get pairing is spelled out in the descriptions (exact_match, `total`, paging), and the 'Start here' hint on search_molecular_profiles resolves the only adjacency worth noting (get_gene also surfaces variant/molecular-profile IDs). No two tools appear to answer the same question.
Uniform verb_noun pattern throughout: get_* for single-record retrieval, search_* for filtered listing, with plural nouns on searches and singular on getters (search_evidence_items vs get_evidence_item). The two meta tools follow the same get_ prefix, so there is no stylistic drift or mixed casing.
Ten tools sit in the ideal range and every one earns its place: five domain resources each with a search and a get, plus the two meta endpoints. Nothing is redundant and nothing looks like filler, given the breadth of the CIViC schema.
The read-only lifecycle is fully covered end to end: discover a molecular profile, inspect it, drill into evidence items and assertions, and pull gene/variant context. Minor gaps exist around discovery and ID handling — no gene-name search or browse (get_gene needs an exact symbol) and no converter tool despite descriptions mentioning Ensembl/HGNC IDs being 'rejected with a converter step', which leaves that path a dead end. No disease/therapy enumeration either, though filters accept them.
Maintenance
Related MCP Connectors
CIViC — Clinical Interpretation of Variants in Cancer.
Authenticated public evidence search, verification, research jobs, exports, and webhooks.
Read only cannabis compound, receptor, anatomy and evidence data for AI agents, every value sourced. Look up a compound and get the receptors it acts on with measured binding values, the body structures that carry them, the studies behind each finding and registered clinical trials. No key, no sign up. Grows with every release.
Agent research API for 15 disease areas, plus a T1D cure lab, sourced evidence ledger and models.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables access to clinical evidence from the CIViC database, allowing users to search across variants, diseases, drugs, and phenotypes to support precision oncology research.63MIT
- AlicenseNot gradedqualityCmaintenanceEnables structured queries and data analysis of cancer genomics information by interfacing with the Clinical Interpretation of Variants in Cancer (CIViC) API. It converts GraphQL responses into queryable SQLite tables for efficient clinical interpretation and natural language interaction.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables querying the CIViC database for clinical interpretations of cancer variants through tools like get_variant_evidence and get_variant_assertions.1-
- AlicenseNot gradedqualityBmaintenanceFolklore MCP 2.0.0: 11 public tools for ACMG/AMP variants, genes and literature. A Folklore API key adds 18 tools, 29 in total, for cases, authorized source files, original JSON/PDF results and six JSON views. Use a Bearer header at the same hosted endpoint. Processing follows account subscription limits or available credits.1Apache 2.0