allinkl-mail-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@allinkl-mail-mcpShow me my unread emails in the inbox"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
all-inkl Mail MCP Server
An MCP server that gives an AI assistant access to an all-inkl.com mailbox via IMAP and SMTP.
Features
Tool | Description |
| List all available IMAP folders in the mailbox. |
| List emails in a specific folder. |
| Search for emails based on a query. |
| Read the full content of a specific email. |
| Send a new email message. |
| Reply to an existing email. |
| Mark an email as read or unread. |
| Move an email to a different folder. |
| Move an email to the trash folder. |
Related MCP server: mcp-imap
Security Notes
Untrusted Input: Email content is untrusted input and can contain prompt injection attacks. Be cautious when allowing the AI to process email bodies.
Write Permissions: Keep write tools (send, reply, delete, move) on manual approval in your MCP client settings.
Read-Only Mode: Set
MAIL_ALLOW_SEND=falsein your environment variables to disable all email sending capabilities.Credentials: Never commit your
.envfile or hardcode credentials in the source code.
Setup
Option 1: Fast Installation (via uvx)
If you have uv installed, you can run the server without cloning the repo:
Cursor (~/.cursor/mcp.json) or Claude Desktop:
{
"mcpServers": {
"allinkl-mail": {
"command": "uvx",
"args": ["allinkl-mail-mcp"],
"env": {
"MAIL_USER": "your_login",
"MAIL_PASSWORD": "your_password",
"MAIL_IMAP_HOST": "wXXXXXXX.kasserver.com",
"MAIL_SMTP_HOST": "wXXXXXXX.kasserver.com",
"MAIL_FROM": "your_email@all-inkl.com",
"MAIL_SENT_FOLDER": "Sent",
"MAIL_TRASH_FOLDER": "Trash",
"MAIL_ALLOW_SEND": "true"
}
}
}
}Option 2: Manual Installation (from Source)
Clone the repository:
git clone <repo-url> cd allinkl-mail-mcpCreate a virtual environment:
python3 -m venv .venv source .venv/bin/activateInstall dependencies:
pip install -r requirements.txtConfigure environment: Copy
.env.exampleto.envand fill in your credentials.cp .env.example .env
Finding your all-inkl settings
Log in to the KAS (kas.all-inkl.com) under E-Mail > E-Mail-Konten.
IMAP/SMTP Host: Looks like
wXXXXXXX.kasserver.com.Login: Use the mailbox login (e.g.,
m0123456) or the full email address.Password: The password you set for the mailbox.
Configuration Examples
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"allinkl-mail": {
"command": "/absolute/path/to/allinkl-mail-mcp/.venv/bin/python",
"args": ["/absolute/path/to/allinkl-mail-mcp/src/allinkl_mail_mcp/server.py"],
"env": {
"MAIL_USER": "your_login",
"MAIL_PASSWORD": "your_password",
"MAIL_IMAP_HOST": "wXXXXXXX.kasserver.com",
"MAIL_SMTP_HOST": "wXXXXXXX.kasserver.com",
"MAIL_FROM": "your_email@all-inkl.com",
"MAIL_SENT_FOLDER": "Sent",
"MAIL_TRASH_FOLDER": "Trash",
"MAIL_ALLOW_SEND": "true"
}
}
}
}Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"allinkl-mail": {
"command": "/absolute/path/to/allinkl-mail-mcp/.venv/bin/python",
"args": ["/absolute/path/to/allinkl-mail-mcp/src/allinkl_mail_mcp/server.py"],
"env": {
"MAIL_USER": "your_login",
"MAIL_PASSWORD": "your_password",
"MAIL_IMAP_HOST": "wXXXXXXX.kasserver.com",
"MAIL_SMTP_HOST": "wXXXXXXX.kasserver.com",
"MAIL_FROM": "your_email@all-inkl.com",
"MAIL_SENT_FOLDER": "Sent",
"MAIL_TRASH_FOLDER": "Trash",
"MAIL_ALLOW_SEND": "true"
}
}
}
}MCP Inspector
Run the inspector to test the server locally:
npx @modelcontextprotocol/inspector -e MAIL_USER=xxx -e MAIL_PASSWORD=xxx -e MAIL_IMAP_HOST=xxx -e MAIL_SMTP_HOST=xxx /absolute/path/to/allinkl-mail-mcp/.venv/bin/python /absolute/path/to/allinkl-mail-mcp/src/allinkl_mail_mcp/server.pyTroubleshooting
Error | Cause | Solution |
| MCP client cannot find the python executable or server file. | Use absolute paths in your configuration. |
| Environment variables are not being passed to the server. | Check your client's |
| Incompatible | Run |
| IMAP server rejected the login. | Try using the full email address as |
Known Limitations
Search: Search terms are limited to ASCII only.
Attachments: The server currently does not support downloading or sending attachments.
Example Prompts
"List my inbox and tell me if there are any urgent emails."
"Search for emails from 'Amazon' and summarize the most recent one."
"Draft a reply to the last email from Sarah and ask for a meeting on Friday."
"Move all emails older than a month from the inbox to the archive folder."
"Read the email with subject 'Invoice 123' and extract the total amount."
This server cannot be deployed
Maintenance
Related MCP Connectors
Email hosting from your AI: read and send mail, add domains, check DNS and manage mailboxes.
1- Lettio MCPOAutheu.lettio
Private, EU-hosted email for AI agents over JMAP: read, search, reply, organize, send.
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to read, search, compose, and send emails by connecting to any IMAP/SMTP provider. It supports comprehensive mailbox management, including draft handling and message deletion, directly through natural language.10391 npm10MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with email accounts via IMAP and SMTP, supporting mailbox listing, email search, retrieval, sending, and management.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to send, read, and manage emails via SMTP and IMAP, with support for attachments, threads, and mailbox organization.1615 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to connect to any email provider via IMAP/SMTP, supporting account management and email operations like listing, sending, and marking emails.MIT