Crazyrouter MCP server

Crazyrouter MCP server

crazyrouter-mcp•byxujfcn

An MCP server that connects supported clients to Crazyrouter for text chat, synchronous image generation, and live model discovery via an API key.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Provides a chat tool that sends text messages to models available for Chat Completions, defaulting to gpt-4o-mini.
  • •Lists live models available to the user's API key, with an optional category filter.
  • •Generates one synchronous image, defaulting to gpt-image-2, returning results as URL or base64.
  • •Returns authentication and discovery errors to the client instead of silently substituting a hardcoded model list.

BEST FOR

  • •Clients using Claude Desktop or Cursor that want Crazyrouter chat and image tools through MCP.
  • •Discovering which models are available to a specific Crazyrouter API key, optionally filtered by category.
  • •Producing a single synchronous image from a text prompt within an MCP client session.

ABOUT CRAZYROUTER-MCP

Crazyrouter MCP server is cataloged as an MCP server attributed to xujfcn. An MCP server that connects supported clients to Crazyrouter for text chat, synchronous image generation, and live model discovery via an API key. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Crazyrouter MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server's model list mean every listed model can be used through the MCP tools?

No; model discovery does not imply the MCP implements each model's protocol. Video, music, transcription, TTS and Midjourney tasks require their own APIs.

Does the image tool report success if no image is returned?

No; the tool returns both URL and base64 formats and does not report success for an empty result.

Upstream README

View this exact version on GitHub

README.md · 18610add3a6c · Fetched 2026-11-13 12:18:06 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Crazyrouter MCP: chat, image generation and model discovery

Practical guides / 实操入口

Updated 2026-10-12. This MCP server connects supported clients to Crazyrouter using your API key. The repository implements three tools; the gateway's complete catalogue is broader than these tools.

Tools

ToolAPIScope
chatPOST /v1/chat/completionsText messages for models listed for Chat Completions; default gpt-4o-mini
list_modelsGET /v1/models plus public endpoint metadataLive models available to your key; optional category filter
generate_imagePOST /v1/images/generationsOne synchronous image; default gpt-image-2; model-specific sizes

Model discovery does not imply that this MCP implements each model's protocol. Video, music, transcription, TTS and Midjourney tasks require their own APIs. The old generate_video implementation sent video models to a chat endpoint and has been removed. Use the API documentation for those task APIs.

The server no longer silently replaces failed discovery with a hardcoded model list. Authentication and discovery errors are returned to the client. Categories use public endpoint metadata and name-based audio detection; unknown types appear under other.

Install from npm

Requires Node.js 22 or later.

Configure your MCP client with npx -y crazyrouter-mcp@1.0.1 and set CRAZYROUTER_API_KEY as shown below. The client starts the server automatically.

To build from source instead:

git clone https://github.com/xujfcn/crazyrouter-mcp.git
cd crazyrouter-mcp
npm ci
npm run build

Claude Desktop or Cursor

Create a key in the Crazyrouter console. Add the following to the client's MCP configuration, replacing the key locally:

{
  "mcpServers": {
    "crazyrouter": {
      "command": "npx",
      "args": ["-y", "crazyrouter-mcp@1.0.1"],
      "env": { "CRAZYROUTER_API_KEY": "YOUR_CRAZYROUTER_API_KEY" }
    }
  }
}

Claude Desktop uses its claude_desktop_config.json; Cursor supports .cursor/mcp.json. Restart the client after editing. Do not commit a configuration containing a real key.

VS Code

Use .vscode/mcp.json and the VS Code MCP schema:

{
  "servers": {
    "crazyrouter": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "crazyrouter-mcp@1.0.1"],
      "env": { "CRAZYROUTER_API_KEY": "${input:crazyrouter-api-key}" }
    }
  },
  "inputs": [
    { "type": "promptString", "id": "crazyrouter-api-key", "description": "Crazyrouter API key", "password": true }
  ]
}

Example tool arguments

{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Reply OK"}],"max_tokens":16}

Use only one of max_tokens and max_completion_tokens, according to the model's documented schema. Do not send optional temperature values to models that do not support them.

{"category":"image"}
{"model":"gpt-image-2","prompt":"A simple blue circle on a white background","n":1}

Image output may be a URL or base64 image. The tool returns both formats through MCP and does not report success for an empty result. Size constraints vary by model. Image requests incur the model's normal charges.

Prices and troubleshooting

  • Current models and prices are the source of truth; there is no fixed model count or universal discount.
  • HTTP 400: inspect the exact model ID, endpoint, size and other fields. Start with the minimal example.
  • HTTP 401/403: check your key and permissions. HTTP 429: inspect quota and rate limits.
  • Models requiring a native task API are rejected by the chat/image tools before inference.
  • The fixed API base is https://crazyrouter.com/v1; marketing parameters are never added to API requests.

Development

npm ci
npm run build
npm test

Tests use mocked HTTP responses through an MCP client/server connection. On 2026-10-12, live checks through the updated MCP passed for model discovery, a minimal gpt-4o-mini chat request and one gpt-image-2 image request. This does not establish that every model or media operation has been tested. Maintainers can run node tests/live-smoke.mjs; add --image to include one billable image request.

中文说明

本仓库支持文本聊天、同步图片生成、实时模型发现三个工具。模型目录会返回视频、音乐等类别,但不代表这些能力已在 MCP 中实现。旧版视频工具错误地调用聊天接口,已移除;请按 API 文档使用原生任务接口。

使用 Node.js 22+,按上面的配置通过 npx -y crazyrouter-mcp@1.0.1 启动。也可以克隆仓库后运行 npm ci 和 npm run build,再将本地 dist/index.js 配置到 MCP 客户端。密钥通过 CRAZYROUTER_API_KEY 传入。不要将模型目录中的显示名称当作精确 API ID,也不要将推广参数添加到接口地址。

创建密钥 · 当前模型与价格

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Crazyrouter MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/crazyrouter-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent