Skip to content
LangChain

inference mcp for LangChain

io.github.bsvkey/inference-mcp

Pay-per-token Claude & Grok inference, settled in BSV, via the inference.bsvkey.com gateway.

client:LangChain transport:stdio runtime:npm

Install inference mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

inference mcp in other clients