# Connect Windsurf to Duang MCP (134 Providers in 4 Tools)

> Connect Windsurf Cascade with one JSON block—stay far under Cascade's MCP tool ceiling.

- **Canonical URL**: https://duang.ai/mcp/for/windsurf
- **Remote MCP endpoint**: `https://api.duang.ai/mcp`
- **Transport**: Remote HTTP MCP (serverUrl)
- **Config location**: `~/.codeium/windsurf/mcp_config.json`
- **Coverage**: 3,012 live pay-per-call & free data APIs across 50 platforms + 79 team apps (134 providers total)
- **Billing**: New accounts get $1 free welcome credit on their first team (no card required); top up from $10 USD via Stripe with no auto-recharge. Failed upstream calls cost $0.

## Quick Setup (~/.codeium/windsurf/mcp_config.json)

```
{
  "mcpServers": {
    "duang": {
      "serverUrl": "https://api.duang.ai/mcp"
    }
  }
}
```

## 3-Step Setup

1. **Edit mcp_config.json** — Paste the serverUrl block in Cascade → Configure MCP.
2. **Refresh & sign in** — Click Refresh in Cascade and approve OAuth in browser.
3. **Call live APIs** — Start with $1 free credit—zero monthly vendor plans.

## Why 4 Meta-Tools Matter

Windsurf caps total active MCP tools across servers. Duang's 4 meta-tools leave room for your other IDE tools while unlocking live data on demand.

- `discover`: Find matching capabilities and providers with 1–2 keywords.
- `inspect`: Load exact input schema and live per-call USD price for one target.
- `call`: Execute safely with an idempotency key and receive normalized output + itemized USD receipt.
- `get_call`: Poll pending calls or inspect past receipts without double-billing.

## Frequently Asked Questions

### Why does Windsurf ignore the url key?

Windsurf Cascade requires "serverUrl" (not "url") for remote Streamable HTTP MCP servers: "serverUrl": "https://api.duang.ai/mcp".

### Server stays disconnected after saving mcp_config.json?

Click Refresh in Cascade's MCP panel or reload the Windsurf window so it re-reads the file and starts OAuth.

### Will 134 providers slow down Windsurf?

No. Duang exposes only 4 meta-tools (discover, inspect, call, get_call) instead of dumping hundreds of tool schemas into every turn. Windsurf loads schemas on demand only when needed.

### Does Windsurf ever see my API keys?

Never. Your 79 team apps stay encrypted in Duang's vault, and managed data calls (3,012 live APIs across 50 platforms) bill per call in exact USD with $1 free for new teams and $0 on upstream failures.
