cdisc-library-mcp-server
Click on "Install 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., "@cdisc-library-mcp-serversearch for biomedical concepts about diabetes"
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.
CDISC Library MCP Server (DXT)
This MCP server provides a compact, task‑oriented wrapper around the CDISC Library. It covers discovery (suggest + search), Biomedical Concepts (latest + versioned packages), and SDTM Dataset Specializations (latest + packages). Use it to search, fetch a concept or specialization with one call, then follow _links for deeper context. For reproducible results tied to an effective date, use package routes; for exploration, use latest routes.
About CDISC and the CDISC Library
CDISC: A global, non‑profit that develops data standards to streamline clinical research and enable interoperability. See the CDISC website.
CDISC Library: Programmatic access to CDISC standards and artifacts (e.g., SDTM, CDASH, ADaM, Controlled Terminology), including Biomedical Concepts and SDTM Dataset Specializations. Browse via the Library Browser and obtain API access from the Developer Portal.
Requirements
Node.js: >= 18
CDISC Library API key: subscription key from the Developer Portal
Get an API key
Create/sign in to a CDISC Library account.
Browser login: library.cdisc.org
Open the API Management Developer Portal and sign in with the same credentials.
Developer Portal: api.developer.library.cdisc.org
Retrieve your subscription key (API key) on the portal.
Use the key as
api-keyin a header (recommended) or query string.
Run locally
export CDISC_API_KEY=your_key_here
npm startShell examples
bash/zsh:
export CDISC_API_KEY=your_key
export CDISC_AUTH_LOCATION=header # or: query
npm startfish:
set -x CDISC_API_KEY your_key
set -x CDISC_AUTH_LOCATION header # or: query
npm startPowerShell:
$env:CDISC_API_KEY = "your_key"
$env:CDISC_AUTH_LOCATION = "header" # or: "query"
npm startConfiguration (environment variables)
CDISC_API_KEY (required): your subscription key
CDISC_AUTH_LOCATION (optional):
header(default) orqueryCDISC_AUTH_HEADER (optional): header name when using header auth, default
api-keyCDISC_AUTH_QUERY (optional): query param name when using query auth, default
api-keyCDISC_API_BASE_URL (optional): override server base URL, default
https://api.library.cdisc.orgCDISC_OPENAPI_DIR (optional): directory for OpenAPI YAML; defaults to
server/openapi. Themanifest.jsonsets this to${DXT_DIR}/server/openapiwhen packaged as DXT so the extension is self‑contained.
Caching and resilience
CDISC_CACHE_ENABLED (optional): set to
0to disable caching. Default: enabled.CDISC_CACHE_TTL_MS (optional): TTL for GET responses in milliseconds. Default:
60000.CDISC_CACHE_MAX_ENTRIES (optional): max cache entries (LRU). Default:
500.CDISC_RETRY_COUNT (optional): number of retries for transient 5xx/network errors. Default:
2.CDISC_RETRY_BACKOFF_MS (optional): base backoff per attempt in ms. Default:
300.CDISC_CACHE_DEBUG (optional): set to
1to log cache/retry activity to stderr.CDISC_CACHE_PERSIST_PATH (optional): file path to persist cache to disk (JSON). Default: disabled.
CDISC_CACHE_EXCLUDE_REGEX (optional): regex to exclude cache matches; defaults also exclude search/suggest.
CDISC_CACHE_INCLUDE_REGEX (optional): regex to force-include cache matches.
Package as a DXT extension
Spec: DXT MANIFEST.md
CLI: DXT CLI.md
# Option A: one‑off
npm install -g @anthropic-ai/dxt
dxt pack # creates cdisc-library-mcp.dxt in the project directory
# Option B: via npm script
npm run pack:dxtInstall in clients
Claude Desktop: open the generated
.dxtfile to install the local MCP server.Any DXT‑compatible app can load this extension per its instructions. See the DXT repo:
https://github.com/anthropics/dxt.
Tools exposed by the server
Generic:
list_operations(filter?)call_operation(operationId, pathParams?, query?, body?, headers?, timeoutMs?)
Cache management:
cache.clear()— clear all in-memory cache entriescache.invalidate(contains?, regex?)— invalidate entries by substring or regex match
Discovery:
search.suggest(q, top?, select?)search.query(q, start?, pageSize?, facets?, filters?)
Biomedical Concepts (latest):
bc.list(category?),bc.get(conceptId),bc.categories()
Biomedical Concepts (packages):
bc.packages.list(),bc.packages.listConcepts(package),bc.packages.getConcept(package, conceptId)
SDTM Specializations (latest):
sdtm.list(domain?),sdtm.get(datasetSpecializationId),sdtm.domains(),sdtm.byBiomedicalConcept(conceptId)
SDTM Specializations (packages):
sdtm.packages.list(),sdtm.packages.listSpecializations(package),sdtm.packages.getSpecialization(package, datasetSpecialization)
Quick API reference
Auth & bases:
API key (header or query):
api-key: <YOUR_KEY>Library base:
https://api.library.cdisc.org/apiCosmos BC base:
https://api.library.cdisc.org/api/cosmos/v2/mdr/bcCosmos SDTM Specializations base:
https://api.library.cdisc.org/api/cosmos/v2/mdr/specializations
Discovery:
GET
/mdr/suggest— params:q,top,selectGET
/mdr/search— params:q(req),start,pageSize,facets, filtersdomain|codelist|conceptId|product|version|dataset|variable|standard
Biomedical Concepts:
Latest:
/biomedicalconcepts,/biomedicalconcepts/{biomedicalconcept},/categoriesVersion‑locked:
/packages,/packages/{package}/biomedicalconcepts,/packages/{package}/biomedicalconcepts/{biomedicalconcept}Key fields:
_links,conceptId,href,categories,shortName,synonyms,resultScales,definition,coding,dataElementConcepts,ncitCode
SDTM Dataset Specializations:
Latest:
/sdtm/datasetspecializations?domain=VS|LB|…,/sdtm/datasetspecializations/{dataset_specialization_id},/sdtm/domains, by BC:/datasetspecializations?biomedicalconcept={conceptId}Version‑locked:
/sdtm/packages,/sdtm/packages/{package}/datasetspecializations,/sdtm/packages/{package}/datasetspecializations/{datasetspecialization}Key fields:
_links,datasetSpecializationId,domain,shortName,source,sdtmigStartVersion,sdtmigEndVersion,variables[]variables[]keys:name,dataElementConceptId,isNonStandard,codelist,subsetCodelist,valueList,assignedTerm,role,dataType,length,format,significantDigits,relationship{subject,linkingPhrase,predicateTerm,object},mandatoryVariable,mandatoryValue,originType,originSource,comparator,vlmTarget
Behavior:
Pagination on
/mdr/search:start,pageSizeErrors surfaced as‑is: 401, 422, 404/406/5xx
Links: follow
_links.self,_links.parentPackage,_links.parentBiomedicalConcept
Test the server
Scripts in package.json:
npm run test:mcp— smoke tests via a minimal MCP stdio client (scripts/test_mcp.js). RequiresCDISC_API_KEY.npm run test:plan— broader happy‑path + error scenarios (scripts/test_plan.js). RequiresCDISC_API_KEY.
Troubleshooting
401 Unauthorized: ensure
CDISC_API_KEYis set; switchCDISC_AUTH_LOCATIONbetweenheaderandqueryif needed.Timeouts/network errors: check connectivity to
https://api.library.cdisc.org; settimeoutMswhen usingcall_operation.API changes: update the YAML specs under
server/openapi, then restart. You can override the base viaCDISC_API_BASE_URL.Corporate proxies: configure your environment (e.g.,
HTTPS_PROXY,HTTP_PROXY).
Governance
License: MIT (see
LICENSE.md).Code of Conduct: see
CODE_OF_CONDUCT.md.
Maintenance
Latest Blog Posts
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/Cicatriiz/cdisc-library-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server