Skip to content
LangChain

MCP Compliance for LangChain

io.github.yawlabs/mcp-compliance

CLI tool and MCP server that tests MCP servers for spec compliance

client:LangChain transport:stdio runtime:npm

Install MCP Compliance in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

MCP Compliance in other clients