LONG AI MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
longai-mcp
A dependency-free Model Context Protocol server that proxies LONG AI — an AI compute marketplace with an OpenAI-compatible API gateway. One API key gives access to 109 live text, image and video models listed by independent sellers, typically 50–95% below official list price.
Website: https://ai.dijinlong.com
English site: https://ai.dijinlong.com/en
Model catalogue and pricing: https://ai.dijinlong.com/model-plaza
Tools
Tool | What it does |
| Sends an OpenAI-style chat completion through the LONG AI gateway and returns the assistant message |
| Lists the models currently listed on the gateway |
Related MCP server: simple-fal-mcp
Install
No packages needed. Python 3.9+.
git clone https://github.com/Dijinlong/longai-mcp.git
cd longai-mcpConfigure
Set two environment variables:
export LONGAI_API_KEY="your-key"
export LONGAI_BASE_URL="https://ai.dijinlong.com/v1" # optional, this is the defaultThe gateway is OpenAI-compatible, so any OpenAI-style client works against the same base URL.
Run with Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"longai": {
"command": "python",
"args": ["/absolute/path/to/longai-mcp/server.py"],
"env": { "LONGAI_API_KEY": "your-key" }
}
}
}Run with Docker
docker build -t longai-mcp .
docker run -i --rm -e LONGAI_API_KEY=your-key longai-mcpThe container reads JSON-RPC from stdin and writes responses to stdout, so it plugs into any MCP client that supports a stdio command.
Run with any stdio MCP client
LONGAI_API_KEY=your-key python server.pySpeaks JSON-RPC 2.0 over stdio, supports initialize, tools/list and tools/call.
Example tool call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "chat",
"arguments": {
"model": "gpt-4o-mini",
"messages": [{ "role": "user", "content": "Explain what an API gateway does in one sentence." }]
}
}
}Why a marketplace gateway
Most gateways resell at a fixed markup. LONG AI is a marketplace: sellers list their own compute and set their own price, so the same model can cost materially less than the official list price, and you can route to the cheapest seller that is healthy right now.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
AI image & video generation MCP server (16 models, DAG projects, MCP Apps UI, OAuth 2.1).
1MCP server for Qwen Image 3 AI image generation
One API key for 6 AI models. Pay-per-use. MCP protocol support with web search.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables AI applications to access 20+ model providers (including OpenAI, Anthropic, Google) through a unified interface for text and image generation.230MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for fal model discovery, execution, pricing, and local media processing, enabling AI model workflows via natural language.135 npmMIT
- AlicenseAqualityDmaintenanceMCP server for AI-powered media generation: images, videos, audio, and upscaling using 99 AI models.6MIT
- AlicenseAqualityCmaintenanceMCP server for UnoRouter, an OpenAI-compatible gateway with 200+ models, providing search_models, get_pricing, and chat tools to interact with various AI models through natural language.3140 npmAGPL 3.0