Logo: SNOMED CT MCP Server

SNOMED CT MCP Server

Communautéit
eigenbau

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

Editeureigenbau
Repositorymcp-snomed-ct
SproochPython
Forks
3
Stären
21
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzApache-2.0
Linken
  • Tools mat KI-Workflows verbannen

    SNOMED CT MCP Server bitt MCP-Funktiounen un, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • Disponibel Tools: 0

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an deem MCP-Client ze konfiguréieren, deen Dir am léifste benotzt.

  • Interessi vun der Communautéit um Open-Source-Projet

    Zuele vum verlinkte Repository – Stären: 21, Forks: 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")

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

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

SNOMED CT MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal SNOMED CT MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung, fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector: D'Optioun „Dësen Apparat“ ass ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Setzt de kopéierte Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

SNOMED CT MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a setzt d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Setzt d'MCP-Serverkonfiguratioun fir SNOMED CT MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert d'Säit, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "eigenbau-mcp-snomed-ct": {
      "command": "npx",
      "args": [
        "-y",
        "snomed-ct-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vun der Integratioun SNOMED CT MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vun der Integratioun SNOMED CT MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierten MCP-Tools an engem ausgewielte KI-Modell
Kënnt Dir mir mat SNOMED CT MCP Server bei dëser Aufgab hëllefen?
SNOMED CT MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat SNOMED CT MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt den MCP-Server SNOMED CT MCP Server benotzt?

SNOMED CT MCP Server ass en MCP-Server, deen et kompatibele KI-Clienten erlaabt, op extern Tools a Kontextinformatioune zouzegräifen. An TypingMind kënnt Dir dësen MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech SNOMED CT MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir SNOMED CT MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni den MCP-Server fir all Modell separat anzeriichten.

Firwat SNOMED CT MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann SNOMED CT MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Ären Aarbechtsoflaf beim Chatten an TypingMind organiséieren.

Wéi verbannen ech SNOMED CT MCP Server MCP mat TypingMind?

SNOMED CT MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann den MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt SNOMED CT MCP Server MCP an TypingMind zur Verfügung?

SNOMED CT MCP Server stellt MCP-Funktioune zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agente zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir SNOMED CT MCP Server MCP ze benotzen?

Nee. TypingMind ass nom Local-first-Prinzip opgebaut a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann SNOMED CT MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir deen MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇