CORE MCP Server
Provides engine-management tools to check the CORE Rules Engine GitHub repository for new commits and pull the latest CORE rules engine updates from GitHub.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CORE MCP Server validate my SDTM dataset at /data/sdtm.xpt against SDTMIG 3.4 rules"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CORE MCP Server
CORE MCP Server is a Model Context Protocol (MCP) Server for the CDISC CORE Rules Engine.
This MCP server is built with Python FastMCP.
Support CORE Rules Engine
Validate clinical datasets (XPT, JSON, NDJSON, XLSX) against CDISC conformance rules
Browse all 981+ validation rules with filtering by standard, authority, sensitivity
Inspect individual rule details (conditions, actions, authority references)
List supported standards, versions, and Controlled Terminology packages
Manage engine updates from GitHub
Related MCP server: CDISC SDTM Validator MCP
Architecture
CORE MCP ──→ CORE Rules Engine Cache + CLI (rules, validation)Requirements
Python ≥ 3.12 and UV installed on your device.
A CDISC Library API key (needed to build the rules cache).
Installation
Step 1: Set up CDISC CORE Rules Engine
If you don't already have the CORE Rules Engine, clone it and build the rules cache:
git clone https://github.com/cdisc-org/cdisc-rules-engine.git
cd cdisc-rules-engine
pip install -r requirements.txt
python core.py update-cache --apikey YOUR_CDISC_LIBRARY_API_KEYThis downloads all validation rules and controlled terminology into a local cache. It only needs to be done once.
Step 2: Install CORE MCP Server
git clone https://github.com/kusy2009/core-mcp-server.git
cd core-mcp-server
uv syncSet the path to your CORE Rules Engine as an environment variable:
export CORE_DIR=/path/to/cdisc-rules-engineConfigure MCP Client
VS Code (GitHub Copilot)
Add to .vscode/mcp.json in your project:
{
"servers": {
"core-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/core-mcp-server", "run", "core-mcp"],
"env": {
"CORE_DIR": "/path/to/cdisc-rules-engine"
}
}
}
}Claude Desktop
Add to your Claude Desktop config:
{
"mcpServers": {
"core-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/core-mcp-server", "run", "core-mcp"],
"env": {
"CORE_DIR": "/path/to/cdisc-rules-engine"
}
}
}
}You need to replace /path/to/core-mcp-server and /path/to/cdisc-rules-engine to match your own environment.
MCP Tools
Validation
Tool | Description |
| Validate datasets against CDISC rules with standard, version, CT, and rule filters |
Rule Browsing
Tool | Description |
| List rules with optional filters (standard, version, authority, sensitivity, status) |
| Get full details for a specific CORE rule ID |
| Search rules by keyword in description or message |
Standards & Configuration
Tool | Description |
| List all supported standards and versions with rule counts |
| List available Controlled Terminology packages |
| Get CORE version, git commit info, cache statistics |
Engine Management
Tool | Description |
| Check if CORE has new commits on GitHub |
| Pull latest CORE from GitHub |
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
9 toolscheck_for_updatesA
Check if CORE Rules Engine has updates available on GitHub.
Runs 'git fetch' and compares local HEAD with origin/main without modifying local files.
Returns: Whether updates are available, number of new commits, and commit messages.
Usage: check_for_updates()
Inputs: no named parameters.
get_engine_versionB
Get CORE Rules Engine version, git commit info, and cache statistics.
Returns: Dictionary with engine version, commit hash, commit date, total rules count, CT packages count, and supported standards count.
Usage: get_engine_version()
Inputs: no named parameters.
get_rule_detailsA
Get full details for a specific CORE validation rule.
Args: core_id: The CORE rule ID (e.g., 'CORE-000001', 'CORE-000351')
Returns: Complete rule detail including description, sensitivity, conditions, actions, authority references, applicable standards/versions, domains, classes, and CDISC document citations.
Usage: get_rule_details("CORE-000001") get_rule_details("CORE-000351")
Inputs: core_id (required).
list_ct_packagesA
List available Controlled Terminology packages in the CORE cache.
Args: standard: Filter by standard type. One of: 'sdtm' → sdtmct packages 'adam' → adamct packages 'send' → sendct packages 'cdash' → cdashct packages None → all packages
Returns: List of CT package names sorted newest first.
Usage: list_ct_packages() list_ct_packages("sdtm") list_ct_packages("adam")
Inputs: standard.
list_rulesA
List CORE validation rules with optional filters.
Args: standard: Filter by standard (e.g., 'sdtmig', 'sendig', 'adamig') version: Filter by version (e.g., '3-4'). Requires standard. authority: Filter by authority organization ('CDISC' or 'FDA') sensitivity: Filter by sensitivity level ('Record', 'Dataset', 'Group') status: Filter by status ('Published', 'Draft')
Returns: List of matching rules with core_id, description, sensitivity, authorities, and rule_type.
Usage: list_rules() # all 981 rules list_rules(standard="sdtmig", version="3-4") # 430 SDTM 3.4 rules list_rules(authority="FDA") # FDA rules only list_rules(sensitivity="Record") # record-level rules list_rules(standard="sdtmig", authority="FDA") # SDTM + FDA
Inputs: status, version, standard, authority, +1 more.
list_rule_setsA
List all standards and versions for which CORE has validation rules.
Returns: Dictionary with rule sets, each containing standard name, version, optional substandard, and rule count.
Usage: list_rule_sets()
Example output: sdtmig/3-4: 430 rules sdtmig/3-3: 423 rules sendig/3-1-1: 259 rules adamig/1-3: 0 rules (no ADaM rules yet)
Inputs: no named parameters.
search_rulesA
Search CORE rules by keyword in description, message, or core_id.
Args: query: Search string (case-insensitive). Matches against rule description, action messages, and core_id. max_results: Maximum results to return (default 50).
Returns: Matching rules sorted by relevance.
Usage: search_rules("USUBJID") search_rules("date format") search_rules("missing value") search_rules("CORE-000351")
Inputs: query (required), max_results.
update_engineB
Pull latest CORE Rules Engine from GitHub and report changes.
Runs 'git pull origin main' and returns the new version info. Note: After updating, you may need to rebuild the rules cache using the CORE CLI: python core.py update-cache --apikey YOUR_KEY
Returns: Update status, git output, and new version info.
Usage: update_engine()
Inputs: no named parameters.
validate_datasetA
Validate clinical datasets against CDISC CORE rules.
Runs the CORE Rules Engine CLI against provided dataset files and returns a structured validation report.
Args: dataset_paths: List of paths to XPT, JSON, NDJSON, or XLSX files. standard: CDISC standard to validate against. Options: 'sdtmig', 'sendig', 'adamig', 'tig' version: IG version (e.g., '3-4', '3-3', '3-2', '1-3', '3-1-1') ct_version: Controlled Terminology package (e.g., 'sdtmct-2025-09-26'). Optional. rules: Specific CORE rule IDs to run (e.g., ['CORE-000001']). If None, runs all applicable rules. exclude_rules: CORE rule IDs to skip. define_xml_path: Path to Define-XML file (optional). output_format: Report format — 'JSON' (default) or 'XLSX'.
Returns: Validation report with: - summary: total rules, pass/fail/skip counts, issue summary - issues: detailed issue list with dataset, row, variables, values - rules_report: status of each rule executed - datasets: metadata of validated datasets
Usage: validate_dataset(["/data/ae.xpt", "/data/dm.xpt"]) validate_dataset( ["/data/ae.xpt"], standard="sdtmig", version="3-4", ct_version="sdtmct-2025-09-26" ) validate_dataset( ["/data/ae.xpt"], rules=["CORE-000001", "CORE-000351"] )
Inputs: dataset_paths (required), rules, version, standard, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: rule-set listing, CT package listing, rule listing with filters, keyword search, rule detail retrieval, dataset validation, update checking, engine updating, and version inspection. The only closely related tools (list_rules and search_rules) are differentiated by filtering versus keyword relevance.
All tool names use snake_case and follow a predictable verb_noun or verb_preposition_noun pattern (list_*, get_*, search_rules, validate_dataset, check_for_updates, update_engine). The naming is consistent and readable throughout.
Nine tools is well-scoped for a rules-engine MCP server, covering discovery, inspection, validation, and maintenance without evident redundancy. Each tool earns its place in the workflow.
The surface covers the core lifecycle: enumerate standards, rules, and CT packages; inspect and search rules; validate datasets; and maintain the engine. Minor gaps exist, such as no dedicated CT package detail lookup or rule-authoring/editing capability, but core workflows are complete.
Maintenance
Related MCP Connectors
Deterministic PASS/FAIL deliverable checks with objective evidence and repair instructions.
Check ISO 20022 messages (pacs.008, pain.001, camt.053, seev.031) against schema and rules.
Validate synthetic PAS Bundles, compare IGs and payloads, quote PAS requirements, search HL7 digest
Read-only U.S. lab-test catalog, collection-site search, and reference-range context.
Related MCP Servers
- AlicenseAqualityDmaintenanceExposes CDISC standards data including SDTM, ADaM, CDASH, and Controlled Terminology as tools for AI assistants via the CDISC Library API. It enables users to search standards, retrieve domain variables, and access codelist definitions to facilitate clinical research data management.121MIT
- FlicenseNot gradedqualityDmaintenanceValidates CDISC SDTM datasets against SDTMIG 3.4 specifications, offering tools for required variables, controlled terminology, and full dataset validation with bundled sample datasets.2-
- AlicenseAqualityBmaintenanceProvides comprehensive access to CDISC clinical data standards (SDTM, ADaM, CDASH, CT) through 15 MCP tools, resources, and prompts.2236 PyPI1MIT
- AlicenseCqualityDmaintenanceMCP server for retrieving clinical standard content from the CDISC Library, supporting controlled terminology, ADaM, SDTM, CDASH, SEND metadata, and search.317MIT