MailMCP

MailMCP

Enables reading, sending, and managing emails via IMAP/SMTP through natural language, including listing folders, searching, moving emails, and sending attachments.

Category
Visit Server

README

MailMCP

MCP-Server für den Zugriff auf ein E-Mail-Postfach via IMAP/SMTP. Geschrieben in Node.js / TypeScript. Läuft als stdio-Prozess direkt auf dem Host.

Features

  • Alle Ordner des Postfachs auflisten
  • E-Mails in einem beliebigen Ordner auflisten (neuste zuerst)
  • Vollständigen Inhalt einer E-Mail lesen (Text, HTML, Anhänge)
  • E-Mails nach Betreff, Absender oder Body durchsuchen
  • E-Mail in anderen Ordner verschieben
  • E-Mails senden (inkl. CC, BCC, HTML, Anhänge als Base64)
  • Lokale Datei direkt als E-Mail-Anhang versenden
  • Konfigurierbarer INBOX-Ordner

Verfügbare Tools

Tool Beschreibung
list_folders Alle IMAP-Ordner auflisten
list_emails E-Mails in einem Ordner auflisten (mit Filter: ungelesen)
get_email Vollständige E-Mail per UID lesen
search_emails E-Mails nach Stichwort durchsuchen
move_email E-Mail in anderen Ordner verschieben
send_email E-Mail senden (To, Subject, Text, optional CC/BCC/HTML/Anhänge als Base64)
send_local_file Lokale Datei vom Host-Dateisystem als Anhang versenden
get_inbox_config Aktuelle Serverkonfiguration anzeigen

Setup

1. Abhängigkeiten installieren & bauen

npm install
npm run build

2. Konfiguration

cp .env.example .env

Werte in .env anpassen:

Variable Beschreibung Standard
MAIL_HOST IMAP-Server
MAIL_PORT IMAP-Port 993
MAIL_SSL IMAP SSL true
MAIL_USER E-Mail-Adresse
MAIL_PASSWORD Passwort
MAIL_INBOX Standard-Posteingang INBOX
MAIL_MAX_EMAILS Max. E-Mails pro Abfrage 50
SMTP_HOST SMTP-Server
SMTP_PORT SMTP-Port 587
SMTP_SSL SMTP SSL (true = Port 465) false
SMTP_FROM_NAME Absendername

Die .env-Datei wird automatisch geladen — es sind keine Umgebungsvariablen im MCP-Client nötig.

MCP-Integration (mcporter / Claude / VS Code)

{
  "mcpServers": {
    "mailmcp": {
      "command": "node /pfad/zu/mailmcp/dist/server.js"
    }
  }
}

Dateistruktur

mailmcp/
├── src/
│   ├── server.ts        # MCP Server & Tool-Definitionen
│   ├── imap-client.ts   # IMAP-Verbindung & E-Mail-Parsing
│   ├── smtp-client.ts   # SMTP-Versand via nodemailer
│   └── config.ts        # Konfiguration via .env
├── package.json
├── tsconfig.json
├── .env                 # Credentials (nicht einchecken!)
├── .env.example
└── .gitignore

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