Skip to main content
Glama

NCCN Guidelines MCP Server

by gscfwid
MIT License
2

๐Ÿฅ NCCN Guidelines MCP Server

Python MCP License Version

PyPDF HTTPX NCCN

A Model Context Protocol (MCP) server that provides access to NCCN (National Comprehensive Cancer Network) clinical guidelines.

๐Ÿ”ฌ How It Works

This project follows a systematic approach to provide accurate medical guidance:

  1. ๐Ÿง  Problem Analysis: Understands the clinical question or scenario

  2. ๐Ÿ“‹ Guidelines Retrieval: Searches the NCCN index for relevant guidelines

  3. ๐Ÿ“„ Page-by-Page Reading: Downloads and extracts specific pages from guidelines

  4. ๐ŸŽฏ Evidence-Based Response: Provides answers based on the extracted content

๐Ÿ’ก Note: This system does not use RAG (Retrieval-Augmented Generation) to ensure accuracy. Instead, it reads guidelines directly, which may result in longer response times during index initialization and PDF downloading/reading, but provides more reliable and precise medical guidance.

โœจ Features

  • ๐Ÿ“š Guidelines Index: Automatically fetches and maintains an up-to-date index of NCCN guidelines

  • โฌ‡๏ธ PDF Download: Downloads NCCN guideline PDFs with authentication support

  • ๐Ÿ“ Content Extraction: Extracts specific pages from PDF documents with layout preservation

  • ๐Ÿš€ Smart Caching: Index is cached for 7 days to minimize server load

๐Ÿ› ๏ธ Installation

  1. Clone the repository:

git clone https://github.com/gscfwid/NCCN_guidelines_MCP cd NCCN_guidelines_MCP
  1. Install dependencies using uv:

uv sync

โš™๏ธ Configuration

๐Ÿ”ง Configure Client (Note: Supports only agents, such as Cursor, Cline, Claude desktop, etc.)

โš ๏ธ Important: Claude desktop may warn about insufficient context length when running this MCP.

Add this to your Client configuration:

Configuration with Environment Variables

{ "mcpServers": { "nccn-guidelines": { "command": "uv", "args": ["--directory", "<abslute_direction_of_NCCN_guidelines_MCP>", "run", "server.py"], "env": { "NCCN_USERNAME": "<your_nccn_username>", "NCCN_PASSWORD": "<your_nccn_password>" } } } }

โš ๏ธ Important Notes

  • ๐Ÿ‘ค NCCN Account Registration: Please note that the NCCN username and password mentioned above must be registered on the official NCCN website.

  • ๐Ÿš€ First-time Setup: When you first start the MCP server, it needs to generate the YAML index of NCCN guidelines. This process takes 1-2 minutes, so please wait before attempting to use the server.

  • โฑ๏ธ Response Times: Due to the non-RAG approach for accuracy, expect longer response times during guideline downloading and PDF reading processes.

๐Ÿ’ฌ Prompts

To have better response, please add the prompt in the file of prompt.md to the instruction of your Agent Client before your Question.

๐Ÿ› ๏ธ Available Tools

  1. ๐Ÿ“Š get_index: Get the raw contents of the NCCN guidelines index YAML file.

  2. ๐Ÿ“ฅ download_pdf: Download NCCN guideline PDFs

    • url: PDF URL to download

    • filename (optional): Custom filename

    • username (optional): NCCN login username (defaults to NCCN_USERNAME env var)

    • password (optional): NCCN login password (defaults to NCCN_PASSWORD env var)

  3. ๐Ÿ“– extract_content: Extract content from PDF pages

    • pdf_path: Path to PDF file

    • pages (optional): Comma-separated page numbers (e.g., "1,3,5-7")

๐Ÿ’ก Usage Example

Here are some example questions you can ask:

  1. ๐Ÿ”ฌ What are the available first-line immunotherapy options for ES-SCLC?

  2. ๐ŸŽฏ What is the initial chemotherapy for triple-negative breast cancer?

  3. ๐Ÿงฌ What are the immunotherapy options for neuroendocrine tumors?

Deploy Server
A
security โ€“ no known vulnerabilities
-
license - not tested
A
quality - confirmed to work

A Model Context Protocol server that provides access to National Comprehensive Cancer Network clinical guidelines through direct PDF reading rather than RAG for increased accuracy.

  1. ๐Ÿ”ฌ How It Works
    1. โœจ Features
      1. ๐Ÿ› ๏ธ Installation
        1. โš™๏ธ Configuration
          1. ๐Ÿ”ง Configure Client (Note: Supports only agents, such as Cursor, Cline, Claude desktop, etc.)
          2. โš ๏ธ Important Notes
        2. ๐Ÿ’ฌ Prompts
          1. ๐Ÿ› ๏ธ Available Tools
            1. ๐Ÿ’ก Usage Example

              Related MCP Servers

              • A
                security
                -
                license
                A
                quality
                A Model Context Protocol server providing AI assistants with access to healthcare data tools, including FDA drug information, PubMed research, health topics, clinical trials, and medical terminology lookup.
                Last updated -
                7
                14
                50
                MIT License
                • Linux
                • Apple
              • -
                security
                -
                license
                -
                quality
                A Model Context Protocol server for MarkLogic that enables CRUD operations and document querying capabilities through a client interface.
                Last updated -
                MIT License
              • -
                security
                -
                license
                -
                quality
                A Model Context Protocol server for ingesting, chunking and semantically searching documentation files, with support for markdown, Python, OpenAPI, HTML files and URLs.
                Last updated -
                • Apple
              • A
                security
                -
                license
                A
                quality
                A comprehensive Model Context Protocol server that enables advanced PubMed literature search, citation formatting, and research analysis through natural language interactions.
                Last updated -
                12
                6
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/gscfwid/NCCN_guidelines_MCP'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server