Crazyrouter Mcp Server

by xujfcn

349 downloads
Not rated
GitHub

About

# Crazyrouter MCP Server — Access 627+ AI Models with One API > **One key. 627+ models. Text, image, video, audio, music, 3D — all through MCP.** [![npm version](https://img.shields.io/npm/v/crazyrouter-mcp.svg)](https://www.npmjs.com/package/crazyrouter-mcp) [![License…

Details

Author
xujfcn
Downloads
349
Categories
Other, AI, API

- 627+ models accessible via one API key
- Image generation (DALL‑E 3, Midjourney, Flux)
- Video generation (Sora 2, Kling V2, Veo 3)
- Music and audio generation (Suno, TTS/STT)
- Competitive pricing below official provider rates
- 7 global edge nodes for low‑latency access

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Crazyrouter Mcp Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Obtain an API key from crazyrouter.com, then clone the repository, run npm install and npm run build. Configure your AI client’s MCP settings with the compiled dist/index.js file and set the CRAZYROUTER_API_KEY environment variable.

chat

Send a message to any AI model via Crazyrouter. Supports 627+ models including GPT-5, Claude Opus 4.6, Gemini 3, DeepSeek R1, Llama 4, Qwen3, Grok 4, and more.

list_models

List available AI models on Crazyrouter. Filter by category: chat, image, video, audio, or music.

generate_image

Generate images using AI models via Crazyrouter. Supports DALL-E 3, Midjourney, Flux, Stable Diffusion, and more.

generate_video

Generate videos using AI models via Crazyrouter. Supports Sora 2, Kling V2, Veo 3, Seedance, Pika, and more.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "crazyrouter mcp server": {
            "crazyrouter": {
                "command": "npx",
                "args": [
                    "-y",
                    "crazyrouter-mcp"
                ],
                "env": {
                    "CRAZYROUTER_API_KEY": "<YOUR_API_KEY>"
                }
            }
        }
    }
}

McpServers

{
    "crazyrouter": {
        "command": "npx",
        "args": [
            "-y",
            "crazyrouter-mcp"
        ],
        "env": {
            "CRAZYROUTER_API_KEY": "<YOUR_API_KEY>"
        }
    }
}

Crazyrouter MCP Server — Access 627+ AI Models with One API

> One key. 627+ models. Text, image, video, audio, music, 3D — all through MCP.

npm version
License: MIT
Node.js
MCP Protocol
npm

An MCP (Model Context Protocol) server that gives your AI assistant access to 627+ AI models through Crazyrouter — the unified AI API gateway. Chat with GPT-5, generate images with DALL-E 3, create videos with Sora 2, compose music with Suno V4, and more — all from a single API key.

---

✨ Features

- 🌐 627+ Models, One API — GPT-5, Claude Opus 4.6, Gemini 3, DeepSeek R1, Llama 4, Qwen3, Grok 4, and hundreds more
- 🎨 Image Generation — DALL-E 3, Midjourney, Flux, Stable Diffusion, Nano Banana Pro
- 🎬 Video Generation — Sora 2, Kling V2, Veo 3, Seedance, Pika
- 🎵 Music Generation — Suno V4, Chirp
- 🗣️ Text-to-Speech & Speech-to-Text — Multiple TTS/STT engines
- 💰 Competitive Pricing — Below official rates for most models
- 🌍 7 Global Edge Nodes — Low latency worldwide
- 🔄 OpenAI + Anthropic + Gemini Protocol Compatible — Drop-in replacement
- ⚡ Credits Never Expire — Pay once, use anytime

---

🚀 Quick Start

1. Get Your API Key

Sign up at crazyrouter.com and grab your API key.

2. Install

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

3. Configure Your AI Client

<details>
<summary><strong>Claude Desktop</strong></summary>

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "crazyrouter": {
      "command": "node",
      "args": ["/path/to/crazyrouter-mcp/dist/index.js"],
      "env": {
        "CRAZYROUTER_API_KEY": "your-api-key-here"
      }
    }
  }
}

</details>

<details>
<summary><strong>Cursor</strong></summary>

Edit .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "crazyrouter": {
      "command": "node",
      "args": ["/path/to/crazyrouter-mcp/dist/index.js"],
      "env": {
        "CRAZYROUTER_API_KEY": "your-api-key-here"
      }
    }
  }
}

</details>

<details>
<summary><strong>VS Code (Copilot)</strong></summary>

Add to your VS Code settings.json:

{
  "mcp": {
    "servers": {
      "crazyrouter": {
        "command": "node",
        "args": ["/path/to/crazyrouter-mcp/dist/index.js"],
        "env": {
          "CRAZYROUTER_API_KEY": "your-api-key-here"
        }
      }
    }
  }
}

</details>

<details>
<summary><strong>Windsurf</strong></summary>

Edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "crazyrouter": {
      "command": "node",
      "args": ["/path/to/crazyrouter-mcp/dist/index.js"],
      "env": {
        "CRAZYROUTER_API_KEY": "your-api-key-here"
      }
    }
  }
}

</details>

<details>
<summary><strong>OpenClaw</strong></summary>

Add to your OpenClaw MCP config:

{
  "mcpServers": {
    "crazyrouter": {
      "command": "node",
      "args": ["/path/to/crazyrouter-mcp/dist/index.js"],
      "env": {
        "CRAZYROUTER_API_KEY": "your-api-key-here"
      }
    }
  }
}

</details>

---

🛠️ Available Tools

| Tool | Description | Key Parameters |
|------|-------------|----------------|
| chat | Chat with any AI model | model, messages, temperature |
| list_models | List available models by category | category (chat/image/video/audio/music) |
| generate_image | Generate images with AI | prompt, model, size |
| generate_video | Generate videos with AI | prompt, model |

Usage Examples

Chat with any model:
> "Use the chat tool to ask GPT-5 to explain quantum computing"

Generate an image:
> "Use generate_image to create a sunset over mountains with DALL-E 3"

Generate a video:
> "Use generate_video with Kling V2 to create a 5-second clip of ocean waves"

Discover models:
> "Use list_models to show me all available image generation models"

---

📋 Supported Models

💬 Chat / Text Models

| Provider | Models |
|----------|--------|
| OpenAI | GPT-5, GPT-5-mini, GPT-4.1, GPT-4o, o3, o4-mini |
| Anthropic | Claude Opus 4.6, Claude Sonnet 4, Claude Haiku 3.5 |
| Google | Gemini 3 Pro, Gemini 2.5 Flash, Gemini 2.0 |
| DeepSeek | DeepSeek R1, DeepSeek V3 |
| Meta | Llama 4 Scout, Llama 4 Maverick |
| Alibaba | Qwen3 235B, Qwen3 32B, Qwen3 Coder |
| xAI | Grok 4, Grok 3 |
| Mistral | Mistral Large, Codestral |
| And more... | 600+ chat models available |

🎨 Image Generation Models

| Model | Description |
|-------|-------------|
| DALL-E 3 | OpenAI's latest image model |
| Midjourney | Industry-leading artistic image generation |
| Flux Pro 1.1 Ultra | Black Forest Labs' flagship model |
| Flux Kontext Pro/Max | Contextual image generation |
| Stable Diffusion 3.5 Large | Stability AI's open model |
| Stable Diffusion XL | Classic high-quality generation |
| Imagen 4.0 | Google's latest image model |
| Imagen 3.0 | Google's proven image model |

🎬 Video Generation Models

| Model | Description |
|-------|-------------|
| Sora 2 | OpenAI's video generation model |
| Kling V2 | Kuaishou's cinematic video model |
| Veo 3 | Google's video generation model |
| Seedance 1.5 Pro | ByteDance's dance video model |
| Pika 1.5 | Creative video generation |
| Runway VIP | Professional video synthesis |
| MiniMax Hailuo 2.3 | MiniMax's video model |

🎵 Music & Audio Models

| Model | Description |
|-------|-------------|
| Suno Music | AI music composition |
| Suno V3 | Music generation model |
| TTS-1 / TTS-1-HD | OpenAI text-to-speech |
| GPT-4o Mini TTS | Latest OpenAI TTS |
| Gemini TTS | Google text-to-speech |
| Whisper-1 | Speech-to-text transcription |

> 📖 Full model list: crazyrouter.com/models

---

🔧 Configuration

Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| CRAZYROUTER_API_KEY | ✅ | Your Crazyrouter API key |

API Endpoints

Crazyrouter is OpenAI-compatible, meaning any tool or library that works with OpenAI can work with Crazyrouter by simply changing the base URL:

Base URL: https://crazyrouter.com/v1

This MCP server uses the following endpoints:
- POST /v1/chat/completions — Chat completions
- GET /v1/models — List available models
- POST /v1/images/generations — Image generation

---

🏗️ Development

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.