Skip to content
LangChain

api test mcp for LangChain

io.github.thisis-najeeb/api-test-mcp

Call the real API and check the response against your OpenAPI spec.

client:LangChain transport:stdio runtime:npm

Install api test mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

api test mcp in other clients