---
title: "Windsurf + rawroute: Custom API & MCP Server"
canonical: "https://rawroute.dev/integrations/windsurf"
lang: "en"
last_verified: "2026-11-28"
description: "Wire @rawroute/mcp and https://api.rawroute.dev/v1 into Windsurf to generate images, Veo 3.1/Kling 4.0 video, speech, and call 36 models at 50–70% below list."
---

# Use rawroute with Windsurf.

Connecting rawroute to Windsurf unlocks both custom OpenAI-compatible API routing (https://api.rawroute.dev/v1) and the official @rawroute/mcp server—giving your Windsurf workspace direct image generation (Nano Banana 2 at $0.035), video rendering (Veo 3.1, Wan 3.0, Kling 4.0), audio TTS, and live price comparison on one prepaid key.

## Setup Steps

1. Open Windsurf MCP settings (~/.codeium/windsurf/mcp_config.json).
2. Add the rawroute MCP server entry with your RAWROUTE_API_KEY.
3. Reload MCP servers in Windsurf to access all 8 multimodal, chat, and balance tools.

### mcp_config.json

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

## When NOT to use rawroute

- Windsurf built-in autocomplete credits remain managed by Windsurf directly; rawroute powers your MCP tools and custom API workloads.
