thunderbird-mcp-server
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., "@thunderbird-mcp-serversend an email to jane@example.com about the project deadline"
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.
thunderbird-mcp-server
An MCP (Model Context Protocol) server that gives AI assistants like Claude the ability to send, read, and search emails directly — no UI automation, no browser extensions, just clean IMAP/SMTP over SSL.
Built for Claude Code, but works with any MCP-compatible client.
What it does
Instead of driving an email client's UI with clicks and keystrokes, this server exposes email operations as structured tools that an AI assistant can call programmatically:
You: "list my recent emails"
Claude Code → calls list_emails() via MCP → IMAP fetch → structured resultsRelated MCP server: mcp-imap
Tools
Tool | Description |
| Send an email with To, Subject, Body, optional CC/BCC |
| List recent emails in any folder (INBOX, Sent, Drafts, etc.) |
| Read the full content of a specific email by ID |
| Search emails by subject or sender |
| List all available mail folders |
Architecture
┌─────────────┐ stdio (JSON-RPC) ┌──────────────┐ IMAP/SMTP (SSL) ┌─────────────┐
│ Claude Code │ ◄──────────────────► │ server.py │ ◄────────────────► │ Mail Server │
│ (MCP Client) │ │ (MCP Server) │ │ (any IMAP) │
└─────────────┘ └──────────────┘ └─────────────┘Transport: stdio with JSON-RPC — Claude Code launches the server as a subprocess
Reading: IMAP4_SSL (port 993) — encrypted connection, server-side search
Sending: SMTP_SSL (port 465) — encrypted, authenticated relay
Auth: credentials via environment variables, never hardcoded
Setup
Prerequisites
Python 3.9+
An IMAP/SMTP email account
1. Clone and install
git clone https://github.com/yuvi2118/thunderbird-mcp-server.git
cd thunderbird-mcp-server
python3 -m venv venv
source venv/bin/activate
pip install "mcp[cli]>=1.0.0"2. Configure
Copy the example env file and fill in your credentials:
cp .env.example .env
# Edit .env with your email credentials3. Register with Claude Code
claude mcp add email -s user \
-e EMAIL_USER=your_username \
-e EMAIL_PASS=your_password \
-e EMAIL_IMAP_SERVER=your.mail.server \
-e EMAIL_SMTP_SERVER=your.mail.server \
-e "EMAIL_FROM_NAME=Your Name" \
-- python3 /path/to/thunderbird-mcp-server/server.pyRestart Claude Code. The email tools are now available in every session.
4. Test with MCP Inspector
npx @modelcontextprotocol/inspector -- bash run.shOpens a web UI at localhost:6274 where you can call each tool interactively.
Configuration
All configuration is via environment variables:
Variable | Required | Description |
| Yes | IMAP/SMTP login username |
| Yes | IMAP/SMTP login password |
| Yes | IMAP server hostname |
| Yes | SMTP server hostname |
| No | IMAP port (default: 993) |
| No | SMTP port (default: 465) |
| No | Display name in sent emails |
| No | From address in sent emails |
Screenshots
MCP Inspector — listing emails

MCP Inspector — sending email

Claude Code — live demo

Usage examples
Once registered, just talk naturally in Claude Code:
> list my emails
> read email 748
> search emails from "professor name"
> send an email to john@example.com about the meeting tomorrow
> show my sent folderTech stack
Python — standard library only (imaplib, smtplib, email) + MCP SDK
MCP SDK — compatible with both v1 (
FastMCP) and v2 (MCPServer)Security — SSL/TLS for all connections, credentials via env vars following 12-factor principles
License
MIT
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.
Stateful email for AI agents — read inboxes, reply in-thread, draft with approval.
AI email inbox and sending tools with attachments, search, live events, and webhooks.
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/yuvi2118/thunderbird-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server