Skip to content
LangChain

mcp gateway for LangChain

io.github.authzx/mcp-gateway

AuthzX MCP Gateway — policy-enforcing proxy between AI agents and MCP servers

client:LangChain transport:stdio runtime:npm

Install mcp gateway in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

mcp gateway in other clients