Skip to content
LangChain

Polity for LangChain

ca.baye/polity

Canadian federal legislation: bills, the laws they change, committee study and votes.

client:LangChain transport:streamable-http

Install Polity in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "polity": {
            "transport": "streamable_http",
            "url": "https://mcp.polity.baye.ca/mcp",
        }
})

tools = await client.get_tools()

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

Polity in other clients