Skip to content
LangChain

Tripwire for LangChain

io.github.bonesdefi/tripwire

Security gateway for MCP agents: blocks prompt-injection-driven tool calls before they execute.

client:LangChain transport:stdio runtime:npm

Install Tripwire in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Tripwire in other clients