Skip to content
LangChain

cpfhub for LangChain

io.github.cpfhub/cpfhub

MCP server for CPFHub.io. Query Brazilian CPF data directly from AI agents.

client:LangChain transport:stdio runtime:npm

Install cpfhub in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

cpfhub in other clients