Skip to content
LangChain

cwe mcp for LangChain

io.github.mrfentmen/cwe-mcp

MITRE CWE weakness records: descriptions, mitigations, consequences and the weakness hierarchy.

client:LangChain transport:stdio runtime:npm

Install cwe mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

cwe mcp in other clients