Windsurf · about 2 min

Give Windsurf your inbox, read-only

Cascade reads remote MCP servers from one config file. Add Emailgents and it can pull the customer thread or the vendor receipt into the task.

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "emailgents": {
      "serverUrl": "https://emailgents.com/mcp"
    }
  }
}

server: https://emailgents.com/mcp

Setup

Sign in happens in the browser once; the client remembers it.

  1. 01
    Connect your mailboxes in EmailgentsSign up at emailgents.com and add your accounts under Mailboxes.
  2. 02
    Add the serverOpen Windsurf Settings, Cascade, MCP Servers, choose View raw config and add the snippet below. Windsurf uses serverUrl for remote servers.
  3. 03
    Refresh and sign inPress refresh in the MCP panel; Windsurf opens the Emailgents sign-in. Approve once.
  4. 04
    Ask CascadeCascade now lists the Emailgents tools; ask about your mail in any conversation.

Things to ask

  • “Find the ticket the customer emailed about the export failing and list their steps.”
  • “Open the thread with the agency and summarize the open questions.”
  • “Get the shipping confirmation for the hardware order and tell me the tracking number.”

Good to know

  • Windsurf was renamed Devin Desktop in 2026; the configuration file path still lives under ~/.codeium.
  • The field is serverUrl, not url; a wrong key makes the server appear connected with zero tools.

Windsurf questions

Do I need an API key?

Not for MCP. You sign in to Emailgents in the browser when the client connects and approve once. API keys exist for scripts that use the REST API instead.

Which inboxes will it see?

Every mailbox you have connected in Emailgents: Gmail and Google Workspace, Outlook and Microsoft 365, iCloud, Yahoo, Fastmail, AOL, Zoho, GMX, WEB.DE and any IMAP server. Add or remove mailboxes in Emailgents and the agent sees the change on its next call.

Can it read several accounts at once?

Yes. search_messages and inbox_overview cover every connected mailbox by default. Pass account_ids to narrow to one; each result carries its account so the agent can tell them apart.

Can it send, delete or move my mail?

No. The tool set is read-only apart from set_flags, which toggles read and starred. An instruction hidden inside an email cannot make the agent send anything on your behalf, and every call is listed on your Activity page.

Other agents

Your agents can read mail in five minutes.

One account, as many mailboxes as you need, every agent you run.