io.github.p-w-4-z/inbox-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.p-w-4-z/inbox-mcpshow me unread emails from the last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
inbox-mcp
Provider-agnostic email MCP server for AI assistants. Connect any IMAP mailbox to Claude Desktop, Cursor, VS Code, or any MCP-compatible client.
Features
8 email tools: get_summary, list_messages, read_message, search, list_folders, mark_read, move_message, create_folder
Provider auto-detection: Automatically configures Gmail, Outlook, GMX from your email address
Any IMAP server: Works with any standard IMAP provider out of the box
Read-only mode: Optional safety mode that disables all write operations
Security-first: No delete operations exposed. Ever.
Related MCP server: productivity-mcp
Quick Start
pip install inbox-mcpConfiguration
Set two environment variables:
export INBOX_MCP_EMAIL="you@gmail.com"
export INBOX_MCP_PASSWORD="your-app-password"All Environment Variables
Variable | Required | Default | Description |
| Yes | — | Your email address |
| Yes | — | Password or app password |
| No | Auto-detected | IMAP server hostname |
| No | 993 | IMAP port |
| No | Auto-detected | Force provider: gmail, outlook, gmx, generic |
| No | false | Set to |
Provider Auto-Detection
Email Domain | Provider | IMAP Host |
gmail.com, googlemail.com | gmail | imap.gmail.com |
outlook.com, hotmail.com, live.com | outlook | outlook.office365.com |
gmx.net, gmx.at, gmx.de, gmx.ch, gmx.com | gmx | imap.gmx.net |
yahoo.com, ymail.com, rocketmail.com | yahoo | imap.mail.yahoo.com |
anything else | generic | imap.{domain} |
Gmail Setup
Gmail requires an App Password:
Enable 2-Step Verification on your Google account
Go to App Passwords
Generate a password for "Mail"
Use that as
INBOX_MCP_PASSWORD
Client Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"inbox": {
"command": "inbox-mcp",
"env": {
"INBOX_MCP_EMAIL": "you@gmail.com",
"INBOX_MCP_PASSWORD": "your-app-password"
}
}
}
}Claude Code
claude mcp add -e INBOX_MCP_EMAIL=you@gmail.com -e INBOX_MCP_PASSWORD=your-app-password inbox inbox-mcpCursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
{
"mcpServers": {
"inbox": {
"command": "inbox-mcp",
"env": {
"INBOX_MCP_EMAIL": "you@gmail.com",
"INBOX_MCP_PASSWORD": "your-app-password"
}
}
}
}Running Directly
# As entry point
inbox-mcp
# As module
python -m inbox_mcpTools
Tool | Description | Write? |
| Inbox stats: total, unread, last 7 days | No |
| List messages with filters (all, unread, today, week) | No |
| Full message body by sequence number | No |
| Search by subject or sender | No |
| List all IMAP folders/labels | No |
| Set messages as read | Yes |
| Move messages between folders | Yes |
| Create a new IMAP folder | Yes |
Write tools are disabled when INBOX_MCP_READ_ONLY=true.
Multiple Accounts
Run multiple instances with different names:
{
"mcpServers": {
"work-email": {
"command": "inbox-mcp",
"env": {
"INBOX_MCP_EMAIL": "you@company.com",
"INBOX_MCP_PASSWORD": "work-password",
"INBOX_MCP_HOST": "mail.company.com"
}
},
"personal-email": {
"command": "inbox-mcp",
"env": {
"INBOX_MCP_EMAIL": "you@gmail.com",
"INBOX_MCP_PASSWORD": "gmail-app-password"
}
}
}
}License
Dual-licensed:
AGPL-3.0 — free for open-source use (see LICENSE)
Commercial — for proprietary use (see LICENSE-COMMERCIAL)
If your project is open-source, you can use inbox-mcp under AGPL-3.0 at no cost. For proprietary/closed-source use, contact hello@breact.com for a commercial license.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA generic IMAP and SMTP MCP server that enables AI agents to interact with email accounts for reading, searching, and sending messages. It provides high-level tools for managing email workflows like daily digests and folder organization across any standard email provider.1MIT
- AlicenseBqualityDmaintenanceA local MCP server that provides LLM clients with read/write access to email and calendar data from Gmail, iCloud, and generic IMAP providers. It runs entirely on your machine, keeping data private while enabling email management, calendar operations, and task handling through natural language.39MIT
- Alicense-qualityBmaintenanceAn MCP server that receives emails on your domain and allows AI assistants to search, read, and manage them via natural language queries.1,276MIT
- Alicense-qualityCmaintenanceAn MCP server that gives AI assistants comprehensive access to Apple Mail accounts, enabling email discovery, reading, flag management, and server-side message retrieval.MIT
Related MCP Connectors
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Email for AI agents — send, receive as a webhook, manage domains, templates, routing.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/p-w-4-z/inbox-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server