MailMCP MailMCP

Connect Claude Code to your emails

Why connect Claude Code to your emails?

Claude Code is Anthropic's command-line interface for Claude. If you are a developer who lives in the terminal, you already use it to write code, debug issues and analyze files. But every time you need to check an email, reply to a colleague or find a specific message, you have to leave your terminal and open a browser or email client. That context switch costs you time and focus.

By connecting MailMCP to Claude Code, you bring your entire inbox into the command line. Ask Claude to read your latest emails, search for a specific thread, draft a reply, send a message or organize your folders — all without leaving your terminal. It works on macOS, Windows and Linux, wherever Claude Code runs.

The setup is straightforward: add a few lines to your Claude Code MCP settings file, and email tools become available in every Claude Code session. No external dependencies, no server to deploy. MailMCP handles the IMAP/SMTP connection securely via the MCP protocol, so you can focus on what matters — your work.

Connect Claude Code to MailMCP

Claude Code supports MCP natively. Configuration is done via the settings file or CLI.

1

Open the MCP settings file

Claude Code stores MCP server configuration in .claude/settings.json in your project directory, or in the global settings. You can also use the /mcp slash command inside Claude Code to add a server interactively.

Project settings

.claude/settings.json

Global settings

~/.claude/settings.json
2

Add the MailMCP configuration

Add or edit the mcpServers block with your credentials:

{
  "mcpServers": {
    "mailmcp": {
      "url": "https://mailmcp.io/mcp/VOTRE_CLIENT_ID",
      "headers": {
        "Authorization": "Bearer VOTRE_CLIENT_SECRET"
      }
    }
  }
}
3

Restart Claude Code

Close and reopen Claude Code, or start a new session. The MCP tools will be loaded automatically. You can verify by typing /mcp to list active servers.

4

Test it!

Try a command:

« Summarize my latest unread emails »

Why use MailMCP with Claude Code?

Stay in the terminal

Read, reply and manage emails without leaving the command line. No context switching.

Cross-platform

Works on macOS, Windows and Linux — wherever Claude Code runs.

Native MCP support

Claude Code supports MCP natively — no plugin or extension required.

Developer workflow

Perfect for developers who want to handle email alongside coding tasks in one CLI session.

Setup in 2 minutes

One JSON file to edit, restart Claude Code, and you are connected.

MailMCP offers a free plan to get started. For unlimited mailboxes and full sending capabilities, Pro plans start at 1.99 EUR/month.

Frequently asked questions

Does Claude Code support MCP email access?

Yes. Claude Code has built-in support for the Model Context Protocol (MCP). You can add MailMCP as an MCP server in your settings file, and email tools become available directly in your terminal sessions. No plugin or external tool required.

Can I manage emails from the terminal with Claude Code?

Absolutely. With MailMCP connected to Claude Code, you can read your inbox, search for specific emails, compose and send replies, schedule messages, and manage folders — all from the command line. Claude understands natural language, so you just describe what you need.

What is the difference between Claude Desktop and Claude Code for email?

Claude Desktop is the graphical application with a chat interface, while Claude Code is the command-line tool for developers. Both support MCP and work with MailMCP. The configuration is similar — a JSON settings file with your MCP server URL and credentials. Choose the one that fits your workflow: GUI or terminal.

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 }}