VS Code · about 2 min

Give VS Code your inbox, read-only

Copilot agent mode speaks MCP. Add Emailgents and it can read the bug report, the contract or the receipt without leaving the editor.

.vscode/mcp.json
{
  "servers": {
    "emailgents": {
      "type": "http",
      "url": "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 serverRun MCP: Add Server from the Command Palette and choose HTTP, or add the snippet below to .vscode/mcp.json in your workspace or user profile.
  3. 03
    Start and sign inClick Start above the server entry; VS Code opens the Emailgents sign-in. Approve once.
  4. 04
    Use agent modeIn Copilot Chat switch to Agent mode, make sure the Emailgents tools are selected, and ask about your mail.

Things to ask

  • “Find the stack trace the customer pasted in their email and open the matching file.”
  • “List the open questions in the latest thread with the client.”
  • “Pull the CSV from the analytics email and generate a chart.”

Good to know

  • VS Code stores the OAuth session in its account manager; sign out from the Accounts menu if you want to switch Emailgents users.
  • Workspace-level mcp.json can be committed so a team shares the server while each person signs in on their own.

VS Code 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.