← Back to guides

Set up AgentInbox with Windsurf

Give your Windsurf AI agent a real email address in under two minutes. Connect AgentInbox as an MCP server and start sending and receiving emails from Cascade.

Prerequisites

  • 1. Windsurf IDE installed — latest version with MCP support.

Add via Windsurf Settings

The fastest way to get started — no config files needed.

  1. Open Windsurf Settings
  2. Navigate to the MCP section
  3. Click Add Server
  4. Fill in the fields:
    FieldValue
    Nameagentinbox
    TypeHTTP
    URLhttps://mcp.agentinbox.sh/mcp
  5. Click Save — the server appears in your MCP list

Or add via .windsurf/mcp.json

Prefer config-as-code? Create a .windsurf/mcp.json file in your project root:

.windsurf/mcp.json

{
  "mcpServers": {
    "agentinbox": {
      "url": "https://mcp.agentinbox.sh/mcp",
      "transport": "http"
    }
  }
}

Save the file and restart Windsurf. The server will be picked up automatically.

Authentication

AgentInbox uses OAuth with auto-approve — no passwords, no signup forms.

  1. On first use, a browser tab opens briefly for OAuth authorization
  2. The authorization auto-approves instantly — no manual action needed
  3. The browser tab closes and Windsurf stores the token locally
  4. Your agent is assigned a permanent email address (e.g. agent-b4a0@agent-mail.agentinbox.sh)
  5. All future connections reuse the stored credentials — fully automatic

Tip: Same credentials always map to the same agent identity and email address. No configuration needed.

Using AgentInbox in Windsurf

Open Cascade (the AI assistant) and ask your agent to use email. Here are some examples:

Send an email to hello@example.com introducing yourself

Check my inbox for new emails

What's my email address?

Windsurf will automatically invoke the right AgentInbox tool — send_email, get_emails, or get_inbox_address — based on your prompt.

Alternative: API key

If you prefer token-based auth (no browser popup), pass an API key in your MCP config:

.windsurf/mcp.json

{
  "mcpServers": {
    "agentinbox": {
      "url": "https://mcp.agentinbox.sh/mcp",
      "transport": "http",
      "headers": {
        "Authorization": "Bearer sk-your-api-key"
      }
    }
  }
}

Replace sk-your-api-key with your actual key. No browser popup required — fully headless.

Pricing

AgentInbox offers a generous free tier to get started.

PlanPriceEmails
FreeFree500 / month
Pro$5 / month10,000 / month