Skip to content
LangChain

MCP configuration audit for LangChain

io.github.asterionsec/mcp-audit

Audit local MCP server configurations: unpinned packages, plain-text credentials, risky permissions.

client:LangChain transport:stdio runtime:npm

Install MCP configuration audit in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

MCP configuration audit in other clients