# pylos-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/adamVass/pylos-mcp  
**GitHub Stars:** 4  
**npm Downloads (last month):** 930  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pylos-mcp

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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "pylos-mcp": {
    "command": "npx",
    "args": ["-y","pylos-mcp"],
    "env": {
      "PROVIDER": "",
      "EMAIL_USER": "",
      "EMAIL_PASSWORD": "",
      "EMAIL_PASSWORD_CMD": ""
    }
  }
}
```

**Requires environment variables:** `PROVIDER`, `EMAIL_USER`, `EMAIL_PASSWORD`, `EMAIL_PASSWORD_CMD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What pylos-mcp does

pylos-mcp exposes a mailbox to an MCP-compatible AI client for reading email and creating drafts. It supports Gmail, Outlook, Microsoft 365, iCloud, and other IMAP providers. Typical requests include listing folders, reviewing messages, identifying urgent items, summarizing a long thread, and drafting a reply.

Email is returned as data intended for inspection rather than as instructions for the assistant. The server adds a Warnings line when it detects patterns such as concealed text, wording aimed at an AI system, mixed-script or lookalike characters, a Reply-To address on another domain, encoded content, or a failed DMARC check.

## How it works

The server runs locally and communicates with the selected MCP client through `npx`. Node.js 22 or later is required. For normal mailbox access, it connects to the configured provider using the supplied account details. Outlook and Microsoft 365 use Microsoft's sign-in flow; the first mailbox read opens a browser for authentication.

The `--demo` option replaces the real mailbox with a sample inbox. It makes no connection to a mail server and does not read local settings, so it can be used to inspect the server's behavior without signing in.

Attachments requested through the assistant are saved in the Downloads folder. Content read by the assistant is also sent to the AI client and the model provider used by that client.

## Setup and configuration

Install the server as a local MCP process with `npx -y pylos-mcp`. Set `PROVIDER` to the mailbox provider and `EMAIL_USER` to the account address. Password-based providers use an app password in `EMAIL_PASSWORD`; an `EMAIL_PASSWORD_CMD` command can instead print the password at startup, which keeps it out of shell history and the client configuration. Outlook and Microsoft 365 require neither password variable.

Claude Desktop can use the downloadable MCP bundle or a standard local-server configuration. Cursor, VS Code, Windsurf, Cline, Claude Code, and other clients that run local MCP servers can use the same `npx` command and environment settings. Restart the client after changing configuration because tools register during startup.

For a no-account test, run:

```sh
claude mcp add pylos-demo -- npx -y pylos-mcp --demo
```

## Tools and capabilities

- List mailbox folders.
- Read email and inspect message content.
- Identify messages that need attention.
- Summarize longer email threads.
- Create drafts without immediately sending them.
- Add warnings for suspicious or concealed message content.
- Save requested attachments to Downloads.

## Limitations and notes

Sending is disabled initially, and drafts remain in the Drafts folder until a user sends them. Enabling sending still requires a recipient allowlist; optional confirmation can require approval before each message leaves the mailbox. Moving and deleting messages are also disabled until explicitly enabled. No tool attaches a file from the local disk or creates a forwarding rule.

A warning describes a detected message characteristic, not a verdict that the message is malicious. Image markup in messages is neutralized, but other tools available in the same AI client may still create separate paths to external communication. Use an app password instead of a regular account password for password-based providers.

_Full upstream README: https://allmcps.com/mcp/pylos-mcp/readme_

