zoho-mail-mcp
MCP server providing Claude read access to Zoho Mail for listing, searching, and reading emails, as well as saving drafts without sending them.
README
zoho-mail-mcp
A Model Context Protocol (MCP) server that gives Claude read access to Zoho Mail — list and search your inbox, read full email content, and save draft replies for you to review and send yourself. It never sends anything on its own.
Why this exists
Claude chat doesn't ship with a first party Zoho connector. This server
fills that gap the same way github-mcp fills it for GitHub: a small
local server Claude Desktop talks to over stdio, authenticated with your
own Zoho credentials.
What it can do
- List folders (Inbox, Drafts, Sent, custom folders)
- List recent emails in a folder
- Search emails using Zoho Mail's search syntax
- Read the full content of a specific email
- Save a draft reply to an email, properly threaded (To,
Re: subject, and the reply headers filled in automatically) - Save a new draft from scratch
It cannot send email. There is no send tool, on purpose — every
draft it creates sits in your Drafts folder until you open it in Zoho
Mail and send it yourself.
Setup
1. Clone and install
git clone https://github.com/JessicaTemplet/zoho-mail-mcp.git
cd zoho-mail-mcp
npm install
npm run build
2. Register a Self Client in the Zoho API Console
Zoho Mail's API uses OAuth2, not a simple token like GitHub's PATs, but for a personal script like this one, Zoho has a "Self Client" flow that skips the browser consent screen entirely.
- Go to api-console.zoho.com and sign in with the same Zoho account as your mailbox.
- Click GET STARTED, hover over Self Client, click CREATE NOW, then CREATE and OK.
- You'll land on a Client Secret tab showing a Client ID and Client Secret. Copy both — you'll need them below.
3. Generate an authorization code, then trade it for a refresh token
Still in the API Console, on the same Self Client:
-
Click the Generate Code tab.
-
Scope: paste this exactly —
ZohoMail.accounts.READ,ZohoMail.folders.READ,ZohoMail.messages.READ,ZohoMail.messages.CREATE -
Set an expiry time (10 minutes is plenty — you're about to use it immediately) and a description (e.g. "claude mcp"), then click CREATE.
-
Copy the authorization code it generates. It's only valid for the window you picked, so move to the next step right away.
-
Exchange it for tokens. Run this in a terminal (replace the three bracketed values):
curl "https://accounts.zoho.com/oauth/v2/token?client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET]&grant_type=authorization_code&code=[AUTH_CODE]"If your Zoho Mail is on a non-US data center (the URL you use to check mail is
mail.zoho.eu,.in, etc. instead ofmail.zoho.com), useaccounts.zoho.eu/.in/ etc. here instead. -
The response is JSON with an
access_token(ignore it, it expires in an hour) and arefresh_token(this is the one that matters — it doesn't expire on its own). Save the refresh token somewhere safe.
4. Add it to your Claude Desktop config
Open Claude Desktop → Settings → Developer → Edit Config, and add:
{
"mcpServers": {
"zoho-mail": {
"command": "node",
"args": ["/absolute/path/to/zoho-mail-mcp/dist/index.js"],
"env": {
"ZOHO_CLIENT_ID": "your-client-id",
"ZOHO_CLIENT_SECRET": "your-client-secret",
"ZOHO_REFRESH_TOKEN": "your-refresh-token"
}
}
}
}
If your account is outside the US data center, also add
"ZOHO_DATA_CENTER": "eu" (or in, com.au, jp, ca, sa) to the
env block.
5. Restart Claude Desktop
Notes
- Credentials are read from environment variables at runtime and never
written to disk by this server. Don't commit a
.envfile or your refresh token to this repo. - The refresh token doesn't expire on its own, but you can revoke it anytime from the API Console if you need to cut off access.
- Built against the official
@modelcontextprotocol/sdk, using nativefetchfor the Zoho REST calls (no Zoho SDK exists for this).
License
MIT, see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。