AOL Mail MCP Server
Provides tools to manage AOL Mail, including reading inbox, sending emails, searching, moving, deleting, and managing folders via IMAP/SMTP.
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., "@AOL Mail MCP Server Show me the last 5 emails in my 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.
AOL Mail MCP Server
A production-ready Model Context Protocol server for AOL Mail.
Works as a local stdio MCP server compatible with VS Code GitHub Copilot Agent Mode and Claude Desktop.
Uses uv for dependency and environment management.
Prerequisites
uv package manager (Python 3.11+ included automatically)
An AOL Mail account with IMAP access enabled
An AOL app password (not your main AOL password)
Install uv
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Verify: uv --version
Related MCP server: gmail-mcp-server
Generate an AOL App Password
Sign in at myaccount.aol.com.
Go to Security → Manage app passwords.
Enter a label (e.g.
MCP Server) and click Generate password.Copy the generated password — this is your
AOL_APP_PASSWORD.
AOL requires an app password for all third-party IMAP/SMTP clients.
Standard account passwords will not work.
Usage
There are three ways to run the server depending on your situation.
Option A — uvx (recommended, no install required)
Runs directly from PyPI without cloning or installing anything permanently.
uvx aol-mcpPass credentials via environment variables (see VS Code / Claude Desktop config below).
Option B — Install as a persistent tool
Install once, run anywhere by name.
# From PyPI
uv tool install aol-mcp
# From GitHub (before PyPI publish)
uv tool install git+https://github.com/kubegrind/aol-mcp-server
# From a local clone
uv tool install .Then run:
AOL_EMAIL=you@aol.com AOL_APP_PASSWORD=yourpassword aol-mcpOption C — Local clone (for development / contributors)
git clone https://github.com/kubegrind/aol-mcp-server
cd aol-mcp-server
uv sync
cp .env.example .env
# Edit .env with your credentials
uv run server.pyVS Code (GitHub Copilot Agent Mode) Setup
Create or edit .vscode/mcp.json in your workspace:
Recommended — uvx (no install needed):
{
"servers": {
"aol-mail": {
"type": "stdio",
"command": "uvx",
"args": ["aol-mcp"],
"env": {
"AOL_EMAIL": "your_email@aol.com",
"AOL_APP_PASSWORD": "your_app_password"
}
}
}
}Alternative — local clone:
{
"servers": {
"aol-mail": {
"type": "stdio",
"command": "uv",
"args": ["run", "--directory", "/path/to/aol-mcp-server", "server.py"],
"env": {
"AOL_EMAIL": "your_email@aol.com",
"AOL_APP_PASSWORD": "your_app_password"
}
}
}
}Open Copilot Chat, switch to Agent Mode — AOL Mail tools appear automatically.
Claude Desktop Setup
Edit your Claude Desktop config:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Recommended — uvx:
{
"mcpServers": {
"aol-mail": {
"command": "uvx",
"args": ["aol-mcp"],
"env": {
"AOL_EMAIL": "your_email@aol.com",
"AOL_APP_PASSWORD": "your_app_password"
}
}
}
}Alternative — local clone:
{
"mcpServers": {
"aol-mail": {
"command": "uv",
"args": ["run", "--directory", "/full/path/to/aol-mcp-server", "server.py"],
"env": {
"AOL_EMAIL": "your_email@aol.com",
"AOL_APP_PASSWORD": "your_app_password"
}
}
}
}Restart Claude Desktop after saving — AOL Mail tools appear in the tools panel.
Available Tools
Tool | Description |
| List recent emails from any folder (default: INBOX) |
| List recent emails from a named folder (e.g. LinkedIn, GitHub) |
| Fetch full body and headers by IMAP message ID, with optional folder |
| Search by keyword in any folder across FROM, SUBJECT, BODY, or ALL |
| Compose and send a new email |
| Reply to an existing email by message ID, with optional folder |
| Move an email to Trash by message ID, with optional folder |
| Bulk delete — move every email in a folder to Trash |
| Move an email to any named folder, with optional source folder |
| Bulk move — move all emails from one folder to another |
| List all IMAP folders in the mailbox |
| Mark one or multiple emails as read, with optional folder |
| List all attachments (name, MIME type, size) in an email |
Example Prompts
Show me the last 5 emails in my inbox.
Show me the last 10 emails in my LinkedIn folder.
Read email ID 42 from my GitHub folder.
Search for emails from boss@example.com in my Sent folder.
Send an email to alice@example.com with subject "Hello" and body "Hi Alice!".
Reply to email 17 with "Thanks, got it!".
Delete email 99 from my LinkedIn folder.
Delete all emails in my Spam folder.
Move email 55 to folder Work.
Move all emails from LinkedIn to Archive.
List all my mail folders.
Mark emails 10, 11, 12 as read in my GitHub folder.
List attachments in email 33.Connection Details
Protocol | Host | Port | Security |
IMAP | imap.aol.com | 993 | SSL/TLS |
SMTP | smtp.aol.com | 465 | SSL/TLS |
Troubleshooting
"AUTHENTICATE failed" / login rejected
Make sure
AOL_APP_PASSWORDis the app password from myaccount.aol.com, not your AOL login password.Re-generate the app password and update your config.
Confirm IMAP is enabled in your AOL account security settings.
"Connection refused" / timeout on ports 993 or 465
Your firewall or network may be blocking outbound SSL ports.
Test connectivity:
telnet imap.aol.com 993
Emails not found by ID
IMAP message IDs are session-scoped integers. Run
read_inboxfirst to retrieve current IDs.
uvx / uv not found in VS Code or Claude Desktop
Ensure
uvis on your systemPATH(the installer normally handles this).Find the full path with
which uv(macOS/Linux) orwhere uv(Windows) and use it ascommand.macOS example:
"command": "/Users/you/.local/bin/uvx"
uv tool install fails
Ensure Python 3.11+ is available:
uv python install 3.11Try
uv tool install --reinstall aol-mcp-serverto force a clean install.
SSL certificate errors
Upgrade your CA bundle:
uv run --with certifi python -m certifiOn macOS, run the Install Certificates script in your Python.app folder.
Security Notes
Credentials are passed via environment variables — never stored in the package.
.envis in.gitignoreand must never be committed.Passwords are never logged or included in error messages.
All IMAP and SMTP connections are closed in
finallyblocks — no connection leaks.
Available Tools
13 toolsdelete_all_in_folderB
Delete all emails in a folder by moving them to Trash.
Inputs: folder_name (required). Returns: result
delete_emailA
Move an email to the Trash folder by its IMAP message ID.
Inputs: message_id (required), folder. Returns: result
get_attachmentsA
List all attachments in an email by its IMAP message ID.
Inputs: message_id (required), folder. Returns: result
list_foldersA
List all IMAP folders available in the AOL mailbox.
Returns: Bullet list of every folder name in the account.
Inputs: no named parameters. Returns: result
mark_readB
Mark one or more emails as read.
Inputs: message_ids (required), folder. Returns: result
move_all_emailsB
Move all emails from one folder to another.
Inputs: source_folder (required), destination_folder (required). Returns: result
move_emailB
Move an email to any named IMAP folder.
Inputs: message_id (required), folder (required), source_folder. Returns: result
read_emailB
Get the full content of a single email by its IMAP message ID.
Inputs: message_id (required), folder. Returns: result
read_folderA
List recent emails from a named IMAP folder.
Inputs: folder_name (required), count. Returns: result
read_inboxB
List recent emails from any IMAP folder.
Inputs: count, folder. Returns: result
reply_emailB
Reply to an existing email by its IMAP message ID.
Inputs: message_id (required), body (required), folder, cc, +1 more. Returns: result
search_emailsB
Search any IMAP folder for emails matching a keyword.
Inputs: query (required), search_in, count, folder. Returns: result
send_emailB
Compose and send a new email via AOL SMTP.
Inputs: to (required), subject (required), body (required), cc, +2 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a distinct email operation (send, read, search, move, delete, mark read, list folders, get attachments, reply) with no functional overlap. An agent can clearly differentiate between them.
All tool names follow a consistent verb_noun or verb_preposition_noun pattern (e.g., delete_email, list_folders, move_all_emails, search_emails). No mixing of styles, making the set highly predictable.
Thirteen tools is well-scoped for an email client, covering all major operations without being bloated. Each tool serves a clear and necessary purpose.
The tool set covers essential email CRUD (send, read, move, delete, mark read, search), but lacks folder creation/renaming/deletion and permanent deletion (only moves to Trash). These minor gaps do not severely hinder basic workflows.
Maintenance
Related MCP Connectors
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
Give your AI assistant its own private email. Create mailboxes in seconds, send and schedule messages, and let the agent wait for incoming emails to pick up verification codes and confirmation links — without exposing your personal address. Works with Claude, ChatGPT, Cursor and VS Code: just sign in with your GhosterMail account. Requires GhosterMail Full Access.
Your mailboxes in ChatGPT and Claude: Gmail, iCloud, Fastmail, any IMAP. Passwords stay yours.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables seamless email management through natural language conversations with Claude. Supports searching, reading, and sending emails securely with Gmail and other email providers.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered inbox management with natural language commands through Claude Desktop. Supports sending, reading, searching, organizing emails, and managing labels using Gmail API with automatic authentication.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables using Apple Mail accounts to search, read, manage, draft, and send messages from Codex or Claude Code locally.MIT
- AlicenseAqualityDmaintenanceEnables users to manage their Yahoo Mail account through natural language, including listing, reading, searching, deleting, archiving, flagging, and moving emails via IMAP. Supports both local Claude Desktop integration and remote access with secure OAuth 2.0 authentication.11MIT