ClinGen MCP Server
by cyanheads
README.md
<div align="center">
<h1>@cyanheads/clingen-mcp-server</h1>
<p><b>Query ClinGen expert-panel curations for gene validity, dosage sensitivity, clinical actionability, and variant pathogenicity via MCP. STDIO or Streamable HTTP.</b></p>
<p>7 tools</p>
</div>
<div align="center">
[](./package.json) [](./LICENSE) [](https://www.npmjs.com/package/@cyanheads/clingen-mcp-server) [](https://github.com/users/cyanheads/packages/container/package/clingen-mcp-server)
[](https://github.com/cyanheads/clingen-mcp-server/releases/latest/download/clingen-mcp-server.mcpb) [](https://cursor.com/en/install-mcp?name=clingen-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvY2xpbmdlbi1tY3Atc2VydmVyIl19) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22clingen-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fclingen-mcp-server%22%5D%7D)
</div>
## Overview
Explore four tracks from the Clinical Genome Resource (ClinGen): gene–disease validity, dosage sensitivity, Adult and Pediatric actionability, and variant pathogenicity. Bulk queries use a persistent local SQLite mirror of 13 ClinGen and HGNC feeds. Variant searches can resolve exact HGVS expressions through the Allele Registry, and variant detail fetches criterion evidence from the Evidence Repository.
### Tools
| Tool | Description |
|:---|:---|
| `clingen_lookup_genes` | Inventory a gene's curations across the four tracks |
| `clingen_get_gene_validity` | Find gene–disease assertions and link to their reports |
| `clingen_get_dosage_sensitivity` | Read gene dosage scores or intersect a copy-number interval with curated genes and regions |
| `clingen_get_actionability` | Read Adult and Pediatric curations, consensus assertions, and scored outcomes and interventions |
| `clingen_search_variant_classifications` | Search Evidence Repository classifications and obtain UUIDs for evidence retrieval |
| `clingen_get_variant_classifications` | Fetch criterion assessments for classification UUIDs |
| `clingen_list_reference` | Look up curation codes, expert-panel names, source coverage, and attribution |
## Capability reference
### `clingen_lookup_genes` <sub>tool</sub>
- Supply HGNC symbols or IDs in `genes`. Unambiguous former symbols and aliases resolve to the approved gene. Ambiguous symbols return candidate HGNC IDs.
- Each match lists validity assertions, gene dosage, actionability assertions, and variant counts by classification and panel. Track coverage indicates when a definitive curation inventory is unavailable.
### `clingen_get_gene_validity` <sub>tool</sub>
- Filter by `genes`, `disease` (MONDO ID or name), `classification`, `moi`, or `gcep`. At least one filter is required. Disputed, refuted, and no-known-relationship assertions remain queryable.
- Results include the panel, classification date, inheritance, and original assertion report. Follow the report link for evidence and scores.
### `clingen_get_dosage_sensitivity` <sub>tool</sub>
- Use `mode: "gene"` with `genes` (GRCh38 by default), or `mode: "interval"` with explicit `assembly` (`GRCh37` or `GRCh38`), `chromosome`, and 1-based inclusive `start` and `end`.
- `hi_code` and `ts_code` match exact categories. Code `30` means association with an autosomal recessive phenotype, `40` means dosage sensitivity unlikely, and `-1` means not yet evaluated.
- Results include available locations, evaluation dates, supporting PMIDs, and report links. Source-specific findings preserve disagreements. An interval miss leaves the dosage effect unknown.
### `clingen_get_actionability` <sub>tool</sub>
- Supply `gene`, `condition` (MONDO, OMIM, or name), or `curation_id`. `context` defaults to `both`, and retractions are excluded unless `include_retracted` is enabled.
- Gene and condition filters select the same subject–disease pair. The result includes the full matching curation, with release metadata, available consensus, outcomes, and intervention scores.
### `clingen_search_variant_classifications` <sub>tool</sub>
- Filter by gene, ClinVar Variation ID, CAid, exact HGVS, condition, classification, expert panel, or met and unmet criterion codes. On a mirror miss, the server sends only the standalone accession-qualified expression in the `hgvs` query parameter to `https://reg.clinicalgenome.org/allele`. Exact published spellings with annotations can still match locally.
- Retractions are included by default. Request `hgvs`, `interpretation_summary`, or `pmids` in `fields` to include those values. Pass returned UUIDs to `clingen_get_variant_classifications`.
### `clingen_get_variant_classifications` <sub>tool</sub>
- Supply Evidence Repository classification `uuids`. Results include live criterion codes, strengths and outcomes, contribution dates, and curator comments where available.
- If live evidence is unavailable, the item reports the failure and returns its mirrored classification header when available.
### `clingen_list_reference` <sub>tool</sub>
- Use `topic: "sources"` to inspect feed URLs, snapshot status, row counts, and access dates. Use `gceps` or `vceps` for the exact panel names to use in filters.
- Other topics cover validity classifications, inheritance codes, dosage scores, actionability assertions and scores, ACMG/AMP criteria, and source attribution.
## Features
- Paged searches accept `limit` and return `next_cursor`. Continue with the same filters. Restart from the first page if a relevant snapshot was replaced.
- Each upstream document is read in full within a byte limit of 128 MiB for bulk feeds, 8 MiB for each Evidence Repository classification, and 2 MiB for each Allele Registry lookup. A failed bulk refresh retains the last usable data. Results report source freshness and distinguish unavailable coverage from a complete search with no matches.
- Built on [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core). Tool result data is available as structured content and text.
## Getting started
Use Node.js 24 or later for the npm package and Claude Desktop bundle. The server uses public sources and requires no upstream API keys.
```sh
claude mcp add clingen-mcp-server -- npx -y @cyanheads/clingen-mcp-server
```
For other stdio clients, add this server to the client's MCP configuration.
```json
{
"mcpServers": {
"clingen-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/clingen-mcp-server"]
}
}
}
```
Claude Desktop accepts the `clingen-mcp-server.mcpb` bundle. Its optional **ClinGen mirror directory** setting takes an absolute path. Claude Code's plugin uses the same setting. The Codex plugin forwards `CLINGEN_MIRROR_DIR` from the environment that launched Codex.
On a cold start the server advertises its tools immediately and starts bulk initialization in a child process. Call `clingen_list_reference` with `{"topic":"sources"}` to check readiness. The child stops on server shutdown. To populate the mirror before connecting a client, run `mirror:init` separately.
## Configuration
| Environment variable | Default | Purpose |
|:---|:---|:---|
| `CLINGEN_MIRROR_DIR` | Per-user data directory | Absolute path for the writable SQLite directory. A blank value uses the default. |
| `MCP_TRANSPORT_TYPE` | `stdio` | Select `http` for Streamable HTTP. The Docker image defaults to HTTP. |
| `MCP_HTTP_HOST` | `127.0.0.1` | HTTP bind address. The Docker image binds to `0.0.0.0` inside the container. |
| `MCP_HTTP_PORT` | `3010` | HTTP port. |
| `MCP_HTTP_ENDPOINT_PATH` | `/mcp` | HTTP MCP route. |
| `MCP_AUTH_MODE` | `none` | HTTP authentication mode. See [`.env.example`](.env.example) for framework settings. |
| `MCP_USAGE_REPORTING` | `false` | Opt in to sharing aggregate tool-call usage with the package maintainer. |
The default directory is `$XDG_DATA_HOME/clingen-mcp-server` on Unix when `XDG_DATA_HOME` is set. Otherwise it is `~/.local/share/clingen-mcp-server` on Linux, `~/Library/Application Support/clingen-mcp-server` on macOS, and `%LOCALAPPDATA%\clingen-mcp-server` on Windows (with `%USERPROFILE%\AppData\Local` as the fallback base). Persist the whole directory, including `mirror.sqlite` and SQLite sidecars, and give the server and refresh processes write access.
## Running the server
### Manage the mirror
```sh
npx -y @cyanheads/clingen-mcp-server mirror:init
npx -y @cyanheads/clingen-mcp-server mirror:refresh
npx -y @cyanheads/clingen-mcp-server mirror:verify
```
`mirror:init` and `mirror:refresh` run the same repeatable update pipeline. An HTTP server also schedules a refresh every 24 hours while running. For an already initialized stdio server, schedule `mirror:refresh` separately. The CLI prints a JSON report. `partial` means at least one feed failed. `locked` means another process holds the refresh lease. `mirror:verify` checks SQLite integrity, schema version, and active source coverage without contacting upstream.
With an unpacked desktop bundle, point the compiled entry at the same directory configured in Claude Desktop. Substitute `mirror:refresh` or `mirror:verify` as needed.
```sh
CLINGEN_MIRROR_DIR="/absolute/path/to/clingen-data" node /path/to/unpacked-bundle/dist/index.js mirror:init
```
### Local HTTP and source checkout
```sh
MCP_TRANSPORT_TYPE=http npx -y @cyanheads/clingen-mcp-server
```
Connect the client to `http://127.0.0.1:3010/mcp`. To run from a checkout with Bun 1.4.4 or later:
```sh
git clone https://github.com/cyanheads/clingen-mcp-server.git
cd clingen-mcp-server
bun install
bun run build
bun run start:stdio
```
### Docker
```sh
docker volume create clingen-mirror
docker run --rm -v clingen-mirror:/usr/src/app/.mirror ghcr.io/cyanheads/clingen-mcp-server:latest bun run dist/index.js mirror:init
docker run --rm -v clingen-mirror:/usr/src/app/.mirror -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/clingen-mcp-server:latest
```
For manual refreshes and verification, substitute `mirror:refresh` or `mirror:verify` in the one-off command. If you bind-mount a host directory, grant write access to the image's non-root `bun` user.
## Sources and clinical use
Curations are published by the **Clinical Genome Resource (ClinGen)** under CC0 1.0. The mirror uses the ClinGen downloads and Evidence Repository, the Clinical Actionability API, and the HGNC complete set for approved symbols and aliases. HGVS fallback uses the ClinGen Allele Registry. Each result provides source attribution and relevant access dates. [ClinGen terms](https://clinicalgenome.org/docs/terms-of-use/) · [ClinGen downloads](https://search.clinicalgenome.org/kb/downloads) · [HGNC license](https://www.genenames.org/about/license/) · [Allele Registry](https://reg.clinicalgenome.org/)
ClinGen information is not intended for direct diagnostic use or medical decision-making without review by a genetics professional.
## Project structure
| Path | Purpose |
|:---|:---|
| `src/mcp-server/tools/definitions/` | Tool schemas, contracts, and handlers |
| `src/tracks/` | Source parsing, materialization, and query logic for the four curation tracks |
| `src/store/` | SQLite mirror, feed loading, freshness, and gene resolution |
| `tests/` | Tool, store, and source parsing tests |
## Development guide
See [CLAUDE.md](CLAUDE.md) for the development protocol and [docs/design.md](docs/design.md) for source contracts. Run `bun run devcheck` and `bun run test` to check changes.
## Contributing
Report reproducible behavior and feature requests through [GitHub Issues](https://github.com/cyanheads/clingen-mcp-server/issues). Report vulnerabilities through [private security reporting](https://github.com/cyanheads/clingen-mcp-server/security/advisories/new).
## License
[Apache-2.0](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues