CDES MCP服务器
大麻数据交换标准——模型上下文协议服务器
  
公开以下内容的公共MCP服务器 大麻数据交换标准(CDES) v1 JSON模式、参考数据库和验证工具,用于AI代理和MCP兼容客户端。
CDES是什么?
这 大麻数据交换标准 是大麻行业的开源数据标准,提供:
- 7个JSON模式 --菌株、萜烯图谱、大麻素图谱、萜烯、分析证书(COA)、评级、评级汇总
- 3个参考数据集 --萜烯库(10种萜烯)、大麻素库(9种大麻素)、萜烯调色板(30种WCAG 2.1 AA颜色)
- 验证工具 --根据CDES模式验证任何大麻数据对象
快速开始
选项1:使用公共服务器(推荐)
CDES MCP服务器公开托管在 https://mcp.cdes.world --无需安装。
克劳德桌面
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"cdes": {
"url": "https://mcp.cdes.world/sse"
}
}
}VS代码(GitHub副本)
增添 .vscode/mcp.json 在您的项目中:
{
"mcpServers": {
"cdes": {
"type": "sse",
"url": "https://mcp.cdes.world/sse"
}
}
}光标/风帆
{
"mcpServers": {
"cdes": {
"url": "https://mcp.cdes.world/sse"
}
}
}健康检查
curl https://mcp.cdes.world/health选项2:本地运行(stdio)
从源代码安装以供本地/脱机使用:
git clone https://github.com/Acidni-LLC/cdes-mcp-server.git
cd cdes-mcp-server
pip install -e .
cdes-mcp-server对于本地stdio传输,请配置MCP客户端:
{
"mcpServers": {
"cdes": {
"command": "cdes-mcp-server",
"args": []
}
}
}可用工具
| 工具 | 说明 |
|---|---|
list_schemas | 列出所有CDES v1模式,包括标题、描述和必填字段 |
get_schema | 按名称获取完整的JSON Schema文档 |
validate_data | 根据任何CDES架构验证数据对象 |
get_terpene_info | 按ID或名称查找详细的萜类信息 |
get_cannabinoid_info | 按ID或姓名查找详细的大麻素信息 |
lookup_terpene_color | 为萜烯获得标准化的WCAG 2.1 AA颜色 |
list_terpenes | 列出所有萜烯及其汇总数据 |
list_cannabinoids | 列出所有大麻素及其汇总数据 |
search_reference_data | 在所有参考数据中进行全文搜索 |
get_cdes_overview | 全面的CDES标准概述 |
可用资源
| URI | 描述 |
|---|---|
cdes://schemas/v1/strain | 应变模式 |
cdes://schemas/v1/terpene-profile | Terpene剖面图 |
cdes://schemas/v1/cannabinoid-profile | 大麻素概况图 |
cdes://schemas/v1/terpene | Terpene定义模式 |
cdes://schemas/v1/coa | 分析证书架构 |
cdes://schemas/v1/rating | 用户评级架构(CX扩展) |
cdes://schemas/v1/rating-aggregate | 评级聚合架构 |
cdes://reference/terpene-library | 萜烯参考库(10种萜烯) |
cdes://reference/cannabinoid-library | 大麻素参考库(9种大麻素) |
cdes://reference/terpene-colors | 萜烯调色板(30种颜色) |
交互示例
列出所有架构
> Use the CDES server to list all available schemas
The CDES standard includes 7 schemas:
1. Strain — cannabis strain definition with type, effects, flavors
2. Terpene Profile — 21 named terpene measurements
3. Cannabinoid Profile — 13 cannabinoid measurements with computed totals
4. Terpene — individual terpene definition with CAS number, effects
5. COA — Certificate of Analysis with lab info, safety tests
6. Rating — user rating/review (CX extension)
7. Rating Aggregate — aggregated rating statistics验证数据
> Validate this strain data against the CDES schema:
> {"id": "strain-001", "name": "Blue Dream", "type": "hybrid"}
✅ Valid! The data conforms to the CDES v1 strain schema.查找萜类化合物
> What is Myrcene? Use the CDES terpene library.
Myrcene (CAS: 123-35-3) is a monoterpene with an earthy, musky, herbal
aroma. It's the most common terpene in cannabis (~40% of strains).
Boiling point: 168°C. Key effects: relaxing, sedating, anti-inflammatory.
Found in mango, hops, lemongrass, and thyme.模式结构
所有模式如下 2020-12年JSON模式草案 使用基本URI:
https://schemas.terprint.com/cdes/v1/模式关系
strain.json
├── $ref → terpene-profile.json
├── $ref → cannabinoid-profile.json
└── enums: type, effects, flavors, difficulty
coa.json
├── $ref → terpene-profile.json
├── $ref → cannabinoid-profile.json
└── safetyTests: microbials, pesticides, heavyMetals, ...
terpene-profile.json
└── $defs/terpeneValue: number | {value, loq, lod, ...}
rating.json → rating-aggregate.json (computed)参考数据许可
| 数据集 | 许可证 | 描述 |
|---|---|---|
| 萜烯库 | CC0-1.0 | 10种常见的大麻萜烯及其完整元数据 |
| 大麻素库 | CC0-1.0 | 9种具有颜色、效果和CAS编号的大麻素 |
| 萜烯颜色 | CC0-1.0 | 30 WCAG 2.1 AA兼容可视化颜色 |
发展
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Lint
ruff check src/
ruff format src/相关项目
| 项目 | 描述 |
|---|---|
| cdes规范 | CDES规范和JSON模式 |
| cdes sdk python | CDES的Python SDK(Pydantic模型) |
| cdes参考数据 | 参考数据(萜烯、大麻素) |
| cdes.world | CDES文档网站 |
许可证
- 代码: Apache 2.0
- 架构: CC 4.0
- 参考数据: CC0 1.0
______________________________________________________________________
*由...建造 Acidni有限责任公司 --为大麻数据生态系统提供动力。*
