Skip to content
LangChain

canton mcp for LangChain

io.github.noves-inc/canton-mcp

Query Canton Network balances, rewards, transactions, prices, and identity from any AI agent.

client:LangChain transport:stdio runtime:npm

Install canton mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "canton-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@noves/canton-mcp"],
        }
})

tools = await client.get_tools()

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

canton mcp in other clients