# SSE Proxy

For clients that only support SSE transport (Cursor, Windsurf). You need to start a local SSE proxy server first.

```bash
npx -y supergateway \
  --streamableHttp https://api.anysearch.com/mcp \
  --outputTransport sse \
  --port 8000 \
  --oauth2Bearer <your_api_key>
```

```json
{
  "mcpServers": {
    "anysearch": {
      "type": "sse",
      "url": "http://localhost:8000/sse"
    }
  }
}
```

```json
{
  "mcpServers": {
    "anysearch": {
      "serverUrl": "http://localhost:8000/sse"
    }
  }
}
```

> Note: The SSE proxy must remain running while the agent is active. Consider running it as a background service. Omit --oauth2Bearer if you don't have an API key.
