koda-email
MCP server for email integration, part of the Koda AI coding agent.
Read, search, and send email via IMAP/SMTP. Works with any email provider (Gmail, Outlook, FastMail, self-hosted). Communicates via the Model Context Protocol over stdio.
Auto-provisioning
Koda auto-installs and connects this server when email access is needed. Just ask — "check my email" — and koda handles the rest.
On first use, you'll be prompted for IMAP/SMTP credentials.
Manual setup
Add to .mcp.json (use env var references — don't hardcode credentials):
⚠️ Security: Never hardcode email credentials in
.mcp.json— if that file is committed to a repo, your inbox is exposed. SetEMAIL_USERandEMAIL_PASSas environment variables or use koda's built-in keystore (/providerwizard stores credentials encrypted at~/.config/koda/keys).
MCP tools exposed
| Tool | Description |
|---|---|
EmailRead |
Read emails from inbox or specified folder |
EmailSearch |
Search emails by subject, sender, date, or body |
EmailSend |
Compose and send emails |
License
MIT