by dominik1001
imap-mcp is an IMAP Model Context Protocol (MCP) server that exposes IMAP operations as tools for AI assistants. It allows AI models to interact with email servers, specifically for creating draft emails.
imap-mcp is an IMAP Model Context Protocol (MCP) server that exposes IMAP operations as tools for AI assistants. It allows AI models to interact with email servers, specifically for creating draft emails.
To use imap-mcp, you first need to compile the TypeScript code to JavaScript using npx tsc
. Then, you can run the MCP server using node dist/index.js
. Configuration for the IMAP server (host, port, username, password, SSL) is done via environment variables. The project integrates with AI assistants that support the Model Context Protocol, such as Claude.
Q: What is the primary function of imap-mcp? A: Its primary function is to expose IMAP operations, specifically email draft creation, as tools for AI assistants via the Model Context Protocol.
Q: Which AI assistants are compatible with imap-mcp? A: It is compatible with Claude and other AI assistants that support the Model Context Protocol.
Q: How does imap-mcp handle authentication? A: It uses environment variables for secure credential management (IMAP_HOST, IMAP_PORT, IMAP_USERNAME, IMAP_PASSWORD, IMAP_USE_SSL).
Q: Can I specify the sender's email address when creating a draft?
A: Yes, you can specify the from
parameter. If not provided, it defaults to the IMAP_USERNAME
.
📧 An IMAP Model Context Protocol (MCP) server to expose IMAP operations as tools for AI assistants.
{
"mcpServers": {
...,
"imap": {
"command": "npx",
"args": [
"imap-mcp"
],
"env": {
"IMAP_HOST": "<IMAP host>",
"IMAP_PORT": "<IMAP port>",
"IMAP_USERNAME": "<IMAP username>",
"IMAP_PASSWORD": "<IMAP password>",
"IMAP_USE_SSL": "<true or false>"
}
}
}
}
npx tsc
node dist/index.js
create-draft
Creates a draft email message and saves it to the IMAP server's drafts folder.
Parameters:
to
(string, required): The recipient's email addresssubject
(string, required): The email subject linebody
(string, required): The email body contentfrom
(string, optional): The sender's email address (defaults to IMAP_USERNAME)Example:
{
"to": "recipient@example.com",
"subject": "Meeting Reminder",
"body": "Don't forget about our meeting tomorrow at 2 PM.",
"from": "sender@example.com"
}
The tool will attempt to save the draft to either "INBOX.Drafts" or "Drafts" folder, depending on your email server's folder structure.
MIT
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by danny-avila
Provides a customizable ChatGPT‑like web UI that integrates dozens of AI models, agents, code execution, image generation, web search, speech capabilities, and secure multi‑user authentication, all open‑source and ready for self‑hosting.
by ahujasid
BlenderMCP integrates Blender with Claude AI via the Model Context Protocol (MCP), enabling AI-driven 3D scene creation, modeling, and manipulation. This project allows users to control Blender directly through natural language prompts, streamlining the 3D design workflow.
by pydantic
Enables building production‑grade generative AI applications using Pydantic validation, offering a FastAPI‑like developer experience.
by GLips
Figma-Context-MCP is a Model Context Protocol (MCP) server that provides Figma layout information to AI coding agents. It bridges design and development by enabling AI tools to directly access and interpret Figma design data for more accurate and efficient code generation.
by mcp-use
Easily create and interact with MCP servers using custom agents, supporting any LLM with tool calling and offering multi‑server, sandboxed, and streaming capabilities.
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
by lharries
WhatsApp MCP Server is a Model Context Protocol (MCP) server for WhatsApp that allows users to search, read, and send WhatsApp messages (including media) through AI models like Claude. It connects directly to your personal WhatsApp account via the WhatsApp web multi-device API and stores messages locally in a SQLite database.
by idosal
GitMCP is a free, open-source remote Model Context Protocol (MCP) server that transforms any GitHub project into a documentation hub, enabling AI tools to access up-to-date documentation and code directly from the source to eliminate "code hallucinations."
by Klavis-AI
Klavis AI provides open-source Multi-platform Control Protocol (MCP) integrations and a hosted API for AI applications. It simplifies connecting AI to various third-party services by managing secure MCP servers and authentication.