Skip to main content
Glama
dynamed-mcp-server

dynamed-mcp-server

dynamed-mcp-server

English summary. An MCP server (stdio) for DynaMed and DynaMedex clinical reference content through EBSCO's official MedsAPI. It needs OAuth client credentials tied to your institution's subscription and does not scrape the web interface. Four read-only tools: search, suggest, and article retrieval by id or slug. This is an unofficial client and is not affiliated with EBSCO or DynaMed; you need a valid institutional or individual subscription. Calls against the live API with real credentials have not been verified in this release. The rest of this README is in Turkish.

Not. Bu, resmî olmayan bir istemcidir; EBSCO ve DynaMed ile bağlantısı yoktur. Kullanmak için geçerli bir kurumsal ya da bireysel abonelik ve ona bağlı API kimlik bilgileri gerekir.

Gerçek kimlik bilgisiyle API çağrısı bu sürümde doğrulanmadı: derleme, araç listesi ve girdi doğrulaması sınandı, canlı yanıtlar sınanmadı.

EBSCO MedsAPI üzerinden DynaMed / DynaMedex klinik referans içeriğine erişim sağlayan bir MCP sunucusu.

Resmî API dokümantasyonu: https://developer.ebsco.com/medical-point-care-apis/dynamed


Ön koşul: EBSCO API kimlik bilgileri

Bu sunucu web arayüzünü kazımaz — EBSCO'nun resmî API'sini kullanır. Çalışması için kurumunuzun DynaMed aboneliğine bağlı OAuth 2.0 istemci kimlik bilgileri gerekir:

  1. https://developer.ebsco.com/ adresinde geliştirici hesabı oluşturun.

  2. Bir client application kaydedin.

  3. Size verilen client_id ve client_secret değerlerini alın.

Kurumsal aboneliğiniz API erişimini kapsamıyorsa EBSCO temsilcinizle veya kütüphanenizle görüşmeniz gerekir. Kimlik bilgileri olmadan sunucu başlamaz.


Related MCP server: practice-fusion-mcp

Kurulum

cd dynamed-mcp-server
npm install
npm run build

Yapılandırma

Ortam değişkenleri (.env.example dosyasına bakın):

Değişken

Zorunlu

Açıklama

EBSCO_CLIENT_ID

evet

EBSCO OAuth 2.0 istemci kimliği

EBSCO_CLIENT_SECRET

evet

EBSCO OAuth 2.0 istemci sırrı

DYNAMED_PRODUCT

hayır

dynamed (varsayılan) veya dynamedex

dynamedex, DynaMed + Micromedex birleşik içeriğidir; yalnızca o ürüne aboneyseniz kullanın.

Claude Code'a ekleme

claude mcp add dynamed \
  --env EBSCO_CLIENT_ID=your_client_id \
  --env EBSCO_CLIENT_SECRET=your_client_secret \
  --env DYNAMED_PRODUCT=dynamed \
  -- node /path/to/dynamed-mcp-server/dist/index.js

Ya da bir .mcp.json / claude_desktop_config.json içine elle:

{
  "mcpServers": {
    "dynamed": {
      "command": "node",
      "args": ["/path/to/dynamed-mcp-server/dist/index.js"],
      "env": {
        "EBSCO_CLIENT_ID": "your_client_id",
        "EBSCO_CLIENT_SECRET": "your_client_secret",
        "DYNAMED_PRODUCT": "dynamed"
      }
    }
  }
}

Araçlar

Dört araç da salt okunurdur (readOnlyHint: true); hiçbiri içerik değiştirmez.

Anahtar kelimeyle DynaMed içeriğinde arama yapar. Neredeyse her akışın başlangıç noktasıdır — diğer araçların ihtiyaç duyduğu id ve slug değerlerini döndürür.

  • query (zorunlu), page, page_size (1–50), fields, filters, aggregations, response_format

  • Yayın türüne göre daraltmak için önce aggregations ile mevcut türleri görün, sonra filters uygulayın.

dynamed_suggest

Kısmi/yanlış yazılmış terimleri DynaMed'in kullandığı gerçek başlıklara çevirir (otomatik tamamlama). Başlık önerileri id ve slug da taşıdığı için doğrudan madde çekmeye geçilebilir.

  • query (zorunlu), suggestion_types (title / term), max_per_type, response_format

dynamed_get_article / dynamed_get_article_by_slug

Bir maddeyi id veya slug ile getirir; HTML içeriği okunabilir düz metne çevrilir.

  • article_id veya slug (zorunlu), section_anchors, toc_only, response_format

Önerilen akış — DynaMed konuları çok uzundur, tamamını çekmek bağlamı boşa harcar:

  1. dynamed_search → maddenin id'sini al

  2. dynamed_get_article (toc_only: true) → bölüm listesini ve anchor değerlerini gör

  3. dynamed_get_article (section_anchors: ["treatment"]) → yalnızca gereken bölümü çek


Tasarım notları

  • Bağlam yönetimi. Tüm cevaplar 25.000 karakterle sınırlıdır. Sınır aşılırsa cevap kesilir ve modele nasıl daraltacağı (sayfa boyutu, alan seçimi, bölüm seçimi) açıkça söylenir.

  • Token önbelleği. Access token süresi dolana kadar (60 sn güvenlik payıyla) yeniden kullanılır. Eşzamanlı istekler tek bir token çağrısını paylaşır. HTTP 401 alınırsa token bir kez tazelenip istek tekrarlanır.

  • Hata mesajları. 401/403/404/429 durumları, modelin ne yapması gerektiğini söyleyen mesajlara çevrilir (ör. 404 → "id'yi tahmin etme, dynamed_search sonuçlarından al").

  • Çıktı biçimi. Her araç hem markdown (okunabilir) hem json (işlenebilir) döndürebilir; ayrıca outputSchema ile structuredContent sağlanır.

Geliştirme

npm run dev     # tsx watch ile canlı yeniden yükleme
npm run build   # tsc + dist/index.js
npm start       # derlenmiş sunucuyu çalıştır

MCP Inspector ile denemek için:

EBSCO_CLIENT_ID=... EBSCO_CLIENT_SECRET=... npx @modelcontextprotocol/inspector node dist/index.js

Lisans ve içerik kullanımı

Kod MIT lisanslıdır. Bu proje EBSCO ve DynaMed ile bağlantılı değildir.

Bu sunucu yalnızca bir API istemcisidir. DynaMed içeriği EBSCO'ya aittir ve kurumunuzun abonelik şartlarına tabidir. İçeriğin saklanması, yeniden dağıtılması veya abonelik dışına çıkarılması konusunda kurumunuzun lisans koşullarına uyun.

Available Tools

4 tools
dynamed_get_articleGet DynaMed Article by IDA
Read-onlyIdempotent

Retrieve a full DynaMed article by its id, converted from HTML to readable text.

DynaMed topics are long. The recommended workflow is: dynamed_search to get the id -> call this tool with toc_only=true to see the section list -> call again with section_anchors for the sections you actually need. Read-only; nothing is modified.

Args:

  • article_id (string, required): e.g. "T116814"

  • section_anchors (string[]): return only these sections (anchors come from the table of contents)

  • toc_only (boolean): return metadata + table of contents only, no body text (default false)

  • response_format ('markdown'|'json'): output format (default 'markdown')

Returns (json format): { "id": string, "title": string, "slug": string, "metadata": object, "toc": string[], "sections": [{ "anchor": string, "title": string, "text": string }], "total_sections": number, "returned_sections": number, "truncated": boolean }

Examples:

  • "Summarize the treatment section of this topic" -> toc_only=true, then section_anchors=["treatment"]

  • "Give me the whole topic" -> call with no section_anchors (may be truncated)

  • Don't use when: you don't have an id yet -> use dynamed_search first

Error handling:

  • HTTP 404 means the id is wrong — take ids from dynamed_search results, never guess them

  • If requested anchors match nothing, the response lists the available anchors

Inputs: article_id (required), toc_only, response_format, section_anchors. Returns: id, toc, slug, title, +5 more

dynamed_get_article_by_slugGet DynaMed Article by SlugA
Read-onlyIdempotent

Retrieve a full DynaMed article by its slug, converted from HTML to readable text.

DynaMed topics are long. The recommended workflow is: dynamed_search to get the slug -> call this tool with toc_only=true to see the section list -> call again with section_anchors for the sections you actually need. Read-only; nothing is modified.

Args:

  • slug (string, required): e.g. "/condition/acute-heart-failure"

  • section_anchors (string[]): return only these sections (anchors come from the table of contents)

  • toc_only (boolean): return metadata + table of contents only, no body text (default false)

  • response_format ('markdown'|'json'): output format (default 'markdown')

Returns (json format): { "id": string, "title": string, "slug": string, "metadata": object, "toc": string[], "sections": [{ "anchor": string, "title": string, "text": string }], "total_sections": number, "returned_sections": number, "truncated": boolean }

Examples:

  • "Summarize the treatment section of this topic" -> toc_only=true, then section_anchors=["treatment"]

  • "Give me the whole topic" -> call with no section_anchors (may be truncated)

  • Don't use when: you don't have an slug yet -> use dynamed_search first

Error handling:

  • HTTP 404 means the slug is wrong — take slugs from dynamed_search results, never guess them

  • If requested anchors match nothing, the response lists the available anchors

Inputs: slug (required), toc_only, response_format, section_anchors. Returns: id, toc, slug, title, +5 more

dynamed_suggestSuggest DynaMed TopicsA
Read-onlyIdempotent

Autocomplete DynaMed topic titles and index terms from a partial query.

Use this to resolve vague, abbreviated, or misspelled clinical phrasing into the exact topic titles DynaMed uses, before running dynamed_search. Matched title suggestions also carry the article id and slug, so a confident match can go straight to dynamed_get_article. Read-only.

Args:

  • query (string, required): partial term, e.g. "atrial fib"

  • suggestion_types (string[]): any of "title", "term" (default: both)

  • max_per_type (number): maximum suggestions per type, 1-50 (default 10)

  • response_format ('markdown'|'json'): output format (default 'markdown')

Returns (json format): { "query": string, "total_items": number, "groups": [{ "suggestion_type": string, "suggestions": [{ "phrase": string, "id": string, "slug": string, "title": string }] }] }

Examples:

  • "What's the DynaMed topic for AF?" -> query="atrial fib"

  • "Fix my spelling of pneumothorax" -> query="pneumothorx"

  • Don't use when: you want article content -> use dynamed_search or dynamed_get_article

Error handling:

  • "No suggestions found for ''" when nothing matches — try a shorter prefix

Inputs: query (required), max_per_type, response_format, suggestion_types. Returns: query, groups, total_items

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 4 tools

    Disambiguation3/5

    dynamed_suggest and dynamed_search overlap substantially: both take a partial/keyword query and both return article ids and slugs, and suggest explicitly says a confident match can go straight to fetch, so the intended boundary between the two entry points is soft. Worse, dynamed_get_article and dynamed_get_article_by_slug are functionally identical tools differing only in which identifier they consume, and since search returns both id and slug, an agent has two equally valid paths with no guidance on which to prefer.

    Naming Consistency4/5

    All names share a consistent dynamed_ prefix and are snake_case, which is easily readable and predictable. The only deviation is verb style: suggest/search use bare verbs while the fetch tools use the get_noun pattern, though the divergence is minor and never causes misreading.

    Tool Count4/5

    Four tools is well within a reasonable scope for a read-only clinical reference API, and each maps to a real step in the discovery-to-content workflow. It is slightly over what is needed because the slug variant duplicates the id variant rather than adding capability.

    Completeness4/5

    The surface covers the full read lifecycle: fuzzy resolution, keyword search with filters/aggregations/paging, and full-text retrieval with table-of-contents and section targeting. Minor gaps exist—no way to browse or list topics by specialty/pub type outside a search query, and no batch or multi-article retrieval—but the core workflow has no dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables checking drug-drug interactions, resolving drug names or products, and retrieving structured drug monographs (indication, mechanism of action, dosing, adverse effects) via the DrugBank Clinical API.
      288 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI clients to query authoritative medical APIs for drug information, health statistics, literature, clinical guidelines, trials, and pediatric resources locally without API keys. It also provides resilience, caching, health checks, and evidence-grading features for reliable retrieval.
      42 npm
      ISC