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.
Quick Start
pip install inbox-mcp
Configuration
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 |
|---|---|---|---|
INBOX_MCP_EMAIL |
Yes | — | Your email address |
INBOX_MCP_PASSWORD |
Yes | — | Password or app password |
INBOX_MCP_HOST |
No | Auto-detected | IMAP server hostname |
INBOX_MCP_PORT |
No | 993 | IMAP port |
INBOX_MCP_PROVIDER |
No | Auto-detected | Force provider: gmail, outlook, gmx, generic |
INBOX_MCP_READ_ONLY |
No | false | Set to true to disable write operations |
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 |
| 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-mcp
Cursor / 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_mcp
Tools
| Tool | Description | Write? |
|---|---|---|
get_summary |
Inbox stats: total, unread, last 7 days | No |
list_messages |
List messages with filters (all, unread, today, week) | No |
read_message |
Full message body by sequence number | No |
search |
Search by subject or sender | No |
list_folders |
List all IMAP folders/labels | No |
mark_read |
Set messages as read | Yes |
move_message |
Move messages between folders | Yes |
create_folder |
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.
Metadata
Release files for inbox-mcp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inbox_mcp-1.0.0.tar.gz | 25.8 kB | Without provenance | Details for inbox_mcp-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inbox_mcp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for inbox_mcp-1.0.0-py3-none-any.whl |
Total release size: 51.6 kB
Release files / inbox_mcp-1.0.0.tar.gz
| Download URL | inbox_mcp-1.0.0.tar.gz |
|---|---|
| Size | 25.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
789d72e6e9eccf794e82afe7c1c31581827f2a377b34e9ef766ebf78ab225356
|
|
BLAKE2b-256 checksum How to use checksums |
4ec456da3c35a614ba21189263aca37588012a64e31931be33bf826ac21e88c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / inbox_mcp-1.0.0-py3-none-any.whl
| Download URL | inbox_mcp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8269bf2eb741b963588574d93ca62e6bd5bfe97a9970f975ade026408302661
|
|
BLAKE2b-256 checksum How to use checksums |
efa06cb8ed743bf7053f27cc358f79d7fb77edea140286bbfb67cb257e780707
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Security for inbox-mcp 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.