TypeScript MCP server for CDISC Define-XML.
- Supports Define-XML 2.0 and 2.1
- Detects Define version and ARM presence from ODM attributes
- Supports both MCP transports:
stdio(default)- Streamable HTTP (
/mcpendpoint)
- Local file-path input only
- Multi-document in-memory cache using
document_id - Response formats:
jsonmarkdown
npm installnpm run buildnpm run devor
node dist/index.js --transport=stdionode dist/index.js --transport=http --port=3000Server endpoint:
POST /mcp
define_load_document- Input:
file_path,response_format - Loads/parses XML and returns
document_id
- Input:
define_close_document- Input:
document_id,response_format - Removes document from cache
- Input:
define_get_metadata_summary- Input:
document_id,response_format - Returns metadata and entity counts
- Input:
- Datasets
define_list_datasetsdefine_get_dataset
- Variables
define_list_variablesdefine_get_variable
- Codelists
define_list_codelistsdefine_get_codelist
- ARM
define_list_arm_resultsdefine_get_arm_result
define_search
- ARM is optional. ARM tools return empty results when ARM data is not present.
- All list tools support pagination via
offsetandlimit.