SNOMED CT MCP Serverのロゴ

SNOMED CT MCP Server

コミュニティ
eigenbau

MCP server for SNOMED CT concept lookup via any FHIR R4 terminology server

公開者eigenbau
リポジトリmcp-snomed-ct
言語Python
フォーク
3
スター
21
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    SNOMED CT MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには21件のスターと3件のフォークがあります。

SNOMED CT MCP Server

An MCP server that provides SNOMED CT clinical terminology lookup via any FHIR R4 terminology server that supports SNOMED CT and ECL (Expression Constraint Language).

Compatible servers include Snowstorm, Ontoserver, HAPI FHIR, and other FHIR-compliant terminology servers.

[!CAUTION] Accuracy disclaimer — The SNOMED CT data returned by this server is sourced directly from authoritative FHIR terminology servers and is accurate at the point of retrieval. However, an LLM processes and presents these results to you, and in doing so may introduce inaccuracies — rephrasing terms, inferring relationships, or adding context that is not present in the original data. Always verify critical clinical information against the raw SNOMED CT codes and preferred terms provided in the tool output.

Tools

snomed_lookup

Search for SNOMED CT concepts by clinical term.

Parameters:

  • term (string, required) — Clinical term to search, e.g. "exercise therapy", "diabetes", "appendectomy"
  • domain (string, optional, default "all") — Scope the search to a SNOMED CT top-level hierarchy:
    • "clinical_finding" — diseases, signs, symptoms
    • "procedure" — surgeries, therapies, diagnostic tests
    • "observable_entity" — measurements, scores, lab values
    • "body_structure" — anatomical structures, organs, body regions
    • "organism" — bacteria, viruses, organisms
    • "substance" — chemicals, dietary substances, biological substances
    • "pharmaceutical_product" — medications, vaccines, clinical drugs
    • "specimen" — blood samples, tissue specimens
    • "special_concept" — special SNOMED concepts
    • "physical_object" — devices, implants, instruments
    • "physical_force" — radiation, thermal, mechanical forces
    • "event" — accidents, incidents, occurrences
    • "environment" — locations, geographic regions, settings
    • "social_context" — occupations, religions, ethnic groups
    • "situation" — clinical situations with explicit context
    • "staging_and_scales" — tumor staging, assessment scales
    • "qualifier_value" — severity, laterality, other qualifiers
    • "record_artifact" — clinical documents, forms, records
    • "snomed_model_component" — metadata and model components
    • "all" — search across all configured domains
  • count (integer, optional, default 10, max 50) — Max results to return

snomed_get_by_code

Fetch full details for a known SNOMED CT concept ID.

Parameters:

  • code (string, required) — Numeric SNOMED CT concept ID, e.g. "229070002"

snomed_get_related

Navigate the SNOMED CT hierarchy for a concept. Returns the concept's parents (immediate supertypes), children (immediate subtypes), and siblings (other children of the same parents).

Parameters:

  • code (string, required) — Numeric SNOMED CT concept ID, e.g. "229070002"

Prompts

normalize_clinical_term

A structured multi-step prompt that guides the LLM through normalizing free-text or lay language into a verified SNOMED CT concept. The workflow: parse the input, expand abbreviations, generate candidate clinical terms, search each via snomed_lookup, and select the best match with a confidence score.

Parameters:

  • raw_input (string, required) — The original user input in any language or format (lay, clinical, abbreviated)
  • clinical_context (string, optional) — Clinical domain hint to narrow the search (e.g. "musculoskeletal", "cardiology")

explore_concept

A structured multi-step prompt that guides the LLM through exploring concepts related to a starting concept, driven by the user's semantic intent. Goes beyond hierarchy navigation by combining IS-A traversal with targeted searches across different SNOMED domains — useful for questions like "what quantifiable measures relate to this concept?" or "what procedures are associated with this finding?".

Parameters:

  • code (string, required) — SNOMED CT concept ID to explore from, e.g. "282097004"
  • intent (string, required) — What the user is looking for, e.g. "quantifiable measures", "related procedures", "assessment scales"

Configuration

The server supports two backends, controlled by the SNOMED_BACKEND environment variable:

BackendSNOMED_BACKENDURL variableDefault
Remote FHIR serverremote (default)FHIR_REMOTE_URLhttps://r4.ontoserver.csiro.au/fhir
Local SnowstormlocalSNOWSTORM_LOCAL_URLhttp://localhost:8080/fhir

Copy .env.example and configure:

bash
cp .env.example .env

Local Snowstorm (e.g. running on localhost:8080):

env
SNOMED_BACKEND=local
# SNOWSTORM_LOCAL_URL=http://localhost:8080/fhir  # override if non-default port

Remote server (default):

env
SNOMED_BACKEND=remote
FHIR_REMOTE_URL=https://r4.ontoserver.csiro.au/fhir

Domain filtering

By default all 19 SNOMED CT top-level hierarchies are searchable. Use SNOMED_DOMAINS to restrict which domains are exposed in the tool schema:

env
# Only expose three domains:
SNOMED_DOMAINS=clinical_finding,procedure,pharmaceutical_product

# Expose all domains (default):
SNOMED_DOMAINS=all

When set, the server dynamically builds the domain enum and descriptions so the LLM only sees the configured domains. See .env.example for the full list.

Installation

bash
pip install mcp httpx pydantic

Claude Desktop config (claude_desktop_config.json)

Using a local Snowstorm instance:

json
{
  "mcpServers": {
    "snomed-ct": {
      "command": "python",
      "args": ["/absolute/path/to/server.py"],
      "env": {
        "SNOMED_BACKEND": "local"
      }
    }
  }
}

Using a remote server:

json
{
  "mcpServers": {
    "snomed-ct": {
      "command": "python",
      "args": ["/absolute/path/to/server.py"],
      "env": {
        "SNOMED_BACKEND": "remote",
        "FHIR_REMOTE_URL": "https://r4.ontoserver.csiro.au/fhir"
      }
    }
  }
}

Claude Code

bash
claude mcp add snomed-ct python /absolute/path/to/server.py

The server reads its configuration from the .env file. You can also pass env vars inline:

bash
SNOMED_BACKEND=local claude mcp add snomed-ct python /absolute/path/to/server.py

Requirements

  • Python 3.10+
  • One of:
    • A local Snowstorm instance with SNOMED CT loaded
    • A remote FHIR R4 terminology server with SNOMED CT and ECL support

Running a local terminology server with Snowstorm

Snowstorm is SNOMED International's open-source terminology server. It provides a FHIR R4 endpoint and full ECL support, making it the recommended local backend for this MCP server.

Quick start with Docker

The fastest way to get Snowstorm running locally is with Docker Compose. See the Snowstorm documentation for full details.

bash
git clone https://github.com/IHTSDO/snowstorm.git
cd snowstorm
docker-compose up -d

Once Snowstorm is running, you need to import a SNOMED CT release package. You can obtain RF2 release files from MLDS (Member Licensing & Distribution Service) — a SNOMED International account is required.

After import, verify the FHIR endpoint is available:

bash
curl http://localhost:8080/fhir/metadata

Then configure this MCP server to use it:

env
SNOMED_BACKEND=local
SNOWSTORM_LOCAL_URL=http://localhost:8080/fhir

Example usage

Look up the SNOMED CT code for "exercise therapy"
→ snomed_lookup(term="exercise therapy", domain="procedure")

Get all synonyms for concept 229070002
→ snomed_get_by_code(code="229070002")

Find SNOMED codes for "chest pain"
→ snomed_lookup(term="chest pain", domain="clinical_finding")

Navigate the hierarchy for "Walking distance"
→ snomed_get_related(code="165263003")

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "eigenbau-mcp-snomed-ct": {
      "command": "",
      "args": []
    }
  }
}

SNOMED CT MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度SNOMED CT MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

SNOMED CT MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. SNOMED CT MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "eigenbau-mcp-snomed-ct": {
      "command": "npx",
      "args": [
        "-y",
        "snomed-ct-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてSNOMED CT MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. SNOMED CT MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
SNOMED CT MCP Serverを使ってこのタスクを手伝ってもらえますか?
SNOMED CT MCP Server
はい、読みました。
SNOMED CT MCP Serverで調べた結果をお伝えします。

よくある質問

SNOMED CT MCP Server MCPサーバーは何に使いますか?

SNOMED CT MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでSNOMED CT MCP Server MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでSNOMED CT MCP Serverを利用できます。

TypingMindでSNOMED CT MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。SNOMED CT MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

SNOMED CT MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

SNOMED CT MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでSNOMED CT MCP Server MCPのどのようなツールを利用できますか?

SNOMED CT MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

SNOMED CT MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。SNOMED CT MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇