email-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| EMAIL_MCP_ACCOUNTS | No | Override path to accounts YAML file (default ~/.config/email-mcp/accounts.yml) | |
| EMAIL_MCP_PASSWORD | No | Password for local development (alternative to Keychain) | |
| EMAIL_MCP_CACHE_BYTES | No | Max cache size in bytes (default 32MiB) | |
| EMAIL_MCP_DOWNLOAD_DIR | No | Directory for downloading attachments (default ~/.local/state/email-mcp/attachments) | |
| EMAIL_MCP_CACHE_ENTRIES | No | Max number of cache entries (default 256) | |
| EMAIL_MCP_CACHE_BODY_MAX | No | Max body size per message in cache (default 64KiB) | |
| EMAIL_MCP_CACHE_RECENT_TTL | No | TTL for recent cache in seconds (default 180) | |
| EMAIL_MCP_PREFETCH_INTERVAL | No | Enable background prefetch with interval in seconds (e.g., 120) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_accountsA | List accounts and which is the default. |
| set_default_accountB | Set the default account (used when |
| list_foldersB | List mail folders (folders the security policy blocks from reading are omitted). |
| get_emailsA | Fetch or search emails. Never marks mail read. Defaults to INBOX + Junk. Two modes, reported by
|
| send_emailA | Send an email. Idempotent: by default a second mail to the same recipients
within 10 minutes is BLOCKED, not resent. |
| download_attachmentA | Download a message's attachment(s) — read-only, never marks mail read.
Select one by |
| mark_emailA | Mark a message read or unread. Refused (folder_protected) for messages in a protected folder — Trash/Bin/Deleted * by default, plus security.protected_folders. |
| move_emailB | Move a message to another folder. Protected folders (Trash/Bin/Deleted * by default, plus security.protected_folders) are read-only: nothing can be moved into or out of them — i.e. with the default policy this server cannot delete mail. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/swapnilsurdi/email_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server