Skip to main content

CDISC Library MCP server: SDTM, ADaM, CDASH, Controlled Terminology tools for AI assistants

Project description

CDISC Library MCP

基于 CDISC Library API 的 MCP(Model Context Protocol)服务,为 AI 助手提供 SDTM、ADaM、CDASH、Controlled Terminology 等标准查询能力。

安装

pip install allensrj-cdisc-library-mcp

或使用 uv:

uv add allensrj-cdisc-library-mcp

配置 API Key(必填)

本包不包含任何 API Key,用户需自行在 CDISC Library 注册并获取 API Key,然后通过以下任一方式配置:

方式一:环境变量

export CDISC_API_KEY=你的API_KEY
allensrj-cdisc-library-mcp

方式二:.env 文件(推荐本地开发)

在运行目录或项目根目录创建 .env 文件:

CDISC_API_KEY=你的API_KEY

(可参考项目中的 .env.example,切勿将 .env 提交到 Git。)

运行

安装并配置好 CDISC_API_KEY 后:

allensrj-cdisc-library-mcp

默认使用 stdio 传输。若需其他传输方式,可在代码中修改 main.pyrun() 或通过 MCP 客户端配置。

提供的工具概览

类别 工具示例
产品列表 get_product_list
SDTM / SEND get_sdtmig_class_info, get_sdtmig_dataset_info, get_sdtm_model_*, get_sendig_*
CDASH / CDASHIG get_cdashig_class_info, get_cdashig_domain_info, get_cdash_model_*
ADaM get_adam_product_info, get_adam_datastructure_info
QRS get_qrs_info
Controlled Terminology get_package_ct_info, get_package_ct_codelist_info, get_package_ct_codelist_term_info

项目结构

├── main.py          # 入口:注册工具、启动服务
├── config.py        # 配置:CDISC_API_KEY、常量
├── utils/           # 通用:HTTP 客户端、响应格式化
├── tools/           # 业务:sdtm, adam, terminology, general
├── pyproject.toml   # 包元数据与 allensrj-cdisc-library-mcp 入口
└── README.md

License

LICENSE 文件。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

allensrj_cdisc_library_mcp-0.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

allensrj_cdisc_library_mcp-0.1.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file allensrj_cdisc_library_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: allensrj_cdisc_library_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for allensrj_cdisc_library_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1ebe441830805d0f79c315841b7c11c8968b27c86def25c65431e6c5ec9dd349
MD5 efde9263e8b6a9b411064ba4492e6e4b
BLAKE2b-256 87fc4954c1d6858921c2358d32f0e6c9daa9f859d5823a7daf4f08898729a884

See more details on using hashes here.

File details

Details for the file allensrj_cdisc_library_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: allensrj_cdisc_library_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for allensrj_cdisc_library_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da0284b3747e69a9543ac3ab2b54e254a88f66433975347a420f68edc0d37878
MD5 d3e00a95e3a64a96a69b4c38bf3d208e
BLAKE2b-256 6a6aa37ec3dafbd4fc45072f9df8bd6a149cec5dbcd4ccec5479490544815b5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page