metu-webmail-mcp
Click on "Install 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., "@metu-webmail-mcpCheck my inbox for unread emails from my advisor."
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.
METU Webmail MCP Server ๐จ
A Model Context Protocol (MCP) server for Middle East Technical University (METU / ODTร) Webmail (https://webmail.metu.edu.tr).
Connect your AI assistants (Claude Desktop, Cursor, Antigravity, OpenCode, etc.) to your METU email account to list, search, read, send, reply to, flag, and organize emails securely using METU's official IMAP and SMTP servers.
โจ Features
๐ฅ Inbox & Folder Management: List all mailboxes (
INBOX,Sent,Drafts,Trash, custom folders) and check unread message counts.๐ Advanced Email Search: Filter messages by keyword query, sender, recipient, subject, date ranges (
SINCE,BEFORE), and read/flagged status.๐ Clean Content Reading: Robust RFC2047 decoding for Turkish characters (UTF-8, ISO-8859-9, windows-1254), automatic HTML to clean Markdown conversion, and message threading metadata.
๐ Attachment Support: Inspect attachment metadata and download/extract file attachments.
โ๏ธ Send, Reply & Forward: Send new emails via SMTP (with automatic save to
Sent), reply with automatic threading headers (In-Reply-To,References,Re:prefix), and forward messages.๐ท๏ธ Flag & Organize: Mark emails as read/unread or starred/flagged, and move or delete messages.
๐ Dual Transport: Supports standard MCP
stdiomode andsseHTTP streaming mode.
Related MCP server: mcp-imap
๐ ๏ธ Installation & Setup
Prerequisites
Python 3.11+
uv(recommended) orpip
1. Clone & Install Dependencies
cd /Users/ates/Documents/projects/metu-webmail-mcp
uv sync2. Configure Credentials
Create a .env file in the project root:
METU_USERNAME=e123456@metu.edu.tr
METU_PASSWORD=your_metu_password
# Optional configurations (defaults shown)
METU_IMAP_SERVER=imap.metu.edu.tr
METU_IMAP_PORT=993
METU_SMTP_SERVER=smtp.metu.edu.tr
METU_SMTP_PORT=587Note: Both
METU_USERNAME/METU_PASSWORDandSAIS_USERNAME/SAIS_PASSWORDare automatically supported.
๐ค MCP Client Configuration
Claude Desktop / Antigravity / Cursor
Add the following to your MCP client configuration (claude_desktop_config.json or equivalent):
{
"mcpServers": {
"metu-webmail": {
"command": "uv",
"args": [
"--directory",
"/Users/ates/Documents/projects/metu-webmail-mcp",
"run",
"metu-webmail-mcp"
],
"env": {
"METU_USERNAME": "e123456@metu.edu.tr",
"METU_PASSWORD": "your_password"
}
}
}
}๐งฐ Available Tools
Tool | Description |
| Returns overall account summary, email address, all folder metrics, and total unread count. |
| Lists all mailbox folders with total and unread email counts. |
| Lists recent emails from a folder (e.g. |
| Searches emails by text query, sender, recipient, subject, date ranges, unread only, or flagged only. |
| Reads full email content, decoded headers, markdown/html body, attachments list, and optionally marks as read. |
| Downloads/extracts attachment base64 content by filename or index. |
| Sends an email via METU SMTP with optional HTML body, CC, BCC, and file attachments. |
| Replies to an existing email with automatic message threading and quoting. |
| Forwards an existing email with optional comments to new recipients. |
| Updates flags (read/unread, flagged/starred). |
| Moves an email from one folder to another. |
| Moves an email to Trash or permanently deletes it. |
๐งช Testing
Run unit and integration tests:
uv run pytest -v๐ License
MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Email infrastructure for AI agents โ send, receive, search, and reply to email over MCP.
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Email inboxes for AI agents: send, receive, reply, search, and manage threaded email over MCP.
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables 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.1040710MIT
- 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.16421MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI models to send, receive, search, and manage emails via SMTP/IMAP, including support for attachments, contacts, and advanced search.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/atesahmet0/metu-webmail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server