JMAP MCP Server
JMAP-MCP
Читайте электронные письма через MCP!
Введение
JMAP-MCP — это коннектор, разработанный для взаимодействия с сервером JMAP (JSON Mail Access Protocol), позволяющий читать электронные письма через Model Context Protocol (MCP). Этот проект специально демонстрирует интеграцию с сервером Fastmail JMAP.
Related MCP server: email-mcp
Настраивать
Предварительные условия : убедитесь, что у вас установлен Node.js.
Клонировать репозиторий : клонировать этот репозиторий на локальный компьютер.
Установка зависимостей : Перейдите в каталог проекта и запустите:
npm install
Конфигурация токена API
Вам необходимо настроить свой API-токен JMAP для аутентификации на вашем почтовом сервере (например, Fastmail). Получите свой API-токен из настроек вашего сервера.
Задайте переменные среды JMAP_SESSION_URL и JMAP_TOKEN при запуске приложения.
Конфигурация МКП
Чтобы использовать JMAP-MCP, вам необходимо настроить его как mcpServer в вашем файле конфигурации MCP. Вот пример конфигурации:
{
"mcpServers": {
"emails": {
"command": "npx",
"args": ["-y", "@jahfer/jmap-mcp-server"],
"env": {
"JMAP_SESSION_URL": "https://api.fastmail.com/jmap/session", // for example
"JMAP_TOKEN": "<your-jmap-token>"
}
}
}
}Использование
После настройки в MCP вы можете использовать команды или функции MCP, которые взаимодействуют с определением сервера, для чтения ваших писем через протокол JMAP.
Available Tools
3 toolsget_email_contentD
Inputs: inputSchema (required).
get_mailboxesD
Inputs: inputSchema (required).
search_emailsD
Inputs: inputSchema (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: get_email_content retrieves specific email content, get_mailboxes lists mailboxes, and search_emails searches across emails. There is no overlap in functionality, making it easy for an agent to select the right tool for each task.
All tool names follow a consistent verb_noun pattern with snake_case (get_email_content, get_mailboxes, search_emails). The naming is predictable and readable throughout the set.
With only 3 tools, the set feels thin for an email server, as it lacks operations like creating, updating, or deleting emails or mailboxes. While the tools cover basic retrieval and search, the scope is limited and may not support full email workflows.
The tool surface is significantly incomplete for an email domain, missing essential CRUD operations such as send_email, delete_email, create_mailbox, or update_email. This will likely cause agent failures when attempting comprehensive email management tasks.
Maintenance
Related MCP Connectors
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
MCP server for Nylas — read email, calendars, events and contacts, and send email or create events.
Hosted MCP server for Gmail, Outlook, iCloud, Fastmail & Yahoo Mail with per-workspace controls.
MCP server for MailTempo's public free temporary email inboxes.
Related MCP Servers
- AlicenseAqualityAmaintenanceLocal MCP server for Hey.com email - read, search, send, reply, and manage the screener via stored session cookies. Runs over stdio, stores no credentials.3715MIT
- AlicenseAqualityDmaintenanceLocal MCP server for multi-account IMAP/SMTP email (iCloud + Gmail via app-specific passwords). Never marks mail read. Cross-folder search, idempotent sends, TLS verified.8MIT
- AlicenseNot gradedqualityDmaintenanceA minimal MCP server for reading, searching, managing, and sending email over IMAP and SMTP.MIT
- AlicenseNot gradedqualityDmaintenanceA self-hostable Gmail MCP server that enables Gmail search/read, sending, replies, drafts, labels, and attachment downloads via MCP tools with OAuth authorization. Supports stdio and streamable HTTP transports.MIT