mnova-mcp
MCP server for MestReNova 15 that enables processing 1D NMR data, importing ChemDraw structures, running Mnova Verify, and writing back assignments with audit trails.
README
mnova-mcp
一个面向 MestReNova 15 的本地 STDIO MCP 服务,附带可直接安装的 Codex NMR Skill。它可以处理一维 NMR、导入 ChemDraw 结构、运行 Mnova Verify、将审核过的原子—多重峰指认写回 Mnova,并生成带来源记录的仿真一维 NMR FID。
本项目不包含 MestReNova 本体或许可证。Mnova Verify 功能取决于本地安装与授权。
主要功能
- 检查本地 MestReNova 及 MCP 桥接状态。
- 处理 Bruker、Varian/Agilent 或 Mnova 可读的一维 NMR 数据。
- 导入
.cdx/.cdxml等机器可读结构,建立可审计的两阶段指认流程。 - 在结构上使用小写字母编号,并把对应字母水平放在目标峰正上方。
- 重叠指认使用
k,l格式;同一原子的非等价氢可使用a,d格式。 - 默认拒绝低置信度写回,并保留未解决信号的审计记录。
- 生成可复现、明确标记为 synthetic 的复数 FID 和 Varian/Agilent
.fid数据集。
仓库结构
mnova-mcp/
├─ mnova/bridge.qs # Mnova 15 桥接脚本
├─ src/mnova_mcp/ # Python MCP 服务
├─ tests/ # 单元测试和 STDIO 探针
├─ examples/cases/ # 实测数据、结构和可审计产出
└─ skill/nmr-analyze-simulate/ # 可安装的 Codex Skill
环境要求
- Windows 10/11
- MestReNova 15.x
- Python 3.11 或 3.12
- uv
- 如需 Verify:本地可用的 Mnova Verify/ASV 许可
快速开始
git clone https://github.com/cyx1874cyx/mnova-mcp.git
cd mnova-mcp
uv sync --extra dev
uv run pytest
uv run mnova-mcp
MCP 默认通过 STDIO 运行。可用下面的探针检查握手和工具调用:
uv run python tests/stdio_probe.py
环境变量
| 变量 | 用途 |
|---|---|
MNOVA_EXE |
MestReNova.exe 路径;未设置时会检测常见安装位置 |
MNOVA_MCP_WORKSPACE |
允许 MCP 读写的项目根目录 |
MNOVA_MCP_OUTPUT_ROOT |
任务输出根目录 |
MNOVA_MCP_RUNTIME_ROOT |
传递给 Mnova 的 ASCII 临时桥接目录 |
MNOVA_MCP_BRIDGE_SCRIPT |
自定义 bridge.qs 路径 |
MNOVA_MCP_TIMEOUT_SEC |
Mnova 任务超时秒数,默认 300 |
MCP 工具
mnova_statusmnova_process_1dmnova_prepare_structure_1dmnova_apply_assignments_1d
结构指认采用两阶段流程:
mnova_prepare_structure_1d读取实测 NMR 和 ChemDraw 结构,输出原子索引、氢位点、multiplet UUID、Verify 信息和prepared.mnova。- 调用方审核
analysis.json,构建 assignment-plan JSON,再调用mnova_apply_assignments_1d生成新的assigned.mnova。
每个要写回的指认都需要独立的小写字母 label:
{
"schema_version": "1.1",
"assignments": [
{
"label": "a",
"atom_index": 4,
"h_index": 1,
"multiplet_uuid": "{uuid-from-analysis}",
"ppm": 3.651,
"range_min_ppm": 3.620,
"range_max_ppm": 3.681,
"confidence": "high",
"evidence": "2H integral, expected OCH2 shift, and consistent splitting"
}
],
"unresolved": []
}
安装 Codex Skill
将 skill/nmr-analyze-simulate 复制到你的 $CODEX_HOME/skills/ 目录,然后重新加载 Codex。Skill 中的解读、Mnova 指认和仿真规则位于:
skill/nmr-analyze-simulate/SKILL.mdskill/nmr-analyze-simulate/references/skill/nmr-analyze-simulate/scripts/
实测案例
- DEGMA / CDCl3 / 400 MHz 1H NMR:包含未修改的 Varian/Agilent FID 压缩包、目标结构、独立处理结果、Mnova 两阶段指认文档、最终标峰 PDF、归属表和 Verify 记录。
安全与科学边界
- 原始数据、ChemDraw 结构和已准备 Mnova 文档不会被覆盖。
- 每次运行写入新输出目录。
- 自动拾峰、自动积分和 Verify 分数只是决策支持,不是结构身份的独立证明。
- 仿真输出始终保留
synthetic: true、模型哈希、参数和随机种子。 - 当一维证据不唯一时,应保留 unresolved,并优先建议 COSY、HSQC 或 HMBC。
开发
uv sync --extra dev
uv run pytest
uv run python tests/stdio_probe.py
License
MIT © 2026 cyx1874cyx
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.