AISIX AI Gateway for LangChain
io.github.api7/aisix
Self-hosted AI gateway that governs MCP servers, LLM traffic, and A2A agents behind one endpoint
client:LangChain
transport:stdio
runtime:oci
Install AISIX AI Gateway in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"aisix": {
"transport": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/api7/aisix:1.3.0"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs