Crazyrouter MCP logo

Crazyrouter MCP

Connects AI clients to Crazyrouter for chat, live model discovery, and synchronous image generation.

Install Crazyrouter MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "crazyrouter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "crazyrouter-mcp@1.0.1"
      ],
      "env": {
        "CRAZYROUTER_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env CRAZYROUTER_API_KEY=YOUR_VALUE_HERE --transport stdio crazyrouter-mcp -- npx -y crazyrouter-mcp@1.0.1

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y crazyrouter-mcp@1.0.1

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

crazyrouter-mcp connects MCP clients to Crazyrouter through an API key and exposes tools for text chat, model discovery, and synchronous image generation. It runs as a Node.js stdio server, commonly launched with npx, and sends requests to Crazyrouter's fixed v1 API base. Reach for it when an agent needs access to models available to a Crazyrouter account, while keeping in mind that video, music, transcription, TTS, and Midjourney workflows are outside its implemented tools.

Use cases

  • Send chat prompts through models enabled for a Crazyrouter account
  • Discover available models before selecting one for an agent task
  • Generate a single image from a text prompt
  • Filter the live model catalogue by capability category

Key features

  • Chat Completions access through the chat tool
  • Live model discovery with optional category filtering
  • Synchronous image generation with URL and base64 output
  • Crazyrouter API-key authentication
  • stdio configuration for MCP clients

Tools3

What Crazyrouter MCP lets your agent do. Expand a tool for its parameters.

Self-reported~57 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 30d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · crazyrouter-mcp@1.0.1 (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed3Callable tools this server registers over MCP.

How Crazyrouter MCP works

What crazyrouter-mcp does

crazyrouter-mcp gives an MCP-compatible AI client three ways to use Crazyrouter:

  • Send text messages to models supported by the Chat Completions API.
  • Query the models currently available to the configured API key.
  • Generate one synchronous image through the Images API.

Model discovery can return entries for capabilities such as video, music, transcription, or text-to-speech, but those entries are informational. The MCP server does not implement those native task APIs. It also does not treat display names in the model catalogue as exact API identifiers; requests should use the model ID expected by Crazyrouter.

How it works

The server uses the Crazyrouter API at https://crazyrouter.com/v1. chat calls /v1/chat/completions, list_models reads /v1/models along with public endpoint metadata, and generate_image calls /v1/images/generations. Authentication errors and discovery failures are returned to the MCP client rather than being replaced by a fallback model list.

list_models accepts an optional category filter. Categories are derived from public endpoint metadata, with name-based detection for audio models; unrecognized types are grouped as other. The chat tool defaults to gpt-4o-mini, while image generation defaults to gpt-image-2. Model-specific request rules still apply, including supported image sizes and the choice between max_tokens and max_completion_tokens.

Setup and configuration

Node.js 22 or newer is required. Create an API key in the Crazyrouter console, then configure the MCP client to start the package with a stdio command such as:

config.json
{
  "command": "npx",
  "args": ["-y", "crazyrouter-mcp@latest"],
  "env": {
    "CRAZYROUTER_API_KEY": "YOUR_CRAZYROUTER_API_KEY"
  }
}

Claude Desktop uses its MCP configuration file, Cursor uses .cursor/mcp.json, and VS Code uses .vscode/mcp.json with a server of type stdio. Restart the client after changing its configuration, and keep the API key out of committed files. For a source build, clone the repository, run npm ci, run npm run build, and configure the resulting local dist/index.js as the command target.

Tools and capabilities

chat accepts a model and message array, with additional fields such as token limits when supported by the selected model. Use only parameters accepted by that model; unsupported optional fields can produce an HTTP 400 response.

list_models reports models available to the supplied key and can filter by category. It is useful for selecting a valid model at runtime instead of relying on a static catalogue.

generate_image accepts a prompt, model, count, and model-dependent size options. The result can include a URL, base64 image data, or both. The tool rejects an empty result rather than reporting a successful generation.

Limitations and notes

Image requests are billed according to the selected model. Model availability, pricing, quotas, and rate limits come from Crazyrouter and can change independently of the MCP package. HTTP 401 or 403 responses generally indicate an invalid key or insufficient permissions; HTTP 429 responses indicate quota or rate-limit issues.

Models that require native task-specific APIs are rejected by the chat or image tools before inference. The server does not provide video generation, music, transcription, TTS, or Midjourney operations. Use Crazyrouter's native API documentation for those workflows.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Crazyrouter MCP

crazyrouter-mcp is an MCP server that connects MCP clients to Crazyrouter and exposes chat, list_models, and generate_image tools. It sends text requests to Chat Completions, retrieves models available to your API key, and creates one synchronous image through the Images API.

Install it by configuring your MCP client to run `npx -y crazyrouter-mcp@latest` with Node.js 22 or newer. Set `CRAZYROUTER_API_KEY` in the client's environment configuration, then restart the client.

Yes, crazyrouter-mcp works with Cursor through `.cursor/mcp.json`. Configure a stdio server that runs the package with `npx` and pass the Crazyrouter key through `CRAZYROUTER_API_KEY`.

Call the `list_models` tool to retrieve models available to the configured API key. You can also provide a category filter, but discovered models requiring native task APIs are not automatically supported by the chat or image tools.

No, crazyrouter-mcp implements chat, model discovery, and synchronous image generation only. Its catalogue may show video or music models, but those operations require their own Crazyrouter task APIs.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCrazyrouter MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/crazyrouter-mcp?style=directory)](https://allmcps.com/mcp/crazyrouter-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/crazyrouter-mcp"><img src="https://allmcps.com/api/badge/crazyrouter-mcp?style=directory" alt="Crazyrouter MCP on AllMCPs" /></a>