Observed since 20 Oct, 22:29 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Modern, stateless JMAP email client and Model Context Protocol (MCP) server for AI agents.
A stateless, production-grade JSON Meta Application Protocol (JMAP) client and Model Context Protocol (MCP) server for AI agents, automation pipelines, and developer workflows.
Compliant with RFC 8620 (JMAP Core) and RFC 8621 (JMAP Mail), agent-jmap-mcp allows language models (e.g. Claude, Hermes Agent, GPT-4, Cursor) to inspect mailboxes, search and retrieve messages, navigate conversation threads, download attachments, perform automated inbox triage, and compose/send emails atomically over pure HTTP.
flowchart TD
subgraph Host["AI Agent / Host Application"]
Agent["AI Agent / LLM Client"]
end
subgraph MCP["agent-jmap-mcp Server"]
Server["FastMCP stdio Engine"]
Tools["Tools Interface<br/>(list, search, get, thread, download, send, triage)"]
TriageEng["Rule-Based Triage Engine"]
Converter["HTML-to-Markdown Engine"]
Client["RFC 8620/8621 JMAP Client"]
end
subgraph Upstream["JMAP Email Server"]
JMAPEndpoint["JMAP API Endpoint<br/>(Fastmail / Stalwart / Cyrus)"]
end
Agent <-->|"JSON-RPC / stdio"| Server
Server --> Tools
Tools --> TriageEng
Tools --> Converter
Tools --> Client
Client <-->|"Stateless HTTPS (JSON Batches / Binary Streams)"| JMAPEndpoint
Email/set and EmailSubmission/set.Thread/get): Full RFC 8621 conversation thread retrieval aggregating multi-turn email dialogues chronologically.downloadUrl./.well-known/jmap to discover API endpoints, upload/download URLs, and primary account IDs.uv tool install agent-jmap-mcp
pipx install agent-jmap-mcp
# or
pip install agent-jmap-mcp
Set the required environment variables:
| Variable | Description | Example / Default |
|---|---|---|
JMAP_SESSION_URL | JMAP Session discovery URL | https://api.fastmail.com/.well-known/jmap |
JMAP_API_TOKEN | Bearer API token | fmu1-... |
JMAP_ACCOUNT_ID | Optional target account ID | Auto-discovered from session if omitted |
A .env.example template is provided in the repository.
Add to your claude_desktop_config.json:
{
"mcpServers": {
"jmap": {
"command": "uvx",
"args": ["agent-jmap-mcp"],
"env": {
"JMAP_SESSION_URL": "https://api.fastmail.com/.well-known/jmap",
"JMAP_API_TOKEN": "YOUR_JMAP_API_TOKEN"
}
}
}
}
Add to ~/.hermes/config.yaml:
mcp_servers:
jmap:
command: "uvx"
args: ["agent-jmap-mcp"]
env:
JMAP_SESSION_URL: "https://api.fastmail.com/.well-known/jmap"
JMAP_API_TOKEN: "${JMAP_API_TOKEN}"
Add to .cursor/mcp.json:
{
"mcpServers": {
"jmap": {
"command": "uvx",
"args": ["agent-jmap-mcp"],
"env": {
"JMAP_SESSION_URL": "https://api.fastmail.com/.well-known/jmap",
"JMAP_API_TOKEN": "YOUR_JMAP_API_TOKEN"
}
}
}
}
Add to settings.json:
{
"context_servers": {
"jmap": {
"command": {
"path": "uvx",
"args": ["agent-jmap-mcp"],
"env": {
"JMAP_SESSION_URL": "https://api.fastmail.com/.well-known/jmap",
"JMAP_API_TOKEN": "YOUR_JMAP_API_TOKEN"
}
}
}
}
}
| Tool Name | Parameters | Description |
|---|---|---|
jmap_list_mailboxes | None | Returns metadata for all mailboxes (IDs, names, roles, unread/total counts). |
jmap_list_emails | mailbox, limit, unread_only, query, from_address, subject_contains | Queries email headers with filtering, search conditions, and sorting. |
jmap_get_email | email_id (str), mark_as_read (bool) | Fetches full email body (converted to markdown if HTML), headers, and attachments. |
jmap_get_thread | thread_id (str) | Fetches full multi-message conversation thread chronologically. |
jmap_download_attachment | blob_id (str), filename (str), save_directory (str) | Downloads binary attachment from JMAP server and saves to disk. |
jmap_send_email | to (list), subject (str), body (str), from_address (str), cc (list), bcc (list), draft_only (bool) | Atomically creates and submits an outgoing message (or saves to drafts). |
jmap_triage_inbox | mailbox (str), limit (int), unread_only (bool) | Analyzes recent messages and returns categorization, priorities, and action items. |
The package includes a standalone CLI tool agent-jmap:
# Start MCP server over stdio
agent-jmap serve
# List available mailboxes
agent-jmap mailboxes
# List recent emails
agent-jmap list --limit 10
agent-jmap list --unread --query "invoice"
# View specific email
agent-jmap get <email-id>
# View entire conversation thread
agent-jmap thread <thread-id>
# Download binary attachment
agent-jmap download <blob-id> --name report.pdf --output ./downloads
# Run inbox triage
agent-jmap triage --limit 20
# Send email from command line
agent-jmap send --to user@example.com --subject "Status Update" --body "Processing completed."
git clone https://github.com/ericmaddox/agent-jmap-mcp.git
cd agent-jmap-mcp
uv sync --extra dev
uv run pytest -v
uv run ruff check .
uv run ruff format .
uv build
MIT License. Copyright (c) 2026 Eric Maddox. See LICENSE for details.
pypistats · 37 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-19 – 2026-10-19 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-18 – 2026-10-18 | 4 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-17 – 2026-10-17 | 12 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-16 – 2026-10-16 | 1 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-15 – 2026-10-15 | 6 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-14 – 2026-10-14 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-13 – 2026-10-13 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-12 – 2026-10-12 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-11 – 2026-10-11 | 7 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-09 – 2026-10-09 | 4 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-08 – 2026-10-08 | 3 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-06 – 2026-10-06 | 1 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-05 – 2026-10-05 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-02 – 2026-10-02 | 1 | 2026-10-20T23:23:24.6055904Z |
| 2026-10-01 – 2026-10-01 | 3 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-30 – 2026-09-30 | 1 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-29 – 2026-09-29 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-28 – 2026-09-28 | 1 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-27 – 2026-09-27 | 3 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-26 – 2026-09-26 | 3 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-25 – 2026-09-25 | 1 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-23 – 2026-09-23 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-22 – 2026-09-22 | 3 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-21 – 2026-09-21 | 1 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-20 – 2026-09-20 | 4 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-19 – 2026-09-19 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-18 – 2026-09-18 | 5 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-17 – 2026-09-17 | 4 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-16 – 2026-09-16 | 3 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-15 – 2026-09-15 | 8 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-13 – 2026-09-13 | 1 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-12 – 2026-09-12 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-11 – 2026-09-11 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-10 – 2026-09-10 | 2 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-09 – 2026-09-09 | 5 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-08 – 2026-09-08 | 5 | 2026-10-20T23:23:24.6055904Z |
| 2026-09-07 – 2026-09-07 | 117 | 2026-10-20T23:23:24.6055904Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 7 Sept 2026 | 9 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:29 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:26b158e32788e0dcafc537c3a1ee87681f9519a8fd48c491f017694cae38ba61