MailMCP MailMCP

Connect VS Code to your emails

Why connect VS Code to your emails?

VS Code is where you spend most of your working hours. With GitHub Copilot already helping you write code, it makes sense to bring your email management into the same environment. Switching to a mail client to check messages or reply to a teammate interrupts your concentration and fragments your workflow.

By connecting MailMCP to VS Code via GitHub Copilot Agent mode, you unlock the ability to read your inbox, search for emails, compose replies, and organize messages — all from the Copilot Chat panel. Ask Copilot to summarize your unread emails or draft a response, and it handles it alongside your code.

MailMCP connects your IMAP/SMTP mailbox to VS Code through the MCP protocol. A single addition to your settings.json file is all it takes. No extension to install, no server to run — just paste your credentials and start using email tools in Copilot.

Connect VS Code (GitHub Copilot) to MailMCP

VS Code supports MCP via GitHub Copilot in Agent mode.

1

Open JSON settings

Ctrl+Shift+P > Preferences: Open User Settings (JSON). Add:

"mcp": {
  "servers": {
    "mailmcp": {
      "type": "sse",
      "url": "https://mailmcp.io/mcp/VOTRE_CLIENT_ID",
      "headers": {
        "Authorization": "Bearer VOTRE_CLIENT_SECRET"
      }
    }
  }
}
2

Use in Copilot Chat

Open Copilot Chat in Agent mode and MailMCP will be available as a tool.

Why use MailMCP with VS Code?

Copilot-native experience

Email tools appear alongside your existing Copilot tools in Agent mode.

No extension needed

Just add a few lines to your settings.json — VS Code handles the MCP connection.

Code and email side by side

Review a pull request and reply to a team email in the same window.

15 email tools available

Read, send, search, organize, schedule — all accessible through natural language.

Start free with 1 mailbox and 20 calls per day. Upgrade to Pro from 1.99 EUR/month for unlimited mailboxes.

Frequently asked questions

Can GitHub Copilot read my emails?

Yes, when you connect MailMCP to VS Code. GitHub Copilot in Agent mode can use MCP tools, and MailMCP provides email reading, searching, and management capabilities. Your emails are accessed in real time through a secure proxy — nothing is stored on MailMCP servers.

How to connect VS Code to email via MCP?

Add the MailMCP server configuration to your VS Code settings.json file under the MCP servers section. Include the SSE endpoint URL and your API key from your MailMCP dashboard. Restart VS Code, and the email tools will appear in Copilot Agent mode automatically.

Does VS Code MCP work with any email provider?

MailMCP works with any email provider that supports IMAP and SMTP, which includes virtually all providers: Gmail, Outlook, Yahoo, OVH, Fastmail, Infomaniak, and custom domain email. You configure your email credentials once in your MailMCP dashboard, and VS Code connects through the MCP protocol.

Can I send emails from VS Code?

Yes. With MailMCP on a Pro plan, you can compose and send emails directly from VS Code using Copilot Agent mode. Just describe what you want to send in natural language, and Copilot will use the MailMCP send tool to deliver your message through your own SMTP server.

Prêt à connecter vos emails à l'IA ?

Créez votre compte en 30 secondes et récupérez vos identifiants MCP.

Démarrer gratuitement

MailMCP Assistant

Powered by DeepSeek

{{ msg.content }}
{{ msg.content }}