zoho-mail-mcp
Provides tools to read, search, send, schedule, organize, and download email through the Zoho Mail REST API, including folder, label, attachment, and bulk update workflows.
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., "@zoho-mail-mcpShow me my unread emails from the Inbox."
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.
Zoho Mail MCP Server
An MCP (Model Context Protocol) server that connects AI assistants to Zoho Mail. Read, search, send, schedule, organize, and download mail through the official Zoho Mail REST API.
Tools
Tool | Description |
| Inspect accessible accounts and the selected account |
| List mail folders with unread/total counts |
| Create, rename, move, mark read, empty, or delete folders |
| List labels with colors and IDs |
| Create, update, or delete labels |
| List emails with rich filtering, sorting, and pagination |
| Read the full content of a specific email |
| Search with plain text or Zoho's advanced syntax |
| Send or schedule email with receipts and attachments |
| Save a draft or template, including reply threading |
| Reply or reply-all immediately or on a schedule |
| Bulk read, move, flag, label, archive, and spam actions |
| List attachment names, sizes, and IDs |
| Safely download an attachment locally |
| Trash or permanently delete with explicit confirmation |
Related MCP server: io.github.p-w-4-z/inbox-mcp
Setup
1. Create a Zoho API Client
Go to the Zoho API Console (use
.comfor US datacenter)Click Add Client > Self Client
Note your Client ID and Client Secret
2. Generate a Refresh Token
Run the interactive setup helper:
bun run setup.tsOr manually:
In the Self Client, generate a grant code with these scopes:
ZohoMail.accounts.READ,ZohoMail.folders.ALL,ZohoMail.messages.ALL,ZohoMail.tags.ALLSet duration to 10 minutes, add a description, and click Create
Copy the generated code and exchange it using the setup script
3. Verify Credentials
ZOHO_CLIENT_ID=your_id ZOHO_CLIENT_SECRET=your_secret ZOHO_REFRESH_TOKEN=your_token bun run setup.ts --verify4. Configure Your MCP Client
Claude Code (~/.claude.json)
{
"mcpServers": {
"zoho-mail": {
"command": "bun",
"args": ["run", "/path/to/zoho-mail-mcp/src/index.ts"],
"env": {
"ZOHO_CLIENT_ID": "your_client_id",
"ZOHO_CLIENT_SECRET": "your_client_secret",
"ZOHO_REFRESH_TOKEN": "your_refresh_token",
"ZOHO_DATACENTER": "eu"
}
}
}
}Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"zoho-mail": {
"command": "bun",
"args": ["run", "/path/to/zoho-mail-mcp/src/index.ts"],
"env": {
"ZOHO_CLIENT_ID": "your_client_id",
"ZOHO_CLIENT_SECRET": "your_client_secret",
"ZOHO_REFRESH_TOKEN": "your_refresh_token",
"ZOHO_DATACENTER": "eu"
}
}
}
}Environment Variables
Variable | Required | Description |
| Yes | OAuth2 Client ID from Zoho API Console |
| Yes | OAuth2 Client Secret |
| Yes* | OAuth2 Refresh Token (default profile; *or provide per-mailbox tokens) |
| No | Zoho datacenter: |
| No | Select a specific accessible account ID (single-mailbox mode) |
| No | Select an account by primary address or alias (single-mailbox mode) |
| No | Default profile name when tools omit |
| No | Multi-mailbox JSON array or comma list of names (see below) |
| No | Per-profile refresh token (e.g. |
| No | Prefer this address within the profile |
| No | Prefer this accountId within the profile |
| No | Per-request timeout; defaults to |
| No | Network/429/5xx retries; defaults to |
| No | Local request throttle; defaults to |
Multi-mailbox (fork)
Zoho mailbox delegation ("Delegated to me" in the web UI) does not expose the other user's messages through OAuth. Each person needs their own refresh token, minted while logged into Zoho as that user (same Self Client + scopes is fine).
JSON form:
ZOHO_DEFAULT_MAILBOX=agusti
ZOHO_MAILBOXES='[
{"name":"agusti","refreshToken":"1000.…","email":"agusti@cruceritis.com"},
{"name":"imma","refreshToken":"1000.…","email":"imma@cruceritis.com"}
]'Or env discovery:
ZOHO_REFRESH_TOKEN=1000.…agusti… # fallback / primary
ZOHO_DEFAULT_MAILBOX=agusti
ZOHO_MAILBOX_AGUSTI_REFRESH_TOKEN=1000.… # optional if same as ZOHO_REFRESH_TOKEN
ZOHO_MAILBOX_AGUSTI_EMAIL=agusti@cruceritis.com
ZOHO_MAILBOX_IMMA_REFRESH_TOKEN=1000.… # mint as Imma
ZOHO_MAILBOX_IMMA_EMAIL=imma@cruceritis.comTools accept optional mailbox (e.g. search_emails with mailbox: "imma").
Mint a second token (Imma)
Log into Zoho as Imma (or use a browser profile already as her).
API Console → same Self Client → Generate Code with the same scopes.
Exchange the code for a refresh token (
bun run setup.tsor curl).Put that token in
ZOHO_MAILBOX_IMMA_REFRESH_TOKEN(or the JSON entry).Restart the MCP server / Grok session.
Features
OAuth2 with serialized auto-refresh - concurrent requests share token refreshes
Resilient HTTP client - timeouts, exponential retry,
Retry-After, and structured Zoho errorsMulti-datacenter and multi-account support - route to eight Zoho regions and select the mailbox explicitly
Safe destructive operations - permanent deletion, folder emptying, and overwrites require confirmation
Rich search - plain text, exact phrases, fields, folders, labels, dates, flags, attachments, and conversations
Mailbox workflows - drafts, templates, scheduling, reply-all, attachments, labels, folders, and bulk updates
HTML to plain text - email content is converted to clean plain text for AI consumption
Search behavior
search_emails translates normal text to Zoho's required search syntax. For example, quarterly report searches for both words across the entire message. Use exactPhrase=true for an exact phrase, select a field such as subject or sender, or pass a complete expression such as subject:Invoice::has:attachment with rawSyntax=true.
Development
bun install
bun run typecheck
bun testRequirements
Bun runtime
A Zoho Mail account with API access
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 Servers
- AlicenseAqualityCmaintenanceMCP server for Zoho Mail — read, search, and send email via Claude. Supports listing inbox, searching by keyword or sender, reading full message bodies, and sending HTML email.41MIT
- AlicenseAqualityDmaintenanceProvider-agnostic email MCP server that connects any IMAP mailbox to AI assistants, enabling email management through natural language.8AGPL 3.0
- AlicenseAqualityCmaintenanceAn MCP server providing comprehensive email capabilities via IMAP and SMTP, enabling AI assistants to read, search, send, manage, schedule, and analyze emails across multiple accounts.4911,40689LGPL 3.0
- Alicense-qualityBmaintenanceAn MCP server that receives emails on your domain and allows AI assistants to search, read, and manage them via natural language queries.1,200MIT
Related MCP Connectors
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
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/agustif/zoho-mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server