hgnc-link
hgnc-link grounds gene-nomenclature work by resolving symbols, HGNC IDs, and external identifiers against a local HGNC SQLite index.
Resolve any current/previous/alias symbol, HGNC ID, Ensembl/RefSeq/UniProt/NCBI Gene ID to canonical
{hgnc_id, approved_symbol}withmatch_typeprovenance.Batch-resolve or translate up to 200 symbols/IDs in one call, with per-entry unresolved/obsolete status.
Fetch full HGNC gene records, including aliases, previous symbols, locus info, groups, and cross-references.
Search genes by free text over symbols, names, aliases, and previous symbols.
Retrieve or filter cross-references (NCBI, Ensembl, UniProt, RefSeq, MANE, OMIM, etc.) and reverse-map external IDs to HGNC genes.
Browse HGNC gene groups/families with pagination.
Discover server capabilities/tools and check local index freshness/diagnostics.
Use
response_modeverbosity control and_meta.next_commandsfor chained calls; ambiguity and withdrawn symbols are surfaced explicitly.
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., "@hgnc-link resolve TP53 to its canonical HGNC ID"
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.
hgnc-link
An MCP (Model Context Protocol) server that grounds gene-nomenclature work in the HUGO Gene Nomenclature Committee (HGNC) dataset from genenames.org, served from a local index of HGNC's bulk downloads over Streamable HTTP or stdio.
Research use only. Not clinical decision support. Do not use for diagnosis, treatment, triage, or patient management.
Why
Every downstream genetics tool needs the same thing from HGNC: turn any gene symbol —
current, outdated (previous), or alias — and any HGNC ID form into the canonical
{hgnc_id, approved_symbol}, then pull cross-references.
HGNC does publish a REST API, but it is field-scoped (/fetch/{field}/{value}): the
caller must already know whether a string is a current symbol, a previous symbol, an alias
or an ID, and query the matching field — a network round-trip per guess. It will not tell
you how a symbol matched, and it will not warn you that an alias belongs to several
genes.
hgnc-link collapses that into one local call against a SQLite index of the bulk dumps.
It runs the full cascade (HGNC ID → current → previous → alias → withdrawn redirect →
NCBI Gene synonym),
returns the match provenance in match_type, and surfaces ambiguity as an
ambiguous_query error with the candidate list rather than silently collapsing it to one
gene.
Related MCP server: plant-genomics-mcp
Quick start
Hosted — no install:
claude mcp add --transport http hgnc https://hgnc-link.genefoundry.org/mcpLocal (Python 3.14+, uv). make data is
mandatory — the server has no data until the HGNC dumps (~33 MB) are downloaded and the
local index is built:
make install # uv sync --group dev
make data # download the HGNC dumps, build the local SQLite index
make dev # unified REST + MCP on http://127.0.0.1:8000/mcp
make mcp-serve # ...or a stdio MCP server, for Claude Desktopclaude mcp add --transport http hgnc-link --scope user http://127.0.0.1:8000/mcpFor stdio see claude-desktop-config.json. Keep a local
index fresh with make data-refresh from cron — it is conditional, so an unchanged dump
costs one 304 and no rebuild; containers instead serve a pinned data release
(Deployment). Serving over HTTP behind a
proxy requires adding the public hostname to the exact Host allowlist — read
Configuration first.
Tools
Tool | Purpose |
| Start here. Any symbol, HGNC ID or Ensembl gene / RefSeq / UniProt ID → |
| Resolve or translate many symbols/IDs (e.g. a list of Ensembl gene IDs) in one call; never fails the batch on a miss. |
| Full HGNC record for one gene (alias- and previous-symbol aware). |
| Full-text search over symbol, name, alias and previous symbols. |
| Gene → NCBI / Ensembl / UniProt / RefSeq / MANE / OMIM / … identifiers. |
| External ID → HGNC gene (the reverse mapping). |
| Browse a gene family by group ID or name. |
| Discovery surface: tools, signatures, workflows, vocabulary. |
| Loaded release, record counts, freshness, data-source status. |
serverInfo.name is hgnc-link, and leaf tool names are intentionally unprefixed per
the GeneFoundry Tool-Naming Standard v1. The canonical gateway namespace token is hgnc:
behind genefoundry-router these
surface as hgnc_<tool> (e.g. hgnc_resolve_symbol).
Every response carries _meta.next_commands — a ready-to-call {tool, arguments} list, on
success and on error — and honours response_mode ∈ {minimal, compact, standard, full}
(default compact). A success is {success, result | results, _meta}; its _meta names the
origin: source, data_version (the HGNC release) and retrieved_at. See Usage.
Data & provenance
Source — the HGNC bulk downloads (
hgnc_complete_set.json+withdrawn.txt) from genenames.org, built into a local SQLite index. Queries are served from that index; there are no per-request REST round-trips.Releases — a weekly workflow builds the dumps reproducibly into a content-addressed
data-hgnc-<sha16>GitHub release (owner-reviewed); containers restore the release pinned in the image and never contact HGNC, and/healthreports the served release identity. A source checkout refreshes withhgnc-link-data refresh. See Data.Licence — HGNC data is released with no usage restrictions (effectively public domain / CC0). Attribution is requested but not required.
Citation — Seal RL, Braschi B, Gray K, Jones TEM, Tweedie S, Haim-Vilmovsky L, Bruford EA. Genenames.org: the HGNC resources in 2023. Nucleic Acids Res. 2023;51(D1):D1003-D1009. doi:10.1093/nar/gkac888. RRID:SCR_002827.
Documentation
Usage — canonical workflows,
response_mode, chaining, ambiguity and withdrawn-ID semantics, thehgnc://resources.Configuration — every
HGNC_LINK_*variable, the transports, and the Host / Origin / CORS boundary.Data — the bulk dumps, the index build, freshness, and the (unwired) live REST client.
Deployment — cron and systemd refresh, and the Docker path.
Architecture — the ingest → SQLite → service → MCP planes, and the schema.
Design spec — why it is shaped this way.
Contributing
See AGENTS.md for engineering conventions — the error taxonomy, the
next_commands contract, and how to add a tool. make ci-local is the definition-of-done
gate: format, lint, line budget, README standard, mypy strict, and tests.
License
MIT © hgnc-link contributors. HGNC data carries no usage restrictions (effectively CC0); the attribution cited above is requested but not required.
Available Tools
9 toolsget_geneGet Gene RecordARead-onlyIdempotent
Return the full HGNC record for a gene, resolved from an HGNC id, current symbol, previous symbol, alias, or an external gene id (Ensembl gene id, RefSeq / UniProt accession, NCBIGene:) exactly like resolve_symbol. Includes name, status, locus group/type, location (cytogenetic band), aliases/previous symbols, gene groups, and all cross-references. For a complete alias list read alias_symbol + prev_symbol (HGNC) AND ncbi_gene_synonyms (NCBI Gene's own synonyms, kept separate; may repeat or extend HGNC's). response_mode controls verbosity (compact drops dates/provenance; minimal keeps identity + anchor ids). Signature: get_gene(query, response_mode=).
Inputs: query (required), response_mode.
get_gene_cross_referencesGet Gene Cross-ReferencesARead-onlyIdempotent
Return external database cross-references for a gene (forward identifier mapping): NCBI Gene, Ensembl, UniProt, RefSeq, MANE Select, OMIM, UCSC, VEGA, CCDS, MGI, RGD, Orphanet, COSMIC, PubMed. response_mode sets the default field set: minimal=NCBI+Ensembl ids; compact (default)=the high-value ids (NCBI, Ensembl, UniProt, RefSeq, MANE Select, OMIM, CCDS); standard/full=every populated field. databases optionally filters to specific sources by field key OR friendly label (e.g. 'mane', 'ncbi', 'uniprot') and OVERRIDES the response_mode tier; an unknown key is rejected with invalid_input + did-you-mean. query takes the same forms as resolve_symbol (symbol, HGNC id, Ensembl gene id, RefSeq / UniProt accession, NCBIGene:). Signature: get_gene_cross_references(query, databases=, response_mode=).
Inputs: query (required), databases, response_mode.
get_gene_groupGet Gene GroupARead-onlyIdempotent
Browse a HGNC gene group/family by numeric group id (e.g. '1157') or by name (e.g. 'RAF family'). Returns the member genes as symbol-ordered summaries. Members are paginated with limit + offset; the response carries member_count, returned, truncated, and next_offset, and (when truncated) a next_commands entry that fetches the next page. A name matching several groups returns the candidate groups so you can re-call with a specific id. Signature: get_gene_group(group, limit=, offset=, response_mode=).
Inputs: group (required), limit, offset, response_mode.
get_hgnc_diagnosticsGet HGNC DiagnosticsARead-onlyIdempotent
Report the local HGNC index status: whether the data is built, the loaded release date, gene/withdrawn counts, schema version, and when it was built. Use this to confirm freshness or diagnose an unavailable-data error. Signature: get_hgnc_diagnostics().
Inputs: no named parameters.
get_server_capabilitiesGet Server CapabilitiesARead-onlyIdempotent
Return the hgnc-link discovery surface. detail='summary' (default) is light: identity/build/HGNC release, the tool list WITH call signatures, accepted argument aliases, response modes, recommended workflows, error taxonomy, and limits. detail='full' adds vocabularies (locus groups, status values, match types) and the cross-reference database catalogue. Call this first in a cold session, or read hgnc://tools / hgnc://capabilities. Signature: get_server_capabilities(detail=).
Inputs: detail.
resolve_gene_by_xrefResolve Gene by Cross-ReferenceARead-onlyIdempotent
Find the HGNC gene(s) for an external database id (reverse identifier mapping); returns the matching gene summaries (hgnc_id, symbol, name). source is the database (entrez_id/ncbi, ensembl_gene_id, uniprot, refseq, mane_select, omim, ucsc, vega, ccds, mgi, rgd) and value is the id (e.g. source='ensembl_gene_id', value='ENSG00000157764'). A version suffix is tolerated (ENSG00000012048.23 resolves like ENSG00000012048), and a MANE Select transcript (ENST…/NM_…) resolves back to its gene. Signature: resolve_gene_by_xref(source, value, response_mode=).
Inputs: value (required), source (required), response_mode.
resolve_symbolResolve Gene SymbolARead-onlyIdempotent
Resolve any gene symbol, HGNC id or external gene id to its canonical record. For 2 or more genes, call resolve_symbols_batch once (up to 200, same accepted forms) instead of calling this tool per gene. Accepts a current symbol, a previous (withdrawn) symbol, an alias, an NCBI Gene synonym HGNC does not list, an HGNC id in either form (HGNC:1100 or 1100), or an Ensembl gene id (ENSG00000157764), RefSeq accession, UniProt accession or NCBIGene: CURIE, case-insensitively. Returns {hgnc_id, approved_symbol, name, status, locus_type, location, match_type (hgnc_id|current|previous|alias|ncbi_synonym|ensembl_gene_id|entrez_id|refseq_accession|mane_select|uniprot_ids)}; an id-type match_type names the external id type that matched; location is the cytogenetic band (chromosome location, e.g. 3p24.3). ncbi_synonym means only NCBI Gene (not HGNC) knows the symbol, and it ranks below every HGNC match. A bare number is always read as an HGNC id, never an NCBI Gene id (write NCBIGene: for that): the result then carries a note, and next_commands offers resolve_gene_by_xref(source='entrez_id'). An alias or synonym shared by several genes returns an ambiguous_query error with the candidate list (not silently picked); a withdrawn/merged symbol returns a not_found error that redirects to the successor record.
Inputs: query (required), response_mode.
resolve_symbols_batchResolve Gene Symbols (Batch)ARead-onlyIdempotent
Resolve or translate a batch of gene symbols, HGNC ids and/or external gene ids in one call (max 200). Accepts Ensembl gene ids (e.g. ENSG00000157764), RefSeq accessions, UniProt accessions and NCBIGene: CURIEs, so a list of ENSG ids -> HGNC symbols is one call. Each entry is resolved exactly like resolve_symbol; an individual miss or withdrawal never fails the batch (it is marked unresolved / obsolete in that entry). Returns one row per input in input order (each keeps its input as query, with approved_symbol, hgnc_id, match_type), resolved/unresolved counts, and unresolved_queries (the inputs with no single match). Signature: resolve_symbols_batch(queries, response_mode=).
Inputs: queries (required), response_mode.
search_genesSearch GenesARead-onlyIdempotent
Search gene symbols, names, aliases, and previous symbols by free text (FTS); returns relevance-ranked {hgnc_id, symbol, name, locus_type, score} gene summaries. Nomenclature-only: there is NO disease/phenotype semantics, so a descriptive query (e.g. 'polycystin kidney') only matches words present in a gene's nomenclature. Use resolve_symbol for an exact symbol/id; use this for partial names. Signature: search_genes(query, limit=, response_mode=).
Inputs: query (required), limit, response_mode.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target a clearly distinct operation (batch vs single resolve, FTS search, reverse xref mapping, gene group browse, diagnostics, capabilities). The main overlaps are resolve_symbol vs get_gene (both resolve an identifier, differing only in payload depth) and get_gene_cross_references vs get_gene, which already returns 'all cross-references'. Descriptions do steer the agent (use get_gene for the full record, the dedicated xref tool for filtering/response modes), so the ambiguity is manageable but real.
All nine names are snake_case with a leading verb (get_/resolve_/search_) followed by a clear noun or noun phrase, e.g. get_gene, get_gene_group, get_gene_cross_references, resolve_gene_by_xref. The verb choice also carries meaning (get = fetch record, resolve = map identifier), so the pattern is predictable throughout.
Nine tools sit squarely in the well-scoped range, and each earns its place: a single/batch resolve pair, record fetch, FTS search, forward and reverse xref mapping, group browse, diagnostics, and capability discovery. Nothing looks redundant or padded.
Coverage is strong for a nomenclature server: identifier resolution (single + batch, many id types), record retrieval, name search, bidirectional cross-referencing, gene-group browsing with pagination, and index diagnostics. The notable gap is discovery of gene groups themselves — get_gene_group requires already knowing a group id or name, with no list/enumerate operation — plus no locus-type or chromosome-band filtering in search. These are minor workarounds rather than dead ends.
Maintenance
Related MCP Connectors
dbSNP refSNP records and HGVS/SPDI/rsID normalization for human genetic variants, from NCBI…
NCBI Datasets — the US National Library of Medicine's genome, gene and taxonomy reference service…
UniProt protein data: find proteins, map genes to proteins, function and disease links
HGNC (HUGO Gene Nomenclature Committee) MCP.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides access to the Ensembl genomics REST API with 30+ tools for genomic data including gene lookup, sequence retrieval, genetic variants, cross-species homology, phenotypes, and regulatory features.25ISC
- AlicenseAqualityAmaintenance▎ Provides 32 tools for plant-genomics locus lookup across 11 free public backends (Ensembl Plants, Phytozome, UniProtKB, Europe PMC, QuickGO, NCBI BLAST, Gramene, KEGG, STRING-DB, ATTED-II, BAR). Takes a TAIR-style locus plus optional organism and returns gene metadata, functional/pathway annotation, interactions, co-expression, and literature — in single-locus, batch, and cross-source synthesis.58242 PyPI9MIT
- AlicenseNot gradedqualityDmaintenanceUnified genomic track, peak, and sequence retrieval tool for ENCODE, ChIP-Atlas, ReMap, GEO, and SRA/ENA with unified metadata, resolved DOI/PMID provenance, and direct FASTQ download without SRA toolkit.MIT
- AlicenseNot gradedqualityCmaintenanceEnables functional enrichment analysis of gene lists against multiple pathway and ontology databases, plus gene/protein identifier conversion and cross-species ortholog mapping.58 npmMIT