Skip to content
rawroute
Docs / MCP Server

MCP Server

Give Claude Desktop, Windsurf, Cline and Antigravity direct tools for images, video, pricing and balance.

Install the MCP server directly from rawroute. Offline catalog tools do not require a key; live tools use your own RAWROUTE_API_KEY.

npm install -g https://rawroute.dev/downloads/rawroute-mcp.tgz

Download MCP package

{
  "mcpServers": {
    "rawroute": {
      "command": "rawroute-mcp",
      "env": {
        "RAWROUTE_API_KEY": "rr_live_your_key_here",
        "RAWROUTE_BASE_URL": "https://api.rawroute.dev"
      }
    }
  }
}

Streamable HTTP transport

For local HTTP-only clients, use --http. Do not expose the personal-key server publicly.

RAWROUTE_API_KEY=rr_live_your_key_here RAWROUTE_BASE_URL=https://api.rawroute.dev rawroute-mcp --http

Tools

generate_image
Generate images through /v1/images/generations using Nano Banana, GPT Image, Grok Imagine or Seedream 5.5, with optional save_to file output.
generate_video
Submit a video task for Veo 3.1, Wan 3.0, Kling 4.0, MiniMax H3 or Grok Imagine Video, optionally wait for completion and save to save_to.
get_video_status
Poll a running video task by ID until the generated video URL is ready.
generate_speech
Synthesize speech via /v1/audio/speech using grok-tts, with optional save_to audio file output.
chat_completion
Run a direct chat completion against any active rawroute model via /v1/chat/completions.
compare_prices
Compare rawroute unit prices against official list prices and OpenRouter (including its 5.5% credit fee).
get_balance
Read remaining USD balance and spend limit for the active API key.
list_models
List available models with unit pricing, provider count and supported API paths.

Resources

rawroute://catalog
Read-only JSON snapshot of active model IDs, unit prices, list prices and endpoint paths.
rawroute://pricing/summary
Compact pricing summary table comparing rawroute rates with official list prices and OpenRouter.

Prompts

cost-audit
Guided workflow to audit monthly token, image and video spend across models using live catalog rates.
media-director
Structured prompt template for planning multi-step image and video generation across Nano Banana, GPT Image, Veo 3.1 and MiniMax H3.