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.
Built-in integration
koda-email is compiled into Koda as a direct library call — no setup needed. Just ask “check my email” and koda handles the rest.
On first use, you’ll be prompted for IMAP/SMTP credentials.
The standalone MCP server binary is also available for use in other editors.
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