
ChemCP
io.github.scottmreed由 GitHub 帳號 scottmreed 發布v1.1.0更新於 Oct 24, 2026
MCP App that renders 2D molecular structures from SMILES using RDKit.js
概覽
一個本機 MCP 應用程式,可依 SMILES 字串在對話中繪製可互動的 2D 分子結構圖,並顯示計算出的分子屬性。
- 可以做什麼
- 繪製分子:把 SMILES 字串轉成對話內可互動檢視器中的 2D 結構圖,提供範例分子與自行輸入 SMILES 的欄位。顯示計算屬性:分子量、LogP、氫鍵供體與受體、TPSA、可旋轉鍵與環數,由瀏覽器中的 RDKit.js 計算。比較分子:可並排繪製多個結構。在不支援 MCP Apps 的宿主中,工具只以文字回傳 SMILES 資料,不會顯示圖形。
- 適用情境
- 適合在對話中查看或說明化學結構,例如展示阿斯匹靈、咖啡因或苯環,比較不同分子,或在不另裝化學資訊軟體的情況下查看基本描述符。
- 執行需求
- 需要 Node.js 18 以上版本,並在本機安裝該 npm 套件,於用戶端設定為 stdio 伺服器。互動式檢視器需要支援 MCP Apps 的宿主,例如 Claude Desktop;網頁連接器方式為實驗性,需要付費 Claude 方案與公開通道。RDKit.js 從 CDN 載入,首次載入需要網路連線。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 ChemCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ChemCP - Molecule Viewer MCP App
An MCP App that renders interactive 2D molecular structure diagrams from SMILES notation using RDKit.js. Ask your AI assistant to show you any molecule, and ChemCP displays the structure with computed properties — right inside the chat.
What you get
- 2D structure diagrams rendered from any valid SMILES string
- Molecular properties — molecular weight, LogP, H-bond donors/acceptors, TPSA, rotatable bonds, rings, and more
- Interactive UI — type your own SMILES, click example molecules, all without leaving the conversation
- Powered by RDKit (the same cheminformatics toolkit used by pharma and biotech)
For more functionality try: ChemIllusion
Prerequisites
- Node.js 18+ — download here
- Claude Desktop (recommended) or Claude.ai paid plan (Pro/Max/Team) — the interactive molecule viewer requires a host that supports MCP Apps
Note: Claude Desktop has full MCP Apps support. Claude.ai custom connectors are experimental and may have CSP limitations that prevent RDKit.js from loading. If you see "RDKit.js failed to load" in Claude.ai, use Claude Desktop instead.
Setup: Claude Desktop
Claude Desktop supports local MCP servers out of the box. No tunnels or remote hosting needed.
Step 1: Install ChemCP
Verify it installed:
(It will start the MCP server on stdio — you can Ctrl+C to stop it.)
Step 2: Configure Claude Desktop
Open your Claude Desktop config file:
Add ChemCP to the mcpServers section:
Tip: If you already have other MCP servers configured, just add the
"chemcp"entry alongside them inside the existing"mcpServers"object.
Step 3: Restart Claude Desktop
Quit and reopen Claude Desktop. You should see ChemCP listed in the MCP tools (click the hammer icon at the bottom of the chat input).
Step 4: Try it out
Type a message like:
- "Show me the molecule for aspirin"
- "Render the structure of caffeine"
- "Display SMILES: CC(=O)Oc1ccccc1C(=O)O"
Claude will call the render_molecule tool, and an interactive molecule viewer will appear in the conversation showing the 2D structure and molecular properties.
Setup: Claude.ai (Web) — Experimental
⚠️ Experimental: Claude.ai custom connectors have experimental MCP Apps support. CSP restrictions may prevent RDKit.js from loading. Use Claude Desktop for the best experience.
Claude.ai supports remote MCP servers via custom connectors. This requires a paid Claude plan (Pro, Max, or Team).
Step 1: Install and start the server
Start in HTTP mode:
This starts the server on http://localhost:3001/mcp.
Step 2: Expose with a tunnel
In a separate terminal, create a public tunnel to your local server:
Copy the generated URL (e.g., https://random-name.trycloudflare.com).
Step 3: Add as a custom connector in Claude.ai
- Go to claude.ai
- Click your profile picture (bottom-left)
- Go to Settings > Connectors
- Click Add custom connector
- Paste your tunnel URL +
/mcp(e.g.,https://random-name.trycloudflare.com/mcp) - Give it a name like "ChemCP"
- Save
Step 4: Try it out
Start a new chat and ask Claude to show you a molecule:
- "Show me the structure of ibuprofen"
- "What does benzene look like? Render it for me"
- "Render SMILES: CN1C=NC2=C1C(=O)N(C(=O)N2C)C"
The interactive molecule viewer will render directly in the chat.
Example prompts
Once connected, try these:
Example SMILES
Troubleshooting
"I don't see the molecule viewer, just text"
The interactive UI only works in hosts that support MCP Apps:
- Claude Desktop (latest version)
- Claude.ai (web, with custom connector)
If you're using Claude Code (CLI) or another MCP client that doesn't support MCP Apps, the tool will still return the SMILES data as text, but the visual rendering won't appear.
"Tool not found" or ChemCP not listed
- Claude Desktop: Make sure you restarted the app after editing the config file. Check that
npx chemcpworks in your terminal. - Claude.ai: Make sure the tunnel is still running and the connector URL ends with
/mcp.
"RDKit.js failed to load from CDN"
Claude.ai custom connectors: CSP limitations may prevent RDKit.js from loading when using custom connectors. Solution: Use Claude Desktop instead, which has full MCP Apps support.
Claude Desktop: If RDKit.js fails to load, this usually means:
- No internet connection (RDKit.js loads from
unpkg.com, ~8 MB) - CDN is blocked by your network firewall
- First load timeout — reload the chat and try again
Node.js version
ChemCP requires Node.js 18 or higher. Check with:
For developers
Local development
Project structure
How it works
- Claude calls the
render_moleculetool with a SMILES string - The server returns the SMILES to the MCP App UI
- The UI loads RDKit.js (WebAssembly) in the browser
- RDKit parses the SMILES and renders a 2D SVG structure diagram
- Molecular descriptors (MW, LogP, TPSA, etc.) are computed client-side
- Everything displays in a sandboxed iframe inside the chat
Testing with the basic-host
The ext-apps repository includes a test host for MCP App development:
Links
- npm package
- MCP Registry
- MCP Apps documentation
- RDKit.js
- ChemIllusion — for more complex molecule interactions
來源:README.md,提交 fb1c28e
工具
0版本歷史
1- v1.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。