Omophub Mcp

io.github.OMOPHub由 GitHub 账号 OMOPHub 发布v1.1.0更新于 Oct 24, 2026

Search, lookup, map, and navigate OMOP medical vocabularies via AI agents

已验证STDIO仅桌面知识与记忆数据与分析

概览

AI 生成的概览

让 AI 助手通过 OMOPHub API 检索、查询、映射和浏览 SNOMED CT、ICD-10、RxNorm、LOINC 等 OMOP 医学词表。

可以做什么
  • 按名称、概念 ID 或词表代码搜索和查询概念,并支持语义搜索与相似概念查找
  • 在不同词表之间映射概念,并浏览概念的祖先与后代层级
  • 一次调用获取概念详情、层级与跨词表映射,并列出可用词表
  • 将 FHIR 编码值和 CodeableConcept 解析为 OMOP 标准概念及 CDM 目标表
  • 读取词表目录资源,并使用概念集构建和代码查询的引导式提示
适用场景
适合处理临床术语的场景:查找 OMOP 概念 ID、在 ICD-10、SNOMED、RxNorm 等词表间映射代码、校验代码,或为表型和队列定义组装概念集,而无需把 ATHENA CSV 导入本地数据库。
运行要求
以 npm 包通过 npx 在本地运行(需 Node.js),也可用 Docker 镜像或连接厂商托管的 HTTP 端点。需要 OMOPHub 账号和 API 密钥,通过 OMOPHUB_API_KEY 提供(托管端点使用 Authorization 请求头)。需要能访问 OMOPHub API 的网络。
安装前请注意
必须提供 OMOPHUB_API_KEY 密钥,切勿写入共享配置;托管端点以 Authorization 请求头传递。使用受 API 速率限制和套餐等级约束,除非设置 OMOPHUB_ANALYTICS_OPTOUT,否则会发送分析请求头。分页的映射结果若未跟进 has_more,可能看似完整却遗漏代码。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Omophub Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

OMOPHub MCP Server

Medical vocabularies for AI agents.
Search, map, and navigate 11M+ OMOP concepts: SNOMED CT, ICD-10, RxNorm, LOINC, and more. Directly from Claude, Cursor, VS Code, or any MCP-compatible client.

[npm version] [Codecov] [npm downloads] [License] [TypeScript] [MCP Compatible]

Quick Start · Tools · Examples · Docs · Website


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

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

Claude Desktop

Open Claude Desktop settings > "Developer" tab > "Edit Config". Add to claude_desktop_config.json:

json
{  "mcpServers": {    "omophub": {      "command": "npx",      "args": ["-y", "@omophub/omophub-mcp"],      "env": {        "OMOPHUB_API_KEY": "oh_your_key_here"      }    }  }}
Claude Code
bash
claude mcp add omophub -- npx -y @omophub/omophub-mcp# Then set OMOPHUB_API_KEY in your environment
Cursor

Open the command palette and choose "Cursor Settings" > "MCP" > "Add new global MCP server". Add to .cursor/mcp.json:

json
{  "mcpServers": {    "omophub": {      "command": "npx",      "args": ["-y", "@omophub/omophub-mcp"],      "env": {        "OMOPHUB_API_KEY": "oh_your_key_here"      }    }  }}
VS Code

Add to .vscode/mcp.json:

json
{  "servers": {    "omophub": {      "command": "npx",      "args": ["-y", "@omophub/omophub-mcp"],      "env": {        "OMOPHUB_API_KEY": "oh_your_key_here"      }    }  }}
Streamable HTTP (Remote / Hosted)

Run the MCP server as an HTTP service that clients connect to via URL:

bash
# Start HTTP server on port 3100npx -y @omophub/omophub-mcp --transport=http --port=3100 --api-key=oh_your_key_here
# MCP endpoint: http://localhost:3100/mcp# Health check:  http://localhost:3100/health

Connect MCP clients to / or /mcp. Useful for centralized deployments where multiple AI agents share one server instance.

Hosted (mcp.omophub.com)

Connect directly to the OMOPHub-hosted MCP server - no installation required. Each client authenticates with their own API key via the Authorization header:

Claude Code:

bash
claude mcp add omophub --transport http \  -H "Authorization: Bearer oh_your_key_here" \  https://mcp.omophub.com

VS Code (.vscode/mcp.json):

json
{  "servers": {    "omophub": {      "type": "http",      "url": "https://mcp.omophub.com",      "headers": { "Authorization": "Bearer oh_your_key_here" }    }  }}

Cursor / Windsurf:

json
{  "mcpServers": {    "omophub": {      "url": "https://mcp.omophub.com",      "headers": { "Authorization": "Bearer oh_your_key_here" }    }  }}

Note: Claude Desktop's Custom Connectors UI only supports OAuth and cannot send custom headers. Use the npx setup instead.

Docker
bash
# HTTP mode (default in Docker) - serves MCP on port 3100docker run -e OMOPHUB_API_KEY=oh_your_key_here -p 3100:3100 omophub/omophub-mcp
# Stdio mode (for piping)docker run -i -e OMOPHUB_API_KEY=oh_your_key_here omophub/omophub-mcp --transport=stdio

3. 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

ToolWhat it does
search_conceptsSearch for medical concepts by name or clinical term across all vocabularies
get_conceptGet detailed info about a specific OMOP concept by concept_id
get_concept_by_codeLook up a concept using a vocabulary-specific code (e.g., ICD-10 E11.9)
map_conceptMap a concept to equivalent concepts in other vocabularies (paginated — see note below)
get_hierarchyNavigate concept hierarchy - ancestors, descendants, or both
list_vocabulariesList available medical vocabularies with statistics
semantic_searchSearch using natural language with neural embeddings (understands clinical meaning)
find_similar_conceptsFind concepts similar to a reference concept, name, or description
explore_conceptGet concept details, hierarchy, and cross-vocabulary mappings in one call
fhir_resolveResolve a FHIR coded value (incl. administrative codes via the HL7 FHIR-to-OMOP IG ConceptMaps) to its OMOP standard concept and CDM target table
fhir_resolve_codeable_conceptResolve a FHIR CodeableConcept — best match by OHDSI vocabulary preference, honoring userSelected

Resources

URIDescription
omophub://vocabulariesFull vocabulary catalog with statistics
omophub://vocabularies/{vocabulary_id}Details for a specific vocabulary

Prompts

PromptDescription
phenotype-concept-setGuided workflow to build a concept set for a clinical phenotype
code-lookupLook 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_concept returns one page at a time (page_size 1-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. Check has_more in the response and keep incrementing page until it is false — otherwise the concept set looks complete while silently missing codes.

Use find_similar_concepts for exploration, not for this: it is ranked embedding similarity, so it has no notion of set membership and cannot be exhaustive no matter how large page_size is.

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

VariableRequiredDescription
OMOPHUB_API_KEY✅Your OMOPHub API key
OMOPHUB_BASE_URLCustom API base URL (default: https://api.omophub.com/v1)
OMOPHUB_LOG_LEVELdebug · info · warn · error (default: info)
OMOPHUB_ANALYTICS_OPTOUTSet to true to disable analytics headers
OMOPHUB_USER_AGENT_SUFFIXOptional deployment identifier appended to omophub-mcp/<version> (default: none)
MCP_TRANSPORTstdio (default) or http
MCP_PORTHTTP server port (default: 3100, only used with http transport)
HEALTH_PORTPort for standalone health endpoint in stdio mode (default: disabled)

CLI Arguments

bash
# Stdio mode (default)npx @omophub/omophub-mcp --api-key=oh_your_key --base-url=https://custom.api.com/v1
# HTTP modenpx @omophub/omophub-mcp --transport=http --port=3100 --api-key=oh_your_key
# Stdio mode with standalone health endpointnpx @omophub/omophub-mcp --api-key=oh_your_key --health-port=8080

Health Endpoint (Docker / Kubernetes)

In HTTP mode, the health endpoint is available at /health on the same port as the MCP endpoint:

bash
npx @omophub/omophub-mcp --transport=http --port=3100 --api-key=oh_your_keycurl http://localhost:3100/health# → {"status":"ok","version":"1.5.0","uptime_seconds":42}

In stdio mode, use --health-port for a standalone health endpoint:

bash
HEALTH_PORT=8080 OMOPHUB_API_KEY=oh_your_key npx @omophub/omophub-mcpcurl http://localhost:8080/health

The Docker image defaults to HTTP mode on port 3100 with health checks built in.


Development

bash
git clone https://github.com/OMOPHub/omophub-mcp.gitcd omophub-mcpnpm installnpm run buildnpm test

Run locally:

bash
OMOPHUB_API_KEY=oh_your_key npx tsx src/index.ts

Troubleshooting

ErrorSolution
API key requiredSet OMOPHUB_API_KEY in your environment or MCP config
Authentication failedAPI key may be invalid or expired - generate a new one
Rate limit exceededAutomatic retries are built in. For higher limits, upgrade your plan
Tools not appearingRestart your AI client, verify npx @omophub/omophub-mcp runs without errors, check config path

Links


License

MIT - see LICENSE

来源:README.md,提交 995f79a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分