Skip to content
LangChain

Chainweb API for LangChain

io.github.pact-community-organization/chainweb

Chainweb HTTP API: local sim, pre-signed send, poll, table reads, SPV proofs, module deploys.

client:LangChain transport:stdio runtime:npm

Install Chainweb API in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Chainweb API in other clients