灵流 Lingliu for LangChain
com.lingliuapi.api/lingliu
Lingliu AI: generate images, videos and speech, upscale, cut out; prices, balance, tasks.
client:LangChain
transport:streamable-http
Install 灵流 Lingliu in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"lingliu": {
"transport": "streamable_http",
"url": "https://api.lingliuapi.com/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs