Skip to content
LangChain

mcp bastion for LangChain

io.github.gowthaman90/mcp-bastion

Reliability + security proxy for MCP: runtime tool-security and a compliance-mapped audit trail.

client:LangChain transport:stdio runtime:npm

Install mcp bastion in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

mcp bastion in other clients