chemdraw-mcp

chemdraw-mcp

Enables generation of chemical structures, reactions, spectra, titration curves, 3D models, and more from natural language or SMILES, using RDKit for offline rendering and supporting formats like PNG, SVG, CDXML, and Anki decks.

Category
访问服务器

README

chemdraw-mcp

<!-- mcp-name: io.github.jurimaxam-dotcom/chemdraw-mcp -->

CI Release License: Apache-2.0

Chat → chemical structure. An MCP server for Claude Desktop that turns molecule names or SMILES into publication-style 2D structure drawings — "draw aspirin" produces a print-ready PNG/SVG, rendered fully offline with RDKit. No ChemDraw required; ChemDraw CDXML is available as an optional extra format for users who want to keep editing there.

Built for pharmacy/chemistry students who spend too much time clicking hexagons: structures, full reaction schemes, step-by-step mechanisms, substance data sheets and Ph.Eur. assay calculations — straight from the chat, with an interactive preview panel rendered inline.

<p align="center"><img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/demo.gif" alt="Live demo: 'Draw Caffein' renders an interactive structure panel in Claude Desktop" width="560"></p>

Example output

"Draw caffeine" — print-ready PNG, generated by generate_molecule:

<p align="center"><img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/caffeine.png" alt="Caffeine structure, rendered by generate_molecule" width="420"></p>

"Show the Fischer esterification of ethanol with acetic acid"generate_reaction renders the scheme with conditions above the arrow, live in the chat panel:

<p align="center"><img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/reaction-demo.gif" alt="Reaction scheme with conditions appearing live in the chat panel" width="640"></p>

"Show the Fischer esterification mechanism step by step"generate_mechanism renders curved electron-flow arrows in the interactive panel:

<p align="center"><img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/mechanism-demo.gif" alt="Step-by-step Fischer esterification mechanism with curved arrows in the chat panel" width="560"></p>

"Sketch the IR spectrum of ethyl acetate"generate_spectrum (draws the peaks it is given, with per-type axis conventions):

<p align="center"><img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/ethyl-acetate-ir.png" alt="Schematic IR spectrum of ethyl acetate with labeled bands" width="560"></p>

"Show caffeine in 3D"generate_3d embeds the molecule (ETKDG + force field) and opens a drag-to-rotate ball-and-stick viewer in the chat panel:

<p align="center"><img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/3d-demo.gif" alt="Rotating 3D ball-and-stick caffeine model inside the concave viewer" width="560"></p>

"What distinguishes ibuprofen from naproxen and ketoprofen?"compare_molecules keeps the shared scaffold (MCS) neutral and highlights everything that differs:

<p align="center"><img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/compare-profens.png" alt="Ibuprofen, naproxen and ketoprofen side by side with differences highlighted" width="680"></p>

"Titration curve of phosphoric acid with NaOH, phenolphthalein as indicator"generate_titration_curve computes pH from the exact charge balance, with equivalence points, buffer points (pH = pKa) and the indicator band; its sibling generate_species_distribution shows which protonation species dominates at every pH:

<p align="center"> <img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/titration-phosphoric.png" alt="Titration curve of phosphoric acid with three equivalence points and phenolphthalein band" width="420"> <img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/species-phosphoric.png" alt="Species distribution of phosphoric acid over pH with pKa crossovers" width="420"> </p>

"Create an Anki deck with important molecules and open it in Anki"export_anki_deck / export_curated_deck build a ready-to-import .apkg with rendered structures embedded; with the optional AnkiConnect add-on the cards land straight in the running Anki, no clicks:

<p align="center"><img src="https://raw.githubusercontent.com/jurimaxam-dotcom/chemdraw-mcp/main/assets/anki-demo.gif" alt="Split screen: asking Claude for an Anki deck, cards appear in Anki via AnkiConnect" width="760"></p>

Features

  • generate_molecule — name/SMILES → 2D structure as PNG + SVG (optionally CDXML), with properties, functional-group detection and a Lipinski rule-of-five check
  • generate_reaction — educts + products + conditions → reaction scheme
  • batch_generate — a whole list of structures in one call
  • generate_mechanism — curved-arrow mechanisms (SN1, SN2, Fischer esterification) step by step
  • generate_spectrum — schematic spectra from peak lists (IR, NIR, Raman, UV/Vis, fluorescence, ORD, CD, ¹H/¹³C NMR, MS) with per-type axis conventions — draws given peaks, does not predict spectra
  • export_anki_deck — exam-prep flashcards as a ready-to-import Anki .apkg: structure↔name drills (optionally reversed: one note, both directions), cloze/fill-in-the-blank cards, identity/detection reactions, spectrum band assignment — with rendered images embedded, per-card tags, Parent::Child subdecks; re-exporting a deck updates cards instead of duplicating them. Optional delivery straight into the running Anki via the AnkiConnect add-on
  • export_curated_deck — small, formula-verified starter decks (classic analgesics, Ph.Eur. identity reactions)
  • generate_titration_curve — pH vs. titrant volume from the exact charge balance, with equivalence points, buffer points (pH = pKa) and indicator transition band
  • generate_species_distribution — protonation species fractions over pH (Henderson-Hasselbalch) with pKa crossovers marked
  • compare_molecules — 2-4 structures side by side, differences highlighted, shared scaffold (MCS) neutral
  • generate_3d — rotatable 3D ball-and-stick conformer in the chat panel (ETKDG + force field) plus SDF export; stereo descriptors (R/S, E/Z) available on 2D drawings via annotate_stereo
  • lookup_* — substance data from PubChem, ChEBI, KEGG and UniProt (properties, GHS safety, pathways)
  • calculate_validation — Ph.Eur.-style content determination with full calculation steps, t-test/F-test statistics
  • Interactive in-chat UI (MCP App): hover atoms, inspect functional groups, export PNG with one click
  • macOS ChemDraw bridge (optional): open any generated structure directly in ChemDraw via open_chemdraw_file

Installation

Option 1 — straight from PyPI (needs uv): add this to your Claude Desktop config (claude_desktop_config.jsonmcpServers):

"chemdraw": {
  "command": "uvx",
  "args": ["chemdraw-mcp"]
}

Option 2 — one-command installer (clones the repo and registers the server in Claude Desktop automatically):

git clone https://github.com/jurimaxam-dotcom/chemdraw-mcp.git
cd chemdraw-mcp && ./install.sh

Both are idempotent and leave existing MCP servers untouched. Restart Claude Desktop, then ask: "draw caffeine".

Optional: with a Java runtime installed (e.g. brew install openjdk), systematic IUPAC names — including ones no database indexes — are parsed offline via OPSIN. Without Java the server falls back to the PubChem/NCI online lookup.

How it works

name / SMILES
   │
   ▼
resolver ──► OPSIN (systematic IUPAC names, offline) ──► PubChem / NCI (names)  ·  direct parse (SMILES)
   │
   ▼
RDKit 2D coordinates ──► validation (sanity, round-trip)
   │
   ├──► image_export   → PNG + SVG files          (primary, offline)
   ├──► svg_renderer   → interactive chat preview (MCP App resource)
   └──► cdxml_writer   → ChemDraw CDXML           (optional, on request)

Development

uv sync                      # backend deps
cd chemdraw_tool/ui && npm install && npx playwright install chromium  # frontend, once
./test.sh                    # the gate: pytest + JS unit + headless-Chromium e2e

~400 tests, written test-first. The e2e test rasters a real RDKit SVG in headless Chromium and compares it against an exact pixel snapshot.

License

Apache-2.0 — see LICENSE. Copyright 2026 jurimaxam-dotcom.

Disclaimer: This is an unofficial, independent project, not affiliated with or endorsed by Revvity. ChemDraw is a trademark of Revvity Signals Software, Inc. This tool does not include or require ChemDraw; it can optionally export files in the open CDXML format.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选