Back to Home
vivier icon

imap-mcp-server

by vivier

Overview

Provides an MCP interface for agents to interact with IMAP mailboxes, enabling email exploration, search, and content retrieval.

Installation

Run Command
python mcp-server.py

Environment Variables

  • IMAP_HOST
  • IMAP_LOGIN
  • IMAP_PASSWORD
  • IMAP_TOKEN

Security Notes

The server constructs IMAP commands directly using string concatenation (f-strings and `str.join`) with user-provided inputs (`criteria` for `search`, `uids` and `keywords` for `change_keywords` and `get_keywords`). This pattern is vulnerable to IMAP command injection if a malicious or untrusted agent provides specially crafted input strings. While `imap-tools` might handle some sanitization, the direct construction of the command string without explicit parameterization for these specific IMAP operations in the provided code presents a significant risk.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassLow
Avg Tokens1
Stars0
Forks0
Last Update2025-12-10

Tags

IMAPEmail ManagementAgent ToolsMCPMailbox Access