CDISC MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install -e .
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "CDISC_API_KEY=${CDISC_API_KEY}" cdisc-mcp -- node "<FULL_PATH_TO_CDISC_MCP>/dist/index.js"

Replace <FULL_PATH_TO_CDISC_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:CDISC_API_KEY
README.md

Query clinical data standards (SDTM, ADaM, CDASH, CT) via AI assistants.

CDISC Library MCP Server β€” Query clinical data standards (SDTM, ADaM, CDASH, CT) directly from AI assistants.

🌐 Translations: δΈ­ζ–‡ README Β· ζ—₯本θͺž README


What is This?

The CDISC MCP Server connects AI assistants (Claude, VS Code Copilot, Cursor, etc.) to the CDISC Library REST API, exposing 11 structured tools for querying clinical trial data standards. Ask your AI assistant questions like:

"What variables are in the SDTM AE domain?"/m "Show me the ADSL variables in ADaM IG 1.3" "List all available Controlled Terminology packages"

For full setup instructions, see the User Manual β†’. See Examples β†’ for real conversation samples.


Quick Start

0 Β· One-Line AI Install

Have an AI assistant install everything for you:

curl -fsSL https://raw.githubusercontent.com/Teninq/cdisc-mcp/main/install.md

Paste the output into Claude, Copilot, or any AI chat β€” it will read the guide and walk you through the full setup interactively.


1 Β· Get a CDISC Library API Key

Register at https://library.cdisc.org and obtain a personal API key.

2 Β· Install

# Runtime only
pip install -e .

# With dev dependencies
pip install -e ".[dev]"

# With web explorer
pip install -e ".[web]"

3 Β· Set API Key

# Linux / macOS
export CDISC_API_KEY=your_key_here

# Windows β€” Command Prompt
set CDISC_API_KEY=your_key_here

# Windows β€” PowerShell
$env:CDISC_API_KEY = "your_key_here"

4 Β· Run

# Start MCP server (for AI assistant integration)
cdisc-mcp

# OR: Start Web Explorer (quick interactive testing)
python web/app.py

Web Explorer β€” Quick Interactive Testing

The fastest way to verify your setup and explore tools without any AI client.

# 1. Install web dependencies
pip install -e ".[web]"

# 2. Set your API key
export CDISC_API_KEY=your_key_here   # Linux/macOS
set CDISC_API_KEY=your_key_here      # Windows CMD
$env:CDISC_API_KEY = "your_key_here" # Windows PowerShell

# 3. Start the bridge server
python web/app.py

# 4. Open in browser
#    β†’ http://localhost:8080

The explorer provides:

  • Sidebar navigation β€” all 11 tools organized by standard (SDTM / ADaM / CDASH / Terminology)
  • Auto-generated forms β€” dropdowns for versions and domains, text inputs for variables
  • Live JSON responses β€” syntax-highlighted, copyable output with response time
  • Bridge status indicator β€” confirms your API key and connectivity

Tip: Use version strings with dashes β€” 3-4 not 3.4, 1-3 not 1.3. Example: SDTM-IG 3-4, ADaM-IG 1-3, CDASH-IG 2-0


Available Tools

# Tool Standard Description
1 list_products β€” List all available CDISC standards and published versions
2 get_sdtm_domains SDTM List all datasets in a SDTM-IG version
3 get_sdtm_domain_variables SDTM List all variables in an SDTM domain/dataset
4 get_sdtm_variable SDTM Get full definition of a specific SDTM variable
5 get_adam_datastructures ADaM List all data structures in an ADaM-IG version
6 get_adam_variable ADaM Get definition of a specific ADaM variable
7 get_cdash_domains CDASH List all domains in a CDASH-IG version
8 get_cdash_domain_fields CDASH Get all data collection fields for a CDASH domain
9 list_ct_packages CT List all available Controlled Terminology packages
10 get_codelist CT Get definition and metadata of a CT codelist
11 get_codelist_terms CT List all valid terms in a CT codelist

Version Reference

Standard Available Versions (use dashes)
SDTM-IG 3-4 Β· 3-3 Β· 3-2 Β· 3-1-3
ADaM-IG 1-3 Β· 1-2 Β· 1-1 Β· 1-0
CDASH-IG 2-1 Β· 2-0 Β· 1-1-1

Connect to an AI Assistant

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "cdisc": {
      "command": "cdisc-mcp",
      "env": {
        "CDISC_API_KEY": "your_key_here"
      }
    }

Tools (11)

list_productsList all available CDISC standards and published versions
get_sdtm_domainsList all datasets in a SDTM-IG version
get_sdtm_domain_variablesList all variables in an SDTM domain/dataset
get_sdtm_variableGet full definition of a specific SDTM variable
get_adam_datastructuresList all data structures in an ADaM-IG version
get_adam_variableGet definition of a specific ADaM variable
get_cdash_domainsList all domains in a CDASH-IG version
get_cdash_domain_fieldsGet all data collection fields for a CDASH domain
list_ct_packagesList all available Controlled Terminology packages
get_codelistGet definition and metadata of a CT codelist
get_codelist_termsList all valid terms in a CT codelist

Environment Variables

CDISC_API_KEYrequiredPersonal API key from the CDISC Library

Configuration

claude_desktop_config.json
{"mcpServers": {"cdisc": {"command": "cdisc-mcp", "env": {"CDISC_API_KEY": "your_key_here"}}}}

Try it

β†’What variables are in the SDTM AE domain?
β†’Show me the ADSL variables in ADaM IG 1.3
β†’List all available Controlled Terminology packages
β†’What is the definition of the USUBJID variable in SDTM?
β†’Which domains are available in CDASH-IG version 2-0?

Frequently Asked Questions

What are the key features of CDISC MCP?

Query clinical trial data standards including SDTM, ADaM, and CDASH. Access Controlled Terminology (CT) packages and codelists. Retrieve detailed variable definitions and domain structures. Supports multiple versions of CDISC standards. Includes a web-based explorer for interactive testing.

What can I use CDISC MCP for?

Clinical data managers verifying standard variable requirements. Statistical programmers looking up ADaM data structure definitions. Clinical research associates checking CDASH domain fields. AI-assisted drafting of clinical study documentation.

How do I install CDISC MCP?

Install CDISC MCP by running: pip install -e .

What MCP clients work with CDISC MCP?

CDISC MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep CDISC MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare