OMOPHub MCP Server
OfficialOMOPHub MCP Server gives AI agents direct access to 11M+ OMOP medical vocabulary concepts (SNOMED CT, ICD-10, RxNorm, LOINC, and 120+ more) for searching, mapping, and navigating clinical terminologies without any local database setup.
Search concepts — find concepts by clinical term or synonym with vocabulary, domain, and standard-status filters (
search_concepts)Semantic search — find concepts from everyday language ("heart attack" → Myocardial infarction) using neural embeddings (
semantic_search)Find similar concepts — discover related concepts, alternative codes, or phenotype candidates via semantic, lexical, or hybrid similarity (
find_similar_concepts)Look up concepts — retrieve full detail (name, vocabulary, domain, class, valid dates, synonyms) by numeric OMOP
concept_id(get_concept)Code lookup — resolve a vocabulary-specific code such as ICD-10
E11.9or SNOMED44054006to its OMOP concept (get_concept_by_code)Cross-vocabulary mapping — map a code or concept to other vocabularies (e.g., ICD-10 → SNOMED), with pagination for exhaustive code lists (
map_concept)Hierarchy navigation — list ancestors and/or descendants of a concept to build phenotype definitions (
get_hierarchy)Explore concepts — get details, hierarchy, and mappings in a single call (
explore_concept)List vocabularies — browse available terminology systems with concept counts and statistics (
list_vocabularies)FHIR-to-OMOP resolution — resolve FHIR Coding or CodeableConcept values to standard OMOP concepts and CDM target tables, honoring OHDSI vocabulary preference and
userSelected(fhir_resolve,fhir_resolve_codeable_concept)Supporting resources and prompts — vocabulary catalog URIs plus guided
phenotype-concept-setandcode-lookupworkflowsFlexible deployment — run over stdio, local or hosted Streamable HTTP, or Docker, with health endpoints and configurable auth
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., "@OMOPHub MCP Server Map ICD-10 code E11.9 to SNOMED"
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.
Why OMOPHub MCP?
Working with medical vocabularies today means downloading multi-gigabyte CSV files, loading them into a local database, and writing SQL to find what you need. Every time.
OMOPHub MCP Server gives your AI assistant instant access to the entire OHDSI ATHENA vocabulary. No database setup, no CSV wrangling, no context switching. Just ask.
You: "Map ICD-10 code E11.9 to SNOMED"
Claude: Found it - E11.9 (Type 2 diabetes mellitus without complications)
maps to SNOMED concept 201826 (Type 2 diabetes mellitus)
via standard 'Maps to' relationship.Use cases:
Concept lookup - Find OMOP concept IDs for clinical terms in seconds
Cross-vocabulary mapping - Map between ICD-10, SNOMED, RxNorm, LOINC, and 120+ vocabularies
Hierarchy navigation - Explore ancestors and descendants for phenotype definitions
Concept set building - Let your AI agent assemble complete concept sets for cohort definitions
Code validation - Verify medical codes and check their standard mappings
Related MCP server: snowstorm-mcp-server
Quick Start
1. Get an API Key
Sign up at omophub.com → create an API key in your dashboard.
2. Add to Your AI Client
Open Claude Desktop settings > "Developer" tab > "Edit Config". Add to claude_desktop_config.json:
{
"mcpServers": {
"omophub": {
"command": "npx",
"args": ["-y", "@omophub/omophub-mcp"],
"env": {
"OMOPHUB_API_KEY": "oh_your_key_here"
}
}
}
}claude mcp add omophub -- npx -y @omophub/omophub-mcp
# Then set OMOPHUB_API_KEY in your environmentOpen the command palette and choose "Cursor Settings" > "MCP" > "Add new global MCP server". Add to .cursor/mcp.json:
{
"mcpServers": {
"omophub": {
"command": "npx",
"args": ["-y", "@omophub/omophub-mcp"],
"env": {
"OMOPHUB_API_KEY": "oh_your_key_here"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"omophub": {
"command": "npx",
"args": ["-y", "@omophub/omophub-mcp"],
"env": {
"OMOPHUB_API_KEY": "oh_your_key_here"
}
}
}
}Run the MCP server as an HTTP service that clients connect to via URL:
# Start the local listener; each client supplies its own credential
npx -y @omophub/omophub-mcp --transport=http --port=3100
# MCP endpoint: http://localhost:3100/mcp
# Health check: http://localhost:3100/healthPoint the client at http://127.0.0.1:3100/mcp and set its Authorization header to Bearer <your OMOPHub API key> on every MCP request. The legacy / path also accepts individual API keys. Local HTTP listens on loopback by default.
Upgrading from 1.6.3. Move the key from the HTTP server’s --api-key or OMOPHUB_API_KEY setting into each client’s authorization header. Use an individual key for each account so the API can apply its vocabulary permissions and tier quota. For local stdio, keep the key in the client’s MCP environment. If you previously exposed a keyed HTTP server on a shared network, restrict its listener and review the account’s usage.
For an OAuth-capable client, add https://mcp.omophub.com/mcp, sign in to OMOPHub and approve vocabulary access. The API enforces your vocabulary permissions and bills successful reads against your tier. To disconnect one app, open Settings → Connected Apps in the OMOPHub dashboard.
Clients that use individual API keys can send the key in the Authorization header:
Claude Code:
claude mcp add omophub --transport http \
-H "Authorization: Bearer oh_your_key_here" \
https://mcp.omophub.comVS Code (.vscode/mcp.json):
{
"servers": {
"omophub": {
"type": "http",
"url": "https://mcp.omophub.com",
"headers": { "Authorization": "Bearer oh_your_key_here" }
}
}
}Cursor / Windsurf:
{
"mcpServers": {
"omophub": {
"url": "https://mcp.omophub.com",
"headers": { "Authorization": "Bearer oh_your_key_here" }
}
}
}For a Claude custom connector, use the hosted OAuth URL above. The local Claude Desktop setup uses stdio and an API key.
# HTTP for clients on this machine; send the API key from the client
docker run --rm -e MCP_HOST=0.0.0.0 -p 127.0.0.1:3100:3100 omophub/omophub-mcp:1.7.0
# Stdio mode (for piping)
docker run -i -e OMOPHUB_API_KEY=oh_your_key_here omophub/omophub-mcp --transport=stdio3. Start Asking
"What's the OMOP concept ID for type 2 diabetes?"
"Map ICD-10 code E11.9 to SNOMED"
"Show me all descendants of Diabetes mellitus in SNOMED"
Available Tools
Tool | What it does |
| Search for medical concepts by name or clinical term across all vocabularies |
| Get detailed info about a specific OMOP concept by |
| Look up a concept using a vocabulary-specific code (e.g., ICD-10 |
| Map a concept to equivalent concepts in other vocabularies (paginated — see note below) |
| Navigate concept hierarchy - ancestors, descendants, or both |
| List available medical vocabularies with statistics |
| Search using natural language with neural embeddings (understands clinical meaning) |
| Find concepts similar to a reference concept, name, or description |
| Get concept details, hierarchy, and cross-vocabulary mappings in one call |
| Resolve a FHIR coded value (incl. administrative codes via the HL7 FHIR-to-OMOP IG ConceptMaps) to its OMOP standard concept and CDM target table |
| Resolve a FHIR CodeableConcept — best match by OHDSI vocabulary preference, honoring |
Resources
URI | Description |
| Full vocabulary catalog with statistics |
| Details for a specific vocabulary |
Prompts
Prompt | Description |
| Guided workflow to build a concept set for a clinical phenotype |
| Look up and validate a medical code with mappings and hierarchy |
Example Prompts
Find a concept → search_concepts
"Search for metformin in RxNorm"
Cross-vocabulary mapping → map_concept
"I have SNOMED concept 201826 - what's the ICD-10 code?"
Build a concept set → search_concepts → get_hierarchy → map_concept
"Help me build a concept set for Type 2 diabetes including all descendants"
Completeness matters here.
map_conceptreturns one page at a time (page_size1-200, default 100). A widely-used drug ingredient can have well over a thousand NDC mappings, so a single call is a sample, not the answer. Checkhas_morein the response and keep incrementingpageuntil it isfalse— otherwise the concept set looks complete while silently missing codes.Use
find_similar_conceptsfor exploration, not for this: it is ranked embedding similarity, so it has no notion of set membership and cannot be exhaustive no matter how largepage_sizeis.
Validate a code → get_concept_by_code → map_concept
"Is ICD-10 code E11.9 valid? What does it map to in SNOMED?"
Semantic search → semantic_search
"Find concepts related to 'heart attack'"
Explore a concept → explore_concept
"Give me everything about SNOMED concept 201826"
FHIR-to-OMOP resolution → fhir_resolve
"Resolve FHIR SNOMED code 44054006 to OMOP — what table does it go in?"
CodeableConcept → fhir_resolve_codeable_concept
"This CodeableConcept has both SNOMED 44054006 and ICD-10 E11.9 — which should I use for OMOP?"
Find similar → find_similar_concepts
"What concepts are similar to 'Type 2 diabetes mellitus'?"
Configuration
Environment Variables
Variable | Required | Description |
| stdio | Individual API key for local stdio. HTTP clients send their own credentials. |
| Custom API base URL (default: | |
|
| |
| Set to | |
| Optional deployment identifier appended to | |
|
| |
| HTTP server port (default: | |
| HTTP bind address (default | |
| Additional accepted HTTP authorities, comma-separated, including any nondefault port. For a reverse proxy, allow its public authority and preserve the original Host header. | |
| Additional trusted browser origins, comma-separated, including scheme and any nondefault port. Native clients may omit Origin. | |
| Port for standalone health endpoint in stdio mode (default: disabled) |
CLI Arguments
# Stdio mode (default)
npx @omophub/omophub-mcp --api-key=oh_your_key --base-url=https://custom.api.com/v1
# HTTP mode
npx @omophub/omophub-mcp --transport=http --port=3100
# Stdio mode with standalone health endpoint
npx @omophub/omophub-mcp --api-key=oh_your_key --health-port=8080Health Endpoint (Docker / Kubernetes)
In HTTP mode, the health endpoint is available at /health on the same port as the MCP endpoint:
npx @omophub/omophub-mcp --transport=http --port=3100
curl http://localhost:3100/health
# → {"status":"ok","version":"1.7.0","uptime_seconds":42}In stdio mode, use --health-port for a standalone health endpoint:
HEALTH_PORT=8080 OMOPHUB_API_KEY=oh_your_key npx @omophub/omophub-mcp
curl http://localhost:8080/healthThe Docker image defaults to HTTP mode on port 3100 with health checks built in.
Development
git clone https://github.com/OMOPHub/omophub-mcp.git
cd omophub-mcp
npm install
npm run build
npm testRun locally:
OMOPHUB_API_KEY=oh_your_key npx tsx src/index.tsTroubleshooting
Error | Solution |
HTTP 401 | Configure the client’s Bearer API key or reconnect its hosted OAuth grant. |
HTTP 403 before MCP dispatch | Check the requested host and browser origin against the configured allowlists. |
stdio API key required | Set |
| API key may be invalid or expired - generate a new one |
| Automatic retries are built in. For higher limits, upgrade your plan |
Tools not appearing | Restart your AI client, verify |
Links
License
MIT - see LICENSE
Available Tools
11 toolsexplore_conceptExplore a conceptARead-only
Get a comprehensive view of a medical concept in one call: detailed info, ancestors/descendants hierarchy, and cross-vocabulary mappings. Use this instead of calling get_concept + get_hierarchy + map_concept separately. Ideal for understanding what a concept is, where it sits in the classification tree, and how it maps to other coding systems.
Inputs: concept_id (required), hierarchy_levels, include_mappings, include_hierarchy, +2 more. Returns: concept
fhir_resolveResolve a FHIR codingARead-only
Resolve one FHIR Coding with separate system and code fields to its OMOP standard concept and CDM target table. Supports text-only input via semantic search fallback and optional Phoebe recommendations. Examples: system='http://snomed.info/sct' code='44054006' for Type 2 diabetes, or display='heart attack' for text-only resolution.
Inputs: code, system, display, on_unmapped, +4 more. Returns: data, success
fhir_resolve_codeable_conceptResolve a FHIR CodeableConceptARead-only
Resolve a FHIR CodeableConcept with multiple codings. Picks the best match per OHDSI vocabulary preference (SNOMED > RxNorm > LOINC > CVX > ICD-10). Falls back to the text field via semantic search if no coding resolves.
Inputs: coding (required), text, on_unmapped, resource_type, +2 more. Returns: data, success
find_similar_conceptsFind similar conceptsARead-only
Find medical concepts similar to a reference concept, name, or natural language query. Supports three algorithms: 'semantic' (neural embeddings — best for meaning, and the default), 'lexical' (text matching — best for typos), 'hybrid' (combined). Provide exactly ONE of: concept_id, concept_name, or query. Use this to explore related concepts, find alternative codes, or build phenotype concept sets. Tip: For drug vocabularies like RxNorm, use drug class names ('ACE inhibitors', 'beta blockers', 'antihypertensives') rather than symptom descriptions ('medications for high blood pressure') — the embedding model aligns better with clinical terminology than lay language.
Inputs: page, query, algorithm, page_size, +7 more. Returns: similar_concepts
get_conceptLook up a concept by numeric OMOP IDARead-only
Get detailed information about a specific OMOP concept by its numeric concept_id. Returns the concept name, vocabulary, domain, concept class, standard status, valid dates, and synonyms. After searching by name, pass the selected numeric concept_id here to verify the concept code and vocabulary release.
Inputs: concept_id (required). Returns: concept_id, concept_name, vocab_release
get_concept_by_codeLook up a source concept by vocabulary and codeARead-only
Look up an OMOP concept using a vocabulary-specific code and vocabulary ID. Both parameters are required to avoid ambiguity - the same code can exist in multiple vocabularies (e.g., 'E11' exists in both ICD10CM and ICD10). If multiple concepts share the same code within a vocabulary, all matches are returned - prefer the one with standard_concept='S'.
Inputs: concept_code (required), vocabulary_id (required). Returns: concepts
get_hierarchyList descendants or ancestors of an OMOP conceptARead-only
List descendants of a known OMOP concept using direction='down', or ancestors using 'up'. Use page=1 and the requested page_size. While has_more is true, set the next call’s page argument to the returned next_page and keep the same page size and filters. Read truncated to determine whether the upstream row cap was reached. A combined view cannot establish exhaustive coverage.
Inputs: concept_id (required), page, direction, page_size, +3 more. Returns: has_more, ancestors, direction, next_page, +3 more
list_vocabulariesList available vocabulariesARead-only
List all available medical vocabularies in the OMOP standardized vocabulary system with concept counts and metadata. Use this to understand what terminology systems are available (SNOMED CT, ICD-10-CM, RxNorm, LOINC, etc.) and their scope.
Inputs: search. Returns: total, vocabularies
map_conceptMap a source conceptARead-only
Map a source vocabulary code or a known numeric OMOP concept ID to another vocabulary. For ICD10CM to SNOMED, supply vocabulary_id="ICD10CM", the original concept_code and target_vocabularies="SNOMED". The tool resolves the exact source code before reading its mappings. Report only the targets in successful mappings rows. On error, the mapping is unverified. Follow has_more for further pages.
Inputs: page, page_size, concept_id, concept_code, +3 more. Returns: mapped, message, mappings, mapping_error, +1 more
search_conceptsSearch terminology by nameARead-only
Search a vocabulary by term or synonym. When the user asks to look up the matching concept or report its vocabulary release, set verify_match to true. A unique match then gets a second API read by its numeric ID. Multiple matches are returned for selection.
Inputs: query (required), page, page_size, domain_ids, +3 more. Returns: page, total, results, verified_concept
semantic_searchSearch terminology by meaningARead-only
Search for medical concepts using natural language with neural embeddings. Unlike keyword search, semantic search understands clinical meaning — 'heart attack' finds 'Myocardial infarction', 'high blood sugar' finds 'Hyperglycemia'. Returns concepts ranked by similarity score. Use this when the user describes symptoms, conditions, or treatments in everyday language rather than exact medical terminology.
Inputs: query (required), page_size, threshold, domain_ids, +2 more. Returns: query, results
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools are identifiable, but semantic_search and find_similar_concepts overlap substantially when a query string is used, and explore_concept is explicitly a superset of get_concept plus get_hierarchy plus map_concept. The descriptions do help distinguish them, but the boundaries between search/related-concept tools and the convenience aggregator are blurry enough to invite misselection.
The tool set consistently uses snake_case, with predictable verb_noun forms such as get_concept, map_concept, list_vocabularies, and find_similar_concepts. Minor deviations exist: semantic_search lacks a leading verb and fhir_resolve/fhir_resolve_codeable_concept use a domain prefix rather than the same verb pattern.
Eleven tools is well within the typical 3-15 range for a reference/lookup server. The set covers keyword search, semantic search, similar-concept discovery, concept retrieval, mapping, hierarchy, vocabulary listing, and FHIR resolution without obvious padding.
The surface covers the core read-only OMOP workflows: concept lookup by ID/name/code, hierarchy traversal, cross-vocabulary mapping, vocabulary listing, and FHIR Coding/CodeableConcept resolution. Minor gaps remain around bulk concept-set operations, relationship-specific queries, and richer filtering by domain or vocabulary, but agents can work around these with the existing tools.
Maintenance
Related MCP Connectors
Diagnoses, functioning, drugs & labs: ICD-11, ICF, LOINC, RxNorm, MeSH, ATC, CID-10. 37 tools, MIT.
Expert-structured medical ontologies, relationships, and evidence for AI research and reasoning.
Connect AI clients to biomedical data and tools.
Pharmacogenomics for AI agents: cited drug–gene, gene and rsID lookups plus a medication screen.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides keyless access to NIH clinical data including ICD-10/9, RxTerms, LOINC, NPI, and conditions search, allowing AI agents to query medical terminologies without authentication.65 npmMIT

snowstorm-mcp-serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to look up, search, validate, navigate hierarchies, and expand value sets for SNOMED CT clinical terminology through the Model Context Protocol.9Apache 2.0
vClinic MCP Serverofficial
FlicenseNot gradedqualityDmaintenanceEnables AI agents to manage virtual clinic data including patients, visits, diagnoses, treatments, lab/radiology orders, and search medical literature and internal knowledge base.-- FlicenseNot gradedqualityDmaintenanceEnables LLMs and AI agents to query a biomedical knowledge graph stored in RedisGraph, with tools for concept search, synonym enrichment, and study variable discovery through semantic relationships.-