Skip to content
LangChain

ChemCP for LangChain

io.github.scottmreed/chemcp

MCP App that renders 2D molecular structures from SMILES using RDKit.js

client:LangChain transport:stdio runtime:npm

Install ChemCP in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "chemcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "chemcp"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

ChemCP in other clients