IMAP MCP Server

IMAP MCP Server

Enables comprehensive interaction with IMAP email accounts through 38 tools for reading, searching, and organizing messages. It supports advanced features like real-time mailbox monitoring via IDLE watch and automated email archiving.

Category
Visit Server

README

IMAP MCP Server

Status: Getestet

MCP (Model Context Protocol) Server für IMAP Email-Operationen.

Installation

cd IMAP-MCP
pip install -e .

Konfiguration

  1. Kopiere config.json.example zu config.json
  2. Trage deine IMAP-Zugangsdaten ein:
{
  "imap": {
    "host": "imap.example.com",
    "port": 993,
    "secure": true
  },
  "credentials": {
    "username": "deine-email@example.com",
    "password": "dein-app-passwort"
  }
}

Verwendung

Als MCP Server starten

imap-mcp

In Claude Code einbinden

In ~/.claude/settings.json:

{
  "mcpServers": {
    "imap": {
      "command": "python",
      "args": ["-m", "imap_mcp.server"],
      "cwd": "/pfad/zu/IMAP-MCP/src"
    }
  }
}

Funktionen (38 Tools)

Verbindung

Funktion Beschreibung
connect IMAP-Verbindung aufbauen
authenticate Login mit Username/Passwort
disconnect Verbindung schliessen
auto_connect Mit config.json Credentials verbinden

Mailboxen

Funktion Beschreibung
list_mailboxes Alle Ordner auflisten
select_mailbox Ordner oeffnen
create_mailbox Neuen Ordner erstellen
get_mailbox_status Status (Anzahl, Ungelesen, etc.)

Emails lesen

Funktion Beschreibung
fetch_emails Emails abrufen mit Filtern
get_email Komplette Email per UID
get_email_headers Nur Header (schneller)
get_email_body Body (text/html)
get_attachments Anhaenge auflisten
download_attachment Anhang herunterladen (base64)
get_thread Email-Thread/Konversation

Suche

Funktion Beschreibung
search_emails Freie Suche (IMAP SEARCH)
search_by_sender Nach Absender
search_by_subject Nach Betreff
search_by_date Nach Datum
search_unread Alle ungelesenen
search_flagged Alle markierten

Aktionen

Funktion Beschreibung
mark_read Als gelesen markieren
mark_unread Als ungelesen markieren
flag_email Flag hinzufuegen
unflag_email Flag entfernen
move_email In anderen Ordner verschieben
copy_email In anderen Ordner kopieren
archive_email Archivieren
save_draft Entwurf speichern

Statistiken

Funktion Beschreibung
get_unread_count Anzahl ungelesener Emails
get_total_count Gesamtanzahl

Cache & Watch

Funktion Beschreibung
get_cached_overview Gecachte Uebersicht
refresh_cache Cache aktualisieren
start_watch IDLE Watch starten
stop_watch IDLE Watch stoppen
idle_watch Einzelne Mailbox beobachten

Auto-Archive

Funktion Beschreibung
get_auto_archive_list Auto-Archive Sender auflisten
add_auto_archive_sender Sender hinzufuegen
remove_auto_archive_sender Sender entfernen
reload_auto_archive Config neu laden

Lizenz

MIT

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