View as Markdown

Zoho Mail Integration

Manage Zoho Mail accounts, folders, messages, labels, search, and sending

The Zoho Mail integration provides access to manage Zoho Mail accounts, folders, messages, labels, search, and sending through the Integrate MCP server.

Installation

The Zoho Mail integration is included with the SDK:

import { zohoMailIntegration } from "integrate-sdk/server";

Setup

1. Create a Zoho Mail OAuth App

  1. Go to Zoho API Console
  2. Create a new OAuth application
  3. Configure your redirect URI
  4. Note your Client ID and Client Secret

2. Configure the Integration on Your Server

Add the Zoho Mail integration to your server configuration. The integration automatically reads ZOHO_MAIL_CLIENT_ID and ZOHO_MAIL_CLIENT_SECRET from your environment variables:

import { createMCPServer, zohoMailIntegration } from "integrate-sdk/server";
 
export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    zohoMailIntegration({
      scopes: ["ZohoMail.accounts.READ", "ZohoMail.messages.ALL", "ZohoMail.folders.ALL"], // Optional
    }),
  ],
});

You can override the environment variables by passing explicit values:

zohoMailIntegration({
  clientId: process.env.CUSTOM_ZOHO_MAIL_ID,
  clientSecret: process.env.CUSTOM_ZOHO_MAIL_SECRET,
      scopes: ["ZohoMail.accounts.READ", "ZohoMail.messages.ALL", "ZohoMail.folders.ALL"], // Optional
});

3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

import { client } from "integrate-sdk";
 
await client.authorize("zoho_mail");
const result = await client.zoho_mail.listAccounts({});
 
console.log(result);

If you're using a custom client, add the integration to the integrations array:

import { createMCPClient, zohoMailIntegration } from "integrate-sdk";
 
const customClient = createMCPClient({
  integrations: [zohoMailIntegration()],
});

Configuration Options

export interface ZohoMailIntegrationConfig {
  clientId?: string;

Default Scopes

These defaults are applied unless you override scopes in the integration config:

  • ZohoMail.accounts.READ
  • ZohoMail.messages.ALL
  • ZohoMail.folders.ALL

Tools

zoho_mail_list_accounts

Mail list accounts

No parameters.

zoho_mail_list_folders

Mail list folders

export interface ZohoMailListFoldersParams { account_id: string }

zoho_mail_list_messages

Mail list messages

export interface ZohoMailListMessagesParams { account_id: string;

zoho_mail_get_message

Mail get message

export interface ZohoMailGetMessageParams { account_id: string;

zoho_mail_send_message

Mail send message

export interface ZohoMailSendMessageParams { account_id: string;

zoho_mail_search_messages

Mail search messages

export interface ZohoMailSearchMessagesParams { account_id: string;

zoho_mail_list_labels

Mail list labels

export interface ZohoMailListLabelsParams { account_id: string }

Notes

  • Category: Communication
  • Authentication mode: OAuth