Back to Browse

Longai MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

MCP server for LONG AI: one key, 109 text/image/video models priced by sellers.

About

MCP server for LONG AI: one key, 109 text/image/video models priced by sellers.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

2 files analyzed · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

LONGAI_API_KEYRequired
LONGAI_BASE_URLRequired

How to Install

Install command not verified. See the repository for install instructions.

View repository

Documentation

View on GitHub

From the project's GitHub README.

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.

Tools

ToolWhat it does
chatSends an OpenAI-style chat completion through the LONG AI gateway and returns the assistant message
list_modelsLists the models currently listed on the gateway

Install

No packages needed. Python 3.9+.

git clone https://github.com/Dijinlong/longai-mcp.git
cd longai-mcp

Configure

Set two environment variables:

export LONGAI_API_KEY="your-key"
export LONGAI_BASE_URL="https://ai.dijinlong.com/v1"   # optional, this is the default

The 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-mcp

The 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.py

Speaks 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

Reviews

No reviews yet

Be the first to review this server!