MCP servers · Vercel AI Gateway · MCP server
Connect Windsurf to Vercel AI Gateway
One line gives Windsurf your Vercel AI Gateway account as tools: 5 endpoints, chat, models, embed, called with your own connection. No key in the prompt, a receipt for every call, revoke Windsurf's access alone any time.
Three steps
- Create a free 0n3 account and connect Vercel AI Gateway. Paste a key or sign in; it lands in your vault, encrypted.
- Install 0n3 into Windsurf. The mcp_config.json block.
- Ask Windsurf: whoami. Then: "Chat completion in Vercel AI Gateway".
Write it yourself · ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"0n3": {
"serverUrl": "https://0n3.app/mcp",
"headers": {
"Authorization": "Bearer <your 0n token>"
}
}
}
}The line above carries a placeholder; 0n3.app/install mints a real key named for Windsurf and fills it in.
What Windsurf can then do in Vercel AI Gateway
Chat · Chat completions1
Chat completion
POST /chat/completionsModels · List available models2
List models
GET /modelsGet a model
GET /models/{model}Embed · Text embeddings0
Text embeddings
More · Everything else this app exposes.2
Create an embedding
POST /embeddingsCreate a response
POST /responsesVercel AI Gateway in other AI clients
Claude Code + Vercel AI GatewayMCP server + skillClaude (desktop & claude.ai) + Vercel AI GatewayconnectorChatGPT + Vercel AI Gatewayconnector · GPT actionGrok Bot (xAI) + Vercel AI Gatewaycustom connectorCodex CLI + Vercel AI GatewayMCP serverGemini CLI + Vercel AI GatewayMCP serverCursor + Vercel AI GatewayMCP serverVS Code (Copilot) + Vercel AI GatewayMCP server
