Unified Email MCP server - read/send mail via a self-hosted Mox server, Gmail (keychain app passwords), or local Thunderbird
Project description
aistudio-emailmcp
Unified Email MCP server. Read and send mail from three kinds of accounts through one MCP interface:
- Mox — a self-hosted Mox mail server, managed over SSH
- Gmail — via IMAP with an app password stored in the macOS Keychain
- Thunderbird — reads the local Thunderbird profile directly (no credentials needed)
Built for AI Studio but works with any MCP client.
Install
uvx aistudio-emailmcp # run directly
# or
pip install aistudio-emailmcp
Configuration
Optional config file at ~/.config/emailmcp/config.json:
{
"mox": {
"server": "mail.example.com",
"path": "/opt/mox",
"user": "root"
},
"accounts": {
"work": "me@example.com"
}
}
mox.server— SSH host of your Mox server. Leave unset if you don't run Mox; the mox_* tools will say so instead of failing.accounts— maps short account names to full sender addresses formox_send/email_reply.
Gmail
Store an app password in the keychain; accounts are then auto-discovered by gmail_accounts:
security add-generic-password -a 'you@gmail.com' -s 'Gmail' -w 'your-app-password'
Thunderbird
Nothing to configure — the default profile under ~/Library/Thunderbird/Profiles is found automatically (thunderbird_accounts).
Tools
| Tool | Description |
|---|---|
mox_accounts / mox_list / mox_read / mox_search / mox_send |
Self-hosted Mox server over SSH |
gmail_accounts / gmail_list / gmail_read / gmail_send |
Gmail via IMAP/SMTP, keychain app password (metadata-only account listing) |
thunderbird_accounts / thunderbird_list / thunderbird_read |
Local Thunderbird profile |
email_reply |
Reply to a message (Mox) |
MCP client config
{
"mcpServers": {
"email": {
"command": "uvx",
"args": ["aistudio-emailmcp"]
}
}
}
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aistudio_emailmcp-0.1.0.tar.gz.
File metadata
- Download URL: aistudio_emailmcp-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cdf60257048d8d6e7045788987cc2d29593ac06eaa18dcecdcb1631dbe73bc4
|
|
| MD5 |
61530239cf0885d3c2ccf17340cf346a
|
|
| BLAKE2b-256 |
48e637ee89cf1c1b4005923764ddbb872dfd3af8f0ea3642e0187f860c7706fb
|
File details
Details for the file aistudio_emailmcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aistudio_emailmcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59de047ea44a4876ac599caa48d42fb487436777e28028712b17e948a5724067
|
|
| MD5 |
06f5add5ac99fc80f644e1801e88ebf4
|
|
| BLAKE2b-256 |
10b69e79489100953532e5ba1907e07f0f44025a7ae54aa068137d1b83401df8
|