orphanet-link
Click on "Install 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., "@orphanet-linkshow me the prevalence data for cystic fibrosis"
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.
orphanet-link
A read-only Model Context Protocol (MCP) server that grounds rare-disease queries in Orphanet's scientific knowledge files (Orphadata).
It is backed by a locally-built, read-only SQLite + FTS5 database parsed from the eight English Orphadata XML products (nomenclature, cross-references, classifications, gene associations, HPO phenotypes, epidemiology, and natural history). The database is built in CI and published to GitHub Releases as a versioned artifact; the server downloads the prebuilt database at runtime and falls back to building locally when the artifact is unavailable.
orphanet-link is a sibling in the GeneFoundry "-link" fleet. It follows the
same two-plane architecture and conventions as mondo-link and slots into
genefoundry-router under the orphanet namespace.
Research use only. This server is not clinical decision support. It is not suitable for diagnosis, treatment, triage, or patient management. Every payload carries an
unsafe_for_clinical_usesignal. See the license section below.
Data source
Orphadata — the free-access scientific-knowledge file distribution of Orphanet (INSERM, Paris).
Eight English XML products are ingested; all are directly downloadable with no authentication:
Product | File | Contents |
1 |
| Nomenclature: name, synonyms, type, group, flags, cross-references (UMLS, OMIM, MONDO, ICD-10, ICD-11, GARD, MeSH, MedDRA) with mapping relation + validation status |
3 |
| Poly-hierarchical classification trees, one file per medical specialty |
4 |
| Disease-to-HPO associations with HPO frequency + optional diagnostic-criteria flag |
6 |
| Disorder-to-gene associations: symbol, type, locus, association type + status, source PMIDs; gene xrefs (HGNC, OMIM, Ensembl, UniProt, Genatlas, Reactome, ClinVar) |
7 |
| Linearisation: single non-redundant parent per disease |
8 (funct) |
| Disability annotations (Orphanet Functioning Thesaurus, ICF-CY-derived) |
9 prev |
| Epidemiology: prevalence type, class band, ValMoy, geography, validation status, source |
9 ages |
| Natural history: age-of-onset list + type-of-inheritance list |
License & attribution
Data are distributed under Creative Commons Attribution 4.0 International (CC BY 4.0). Redistributing a derived SQLite database is explicitly permitted under CC BY 4.0 provided attribution is given and changes are indicated.
Required citation (also available via orphanet://citation):
"Orphadata Science: Free access data from Orphanet. © INSERM 1999. Available on http://sciences.orphadata.com/. Data version [date/version]." Changes: "Converted Orphadata XML to a normalized SQLite database."
Related MCP server: medterms-mcp
Install
Python 3.12+ and uv are required.
git clone https://github.com/berntpopp/orphanet-link.git
cd orphanet-link
uv sync --group dev # installs all runtime + dev dependenciesBuild the database
Option A — prebuilt artifact (default, fastest)
The server auto-fetches the latest prebuilt orphanet.sqlite.gz from the
GitHub Release on first startup when ORPHANET_LINK_DATA__PREFER_PREBUILT=true
(the default). No manual step is required.
To force a fetch manually:
make data-fetch
# equivalent to:
uv run orphanet-link-data fetchOption B — build locally from Orphadata XML
Downloads all eight XML products directly from Orphadata (~150 MB) and builds the normalized SQLite database locally:
make data
# equivalent to:
uv run orphanet-link-data buildCheck what is currently built:
make data-status
# equivalent to:
uv run orphanet-link-data statusConditionally refresh (rebuild only if any upstream file changed):
make data-refresh
# equivalent to:
uv run orphanet-link-data refreshExample build stats
A typical build from a recent Orphanet release produces:
Table | Count |
Disorders (nomenclature) | 11,456 |
Cross-references | 50,128 |
HPO phenotype annotations | 115,878 |
Gene associations | 4,552 |
Prevalence records | 16,657 |
Run the server
Development (unified REST + MCP, auto-reload)
make dev
# equivalent to:
uv run python server.py --transport unified --host 127.0.0.1 --port 8000The MCP endpoint is at http://127.0.0.1:8000/mcp.
stdio (for direct MCP client use)
make mcp-serve
# equivalent to:
uv run python mcp_server.pyDocker
make docker-build
make docker-up # binds a free host port; prints the MCP URL
make docker-logs # follow container logs
make docker-downMCP client setup
Claude Code (HTTP transport)
claude mcp add --transport http orphanet-link http://localhost:8000/mcpMCP config block (HTTP)
{
"mcpServers": {
"orphanet-link": {
"transport": "http",
"url": "http://localhost:8000/mcp"
}
}
}Claude Code (stdio)
{
"mcpServers": {
"orphanet-link": {
"command": "uv",
"args": ["run", "python", "mcp_server.py"],
"cwd": "/path/to/orphanet-link"
}
}
}Tools (19 total)
All tools are READ_ONLY_OPEN_WORLD, accept response_mode
(minimal / compact / standard / full, default compact), and follow
the fleet's Response-Envelope-Standard-v1 (success / _meta / payload or
error). _meta.next_commands carries ready-to-call follow-up suggestions in
compact and richer modes.
Tool | Purpose |
| Discovery: tool list with signatures, response modes, workflows, error taxonomy, limits, Orphanet release |
| Index status: Orphanet release/version, disorder counts, schema version, build time, runtime metrics (request count, latency percentiles) |
| Free-text label, synonym, ORPHA code ( |
| FTS over disease names and synonyms (relevance-ranked, paginated, optional obsolete inclusion) |
| Full disorder record: type/group, synonyms, grouped cross-references, classification parents/children, counts of genes/phenotypes/prevalence; supports sparse |
| Gene-disease associations: gene symbol, HGNC id, association type, association status (Assessed / Not yet assessed), source PMIDs, gene xrefs |
| HPO phenotype annotations: HPO id, term name, frequency category; optional filter by frequency label |
| Epidemiology records: prevalence type, class band, numeric ValMoy, geographic area, validation status, source reference |
| Natural history: age-of-onset categories and inheritance patterns |
| Functional consequence (disability) annotations: ability categories affected and severity grades |
| Immediate parents and children within Orphanet poly-hierarchical classification trees |
| Transitive classification ancestors (precomputed closure), paginated |
| Transitive classification descendants (precomputed closure), paginated |
| A disorder's cross-references grouped by source (OMIM, MONDO, ICD-10, ICD-11, UMLS, GARD, MeSH, MedDRA) with mapping relations; optional source filter |
| External CURIE (OMIM/MONDO/ICD-10/ICD-11/UMLS/GARD/MeSH/MedDRA) → matching Orphanet disorder(s), paginated |
| Reverse lookup: HGNC gene symbol → all associated Orphanet disorders, paginated |
| Reverse lookup: HPO term id → all associated Orphanet disorders, paginated |
| Batch resolve up to |
| Batch fetch up to |
Typical workflow
resolve_disease(query="Aicardi syndrome")
-> get_disease(term="ORPHA:676")
-> get_disease_genes / get_disease_phenotypes / get_disease_prevalence
-> get_disease_classification / get_disease_ancestors
-> map_cross_ontologyFollow _meta.next_commands rather than guessing the next tool.
Resources
The server exposes MCP resources under the orphanet:// scheme:
orphanet://capabilities— full discovery contract (JSON)orphanet://tools— live tool overvieworphanet://citation— required INSERM attribution stringorphanet://license— CC BY 4.0 text + required attribution + changes noteorphanet://research-use— research-use-only statementorphanet://usage— usage guideorphanet://reference— reference links
Development commands
make install # uv sync --group dev
make format # ruff format
make lint # ruff check
make typecheck # mypy --strict
make test # pytest (unit only)
make test-cov # pytest with coverage report
make ci-local # format-check + lint-ci + lint-loc + typecheck + test-fast (the full gate)
make verify-deploy URL=<server>/health # confirm deployed SHA matches local HEADDisclaimer
This server is for research use only. It is not clinical decision support and is not suitable for diagnosis, treatment, triage, or patient management. Orphanet data are provided under CC BY 4.0 by INSERM; this derived database is not an official Orphanet product and has not been validated by Orphanet or INSERM.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/berntpopp/orphanet-link'
If you have feedback or need assistance with the MCP directory API, please join our Discord server