io.github.p-w-4-z/inbox-mcp

io.github.p-w-4-z/inbox-mcp

Provider-agnostic email MCP server that connects any IMAP mailbox to AI assistants, enabling email management through natural language.

Category
Visit Server

README

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
yahoo.com, ymail.com, rocketmail.com yahoo imap.mail.yahoo.com
anything else generic imap.{domain}

Gmail Setup

Gmail requires an App Password:

  1. Enable 2-Step Verification on your Google account
  2. Go to App Passwords
  3. Generate a password for "Mail"
  4. 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:

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.

<!-- mcp-name: io.github.p-w-4-z/inbox-mcp -->

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured