protect mcp for LangChain
io.github.tomjwxf/protect-mcp
Signed receipts and Cedar policies for AI agent tool calls. Claude Code hooks, MCP gateway.
client:LangChain
transport:stdio
runtime:npm
Install protect mcp in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"protect-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "protect-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs