Skip to content
LangChain

mcp-gateway (OpenAPI to MCP) for LangChain

io.github.fetch-hive/mcp-gateway

OpenAPI or local API to MCP server, with a public HTTPS tunnel. Rust CLI, any MCP client.

client:LangChain transport:stdio runtime:npm

Install mcp-gateway (OpenAPI to MCP) in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

mcp-gateway (OpenAPI to MCP) in other clients