Skip to content
LangChain

LLM Gateway for LangChain

io.github.theopenco/llmgateway

Chat with any LLM, generate images, browse models and check your usage and costs.

client:LangChain transport:streamable-http

Install LLM Gateway in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "llmgateway": {
            "transport": "streamable_http",
            "url": "https://api.llmgateway.io/mcp",
        }
})

tools = await client.get_tools()

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

LLM Gateway in other clients