Skip to content
LangChain

402index for LangChain

io.github.ryanthegentry/402index

Search 15,000+ paid API endpoints across the L402, x402, and MPP protocols on 402index.io

client:LangChain transport:stdio runtime:npm

Install 402index in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

402index in other clients