Skip to content
LangChain

Prefeitura: CPOM for LangChain

io.github.mcp-dir/pref_cpom-mcp

Prefeitura: CPOM, official-source lookup. Platform-hosted, pay per query with prepaid credit.

client:LangChain transport:streamable-http tools:7

Install Prefeitura: CPOM in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "pref_cpom-mcp": {
            "transport": "streamable_http",
            "url": "https://api.mcp.ai/p_pref_cpom",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

Prefeitura: CPOM in other clients