What is the MCP Server?
The OMOPHub MCP Server connects your AI assistant to the entire OHDSI ATHENA vocabulary. No database setup, no CSV wrangling - just ask your AI about medical concepts and get verified answers.Hosted MCP - No Installation Required
Skip installation entirely. Connect your AI client directly to mcp.omophub.com with just your API key.
Installation
Install via npm - no build step required:npx:
Claude Desktop
Open Claude Desktop settings > Developer tab > Edit Config. Add toclaude_desktop_config.json:
Claude Code
Cursor
Open the command palette > Cursor Settings > MCP > Add new global MCP server. Add to.cursor/mcp.json:
VS Code
Add to.vscode/mcp.json:
Windsurf
Add to your Windsurf MCP configuration:Available Tools
| Tool | Description |
|---|---|
search_concepts | Search for medical concepts by name or clinical term across all vocabularies |
get_concept | Get detailed info about a specific OMOP concept by concept_id |
get_concept_by_code | Look up a concept using a vocabulary-specific code (e.g., ICD-10 E11.9) |
map_concept | Map a concept to equivalent concepts in other vocabularies |
get_hierarchy | Navigate concept hierarchy - ancestors, descendants, or both |
list_vocabularies | List available medical vocabularies with statistics |
semantic_search | Search using natural language with neural embeddings - understands clinical meaning |
find_similar_concepts | Find concepts similar to a reference concept, name, or description |
explore_concept | Get concept details, hierarchy, and cross-vocabulary mappings in one call |
Tools Reference
See detailed parameter schemas and examples for each tool.
Environment Variables
| Variable | Required | Description |
|---|---|---|
OMOPHUB_API_KEY | Yes | Your OMOPHub API key |
OMOPHUB_BASE_URL | Custom API base URL (default: https://api.omophub.com/v1) | |
OMOPHUB_LOG_LEVEL | debug · info · warn · error (default: info) | |
OMOPHUB_ANALYTICS_OPTOUT | Set to true to disable analytics headers | |
MCP_TRANSPORT | stdio (default) or http | |
MCP_PORT | HTTP server port (default: 3100, only with http transport) | |
HEALTH_PORT | Port for standalone health endpoint in stdio mode |
Example Prompts
Try these after installing:“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”
“Search for metformin in RxNorm”
“Help me build a concept set for heart failure including all descendants”
“Find concepts related to ‘heart attack’” (uses semantic search)
“Give me everything about SNOMED concept 201826” (uses explore)
“What concepts are similar to ‘Type 2 diabetes mellitus’?”
Troubleshooting
| Error | Solution |
|---|---|
API key required | Set OMOPHUB_API_KEY in your environment or MCP config |
Authentication failed | API key may be invalid or expired - generate a new one |
Rate limit exceeded | Automatic retries are built in. For higher limits, upgrade your plan |
| Tools not appearing | Restart your AI client, verify npx @omophub/omophub-mcp runs without errors |