Skip to content
LangChain

Polis Protocol for LangChain

io.github.yehudalevy-collab/polis-protocol

Local-first control plane for coding agents: routing, reservations, and guardrails.

client:LangChain transport:stdio runtime:pypi

Install Polis Protocol in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "polis-protocol": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["polis-protocol"],
        }
})

tools = await client.get_tools()

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

Polis Protocol in other clients