gems-mcp

gems-mcp

MCP server wrapping xGEMS for thermodynamic equilibrium calculations, offering tools to list systems, get system info, and run simulations.

Category
访问服务器

README

GEMS CLI

封装 xGEMS 库的热力学模拟 CLI 工具和 MCP Server,供 AI Agent 和研究者调用。

项目结构

gemscli/
├── gems_cli/                    # Python 包
│   ├── engine.py                # GemsEngine 核心封装 + GemsExplorer
│   ├── cli.py                   # CLI 入口 (gems-cli)
│   ├── mcp_server.py            # MCP Server (gems-mcp),4 个工具
│   ├── utils.py                 # 单位转换、路径解析
│   └── templates/               # JSON 模拟模板
├── data/systems/                # 7 个预导出的 GEMS3K 热力学系统
├── examples/                    # 使用示例 + 论文复现脚本
├── docs/                        # 技术文档
├── GEMS3.11.2/                  # GEM-Selektor 分发包(二进制 + 数据库)
└── pyproject.toml

快速开始

1. 安装依赖

conda config --add channels conda-forge
conda create -n gems python=3.11 -y
conda activate gems
conda install xgems -y
pip install mcp                    # MCP Server 依赖
pip install -e .                   # 开发模式安装

2. 使用 CLI

# 列出可用系统
gems-cli --list-systems

# 查看系统元数据
gems-cli --system-info calcite

# 运行平衡计算(内联参数)
gems-cli --system calcite --T 25 --P 1 \
  --bulk-composition '{"Ca":0.01,"C":0.01,"H":111,"O":55.5}'

# 运行平衡计算(JSON 文件)
gems-cli --input gems_cli/templates/aragonite_calcite.json

3. 启动 MCP Server

gems-mcp                                    # stdio 模式(默认)
gems-mcp --transport sse --port 8765        # SSE 模式

可用系统

系统 元素 说明
calcite 10 13 Ca-C-O-H 地球化学,文石/方解石平衡
cement_hydration 24 110 完整水泥水化(C-S-H, CH, AFt, AFm 等)
iron_redox 7 4 Fe²⁺/Fe³⁺ 氧化还原体系
exchange_sorption 8 7 铀在粘土矿物上的离子交换吸附
PC_leaching 13 84 硅酸盐水泥浸出
mortar_dissolution 13 81 砂浆骨料溶解
ferrite_carbonation 8 ~30 C4AF 铁铝酸盐强制碳化(从 PC_leaching 精简)

验证

本项目已通过以下文献的热力学模拟结果验证:

  1. Ma Z, Jiang Y, Ding T, et al. Elucidating the behaviours and mechanisms of enforced carbonation in ferrite. Cement and Concrete Research, 2025, 195: 107916. DOI: 10.1016/j.cemconres.2025.107916
  2. Kim N, Seo J, Jang J G, et al. Thermodynamic modeling of carbonated Portland cement under groundwater and seawater conditions. Cement and Concrete Composites, 2025, 162: 106141. DOI: 10.1016/j.cemconcomp.2025.106141
  3. Gao W, Zhao M, Li C, et al. Synergistic mechanisms of multiple components in lithium slag-based low-carbon cement: Multi-scale insights from thermodynamic modeling to hydration-driven microstructural evolution. Cement and Concrete Composites, 2026, 162: 106508. DOI: 10.1016/j.cemconcomp.2026.106508
  4. Pang L, Sun J, Provis J L, et al. Thermodynamic simulation-assisted design of the electrolytic manganese residue-slag-Ca(OH)₂ cementitious system. Cement and Concrete Research, 2025. DOI: 10.1016/j.cemconres.2025.108119

相关资源

  • xGEMS 源码: https://bitbucket.org/gems4/xgems
  • xGEMS Jupyter 示例: https://github.com/gemshub/xgems-jupyter
  • GEM-Selektor 文档: https://gemshub.github.io/start/gemselektor/documentation/

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选