Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’¬ Communication
  3. Pylos Mcp
P
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/11/2026, 12:22:13 AM

Pylos Mcp

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

Read-focused, prompt-injection-hardened email MCP server for any IMAP provider

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "pylos-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pylos-mcp"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing AlternativesπŸ’¬ More in Communication

Documentation Overview

pylos-mcp logo, an envelope with a keyhole in its flap

pylos-mcp

Read-focused, prompt-injection-hardened email MCP server for any IMAP provider.

Anyone in the world can put text in your inbox, and the moment an AI assistant reads that inbox, anyone in the world can put text in front of your assistant. pylos-mcp is an email MCP server built around that fact. It lets Claude, or any MCP client, search, read and draft your mail while treating every message as what it really is, input from a stranger. Mailbox content is fenced as data before the model sees it, and there is no bcc field for an injected email to quietly copy someone with.

It runs on your machine and speaks plain IMAP, so it works with Gmail, iCloud, Yahoo, GMX, Fastmail, mailbox.org, Posteo, Proton via Bridge, or anything self-hosted, and your credentials never leave home. Out of the box it can read and draft. Anything riskier, moving, sending, deleting, is a separate switch that stays off until you flip it.

What this can never do

Mail is attacker-controlled text, so the hard limits live in the architecture rather than in a prompt. No message can talk the server out of any of these.

  • No raw HTML ever reaches the model. Bodies come from the plain-text part when one exists or are converted to text otherwise, and invisible characters that could hide instructions from a human reader while staying readable to a model are stripped along the way.
  • Untrusted content is fenced. Everything that came from a mailbox, bodies, subjects, sender names, folder listings, Sieve script text, is wrapped in a labeled delimiter before the model sees it, and the delimiter sequence is neutralized wherever it appears inside the content, so a malicious email cannot forge a closing marker and write instructions outside the fence. The few lines that live outside the fence (the metadata line above a message, the one-sentence confirmations a tool returns after it acts, the Warnings line) are server-authored, stripped of hidden characters, collapsed onto a single line and length-capped, and the Warnings line never carries message content at all.
  • No bcc field exists anywhere, not on drafts and not on sent mail. A bcc recipient receives a full copy of a message while appearing nowhere in it, and that invisibility is exactly what an injected email would want, a silent extra recipient that no review of the draft or of the sent copy could ever catch. The field is absent rather than guarded, so there is nothing to talk the model into.
  • Deleting a message moves it to Trash. There is no expunge and no permanent-delete option, and the tool result never claims a permanence this server does not offer.
  • Sieve access is read-only, permanently. Server-side filter rules can forward, auto-reply and notify, each an exfiltration channel that survives revoking the app password or uninstalling this server. Scanning uploaded scripts for dangerous commands would only be safe if this project's parser agreed with the mail server's parser exactly, and any disagreement between the two is a bypass, so write access is left out entirely rather than defended.

Sending is the other risky door, so it starts closed even once the send capability is on. Until SEND_ALLOWLIST says who may be addressed, every send is refused, and the refusal names the two ways to open the gate. Choosing SEND_ALLOWLIST=* allows anyone, visibly and on purpose.

Fencing reduces prompt-injection risk, nothing eliminates it. The model still reads text written by strangers, so treat every response that includes message content as untrusted input rather than ground truth.

Quick start

Add the server to your MCP client's config. For Claude Desktop that file is claude_desktop_config.json.

config.json
{
  "mcpServers": {
    "pylos-mcp": {
      "command": "npx",
      "args": ["-y", "pylos-mcp"],
      "env": {
        "PROVIDER": "mailbox.org",
        "EMAIL_USER": "you@example.com",
        "EMAIL_PASSWORD": "your-app-password"
      }
    }
  }
}

Use an app password rather than your account's regular login password, the next section says which providers insist on one. Restart the client and the read and draft tools appear. Later config changes need the same treatment, a newly enabled capability only registers its tools after a full client restart, and in Claude Desktop toggling the server off and on is not always enough.

Provider setup

Set PROVIDER to one of gmail, icloud, yahoo, gmx, fastmail, mailbox.org or posteo and the matching IMAP, SMTP and Sieve hosts and ports fill themselves in.

Gmail, iCloud, Yahoo and Fastmail refuse regular account passwords over IMAP, so an app password is the only way in. Google only offers one once 2-Step Verification is on, and iCloud wants two-factor authentication on the Apple ID first. mailbox.org, GMX and Posteo accept the account password, though a dedicated app password is still the wiser choice. Each provider's account settings cover creating one.

Proton Mail goes through Bridge. Leave PROVIDER unset and set IMAP_HOST and IMAP_PORT to what Bridge shows. The username is the address Bridge tells you to use, and the password is the one in Bridge's Mailbox details, IMAP section, not your Proton account password. Bridge defaults to STARTTLS while this server only speaks implicit TLS, so switch Bridge to SSL in its Advanced Settings. Bridge's certificate is self-signed, so export it and point TLS_CA_FILE at it.

Self-hosted servers also leave PROVIDER unset. Set IMAP_HOST, plus SMTP_HOST or SIEVE_HOST when those optional tiers are enabled, and authenticate however your server requires. For a private CA, point TLS_CA_FILE at the CA certificate. Verification itself always stays on, this only adds a trust anchor.

Capabilities

Capabilities are independent switches, not a ladder. Reading is always on, drafting starts on, everything else stays off until you list it in CAPABILITIES. A switched-off tier has its tools left out of the tool list entirely rather than merely refused, so a model never even learns a disabled tool exists.

TierDefaultTools
readalways onsearch_emails, get_email, get_attachment, list_folders
draftsoncreate_draft
manageoffmove_email, set_flags
sendoffsend_email
deleteoffdelete_email
sieve-readofflist_sieve_scripts, get_sieve_script

Enable more with a comma-separated list, for example CAPABILITIES=drafts,manage,delete.

Suspicion warnings

The server also tells you what is suspicious about a message. Three detectors annotate get_email results with a line above the content, written entirely in the server's own words and never quoting the content that tripped them.

Code
Warnings: hidden_text (412 hidden characters via display:none), encoded_blob (base64 run of 600 characters)
  • Hidden text. Text concealed with the common CSS tricks, display:none, invisible or one-pixel fonts, matching text and background colors, off-screen positioning, aria-hidden. It covers inline styles and attributes, a tripwire rather than a rendering engine. Newsletters legitimately hide short preview text, so the warning fires only past a threshold, unless the hidden text itself contains an instruction-like phrase or an encoded run, which warns at any length. The text stays in the body by default. STRIP_HIDDEN_TEXT=true drops it instead, with a note of how much was dropped.
  • Instruction patterns. A deliberately small set of phrases that address an AI as an instruction target, like "ignore previous instructions". Small so that an inbox merely talking about AI stays quiet. Extend it with FLAG_EXTRA_PATTERNS, pipe-separated phrases matched as case-insensitive literals.
  • Encoded blobs. Long contiguous base64 or hex runs in the body, reported with their length and never decoded.

Warnings annotate, they never withhold. The message always comes back, and each detector has its own toggle in the reference below.

Configuration reference

All configuration is environment variables, validated at startup. Invalid configuration fails immediately with an actionable message, never partway through a conversation. An empty value counts as unset, since bundle managers fill optional fields users leave blank with empty strings.

VariableDefaultNotes
PROVIDERnoneOne of gmail, icloud, yahoo, gmx, fastmail, mailbox.org, posteo. Fills in IMAP, SMTP and Sieve hosts and ports.
EMAIL_USERrequiredAccount login.
EMAIL_PASSWORDnoneApp password. Either this or EMAIL_PASSWORD_CMD is required.
EMAIL_PASSWORD_CMDnoneCommand whose stdout is the password, such as a keychain lookup or pass, so the secret never sits in the client's config file.
IMAP_HOST / IMAP_PORTpreset / 993Explicit values for self-hosted servers. Set either to override the preset.
SMTP_HOST / SMTP_PORTpreset / 465Required only when send is enabled.
SIEVE_HOST / SIEVE_PORTIMAP_HOST / 4190Used only when sieve-read is enabled.
CAPABILITIESdraftsComma-separated list of tiers beyond read, which is always included.
MAX_BODY_KB64Message body truncation limit.
MAX_ATTACHMENT_MB25Attachment size cap, checked against the size the server declares before any bytes are downloaded.
DOWNLOAD_DIR~/DownloadsWhere get_attachment writes files.
SEND_SESSION_CAP5Successful send_email calls allowed per server process lifetime.
SEND_SAVE_COPYtrueAppend a copy of each sent message to the Sent folder, marked read. Turn off for providers that already file sent mail server-side (Gmail does), which would otherwise show duplicates.
SEND_ALLOWLISTnone (sending closed)Comma-separated addresses or *@domain patterns, or * alone to allow anyone. With send enabled and no value set, every send is refused and the refusal explains this variable. An explicitly empty value also allows nobody.
DRAFTS_NO_RECIPIENTSfalseWhen true, create_draft rejects to and cc entirely. Drafts carry no addressing and get it added later in your mail client.
FLAG_HIDDEN_TEXTtrueWarn when message HTML hides text with inline styles or aria-hidden.
FLAG_INSTRUCTION_PATTERNStrueWarn when the body contains phrases addressing an AI as an instruction target.
FLAG_ENCODED_BLOBStrueWarn on long contiguous base64 or hex runs in the body.
STRIP_HIDDEN_TEXTfalseDrop detected hidden text from the body instead of only warning, with a note of how much was dropped. Requires FLAG_HIDDEN_TEXT to stay on, the combination with the detector off is refused at startup.
FLAG_EXTRA_PATTERNSnonePipe-separated phrases added to the instruction-pattern set, matched as case-insensitive literal substrings.
TLS_CA_FILEnonePath to a PEM CA certificate added as an extra trust anchor, for self-hosted servers with a private CA. Certificate verification cannot be turned off, this only extends what is trusted. Setting it trusts Node's bundled root store plus this file, which means anchors added through NODE_EXTRA_CA_CERTS are not in that set. If you rely on those, point TLS_CA_FILE at the same certificate.

Maintenance expectations

pylos-mcp is built for the author's own daily use and maintained on that basis. Issues and pull requests are welcome, and CONTRIBUTING.md carries a wishlist of directions that would genuinely help. The scope stays narrow on purpose, so if you need something wider than the security posture allows, fork away. The codebase is deliberately small enough to make that pleasant.

Development

Terminal
npm install
npm test                  # unit and MCP-layer tests, entirely offline
npm run test:integration  # starts a disposable local Dovecot container, tests against it, tears it down
npm run build

No test in this project connects to a real mailbox, in development or in CI. npm test runs in-process fakes, and npm run test:integration brings up its own local Dovecot container over Docker, seeded with synthetic fixture messages, and removes it when the run finishes.

Related MCP Servers

View all in Communication View all alternatives
  • Mcp logoMcp

    Email validation and SMTP verification for Claude Desktop, Cursor, and Claude Code.

    πŸ’¬ Communication0 views
    Compare vs Mcp β†’
  • Slack Mcp Server logoSlack Mcp Server

    The most powerful MCP server for Slack Workspaces.

    πŸ’¬ Communication1 views
    Compare vs Slack Mcp Server β†’
  • Mcp logoMcp

    Email for AI agents: inboxes, send/reply/forward, search, threads, webhooks β€” 21 SentFromAI tools.

    πŸ’¬ Communication0 views
    Compare vs Mcp β†’
  • Mcp logoMcp

    Email for AI agents: inboxes, send/reply/forward, search, threads, webhooks β€” 21 SentVia tools.

    πŸ’¬ Communication0 views
    Compare vs Mcp β†’

Frequently Asked Questions about Pylos Mcp

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "pylos-mcp": { "command": "npx", "args": ["-y", "pylos-mcp"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPylos Mcp AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pylos-mcp?style=directory)](https://allmcps.com/mcp/pylos-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/pylos-mcp"><img src="https://allmcps.com/api/badge/pylos-mcp?style=directory" alt="Pylos Mcp on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’¬Communication
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
0/4 checks healthy over the last 6h
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
npm downloads181/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
29Quality signal: Emerging Β· 29/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity3/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’¬ Communication β†’Best MCP servers for Slack & Communication β†’Alternatives to Pylos Mcp β†’Install in Claude DesktopInstall in CursorInstall in VS Code