KosmoKrator

communication

Zoho Mail MCP Integration for LangChain

Connect Zoho Mail to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

6 functions 5 read 1 write Manual OAuth token auth

Connect Zoho Mail to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Zoho Mail MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-zoho-mail": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=zoho-mail",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=zoho-mail --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Zoho Mail instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Zoho Mail Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Zoho Mail integration catalog.

MCP toolSource functionTypeDescription
integration__zoho_mail__zohomail_list_messages zoho-mail.zohomail_list_messages Read List email messages in a Zoho Mail folder. Returns message summaries including sender, subject, and date.
integration__zoho_mail__zohomail_get_message zoho-mail.zohomail_get_message Read Get a single email message from Zoho Mail by ID. Returns full message content, headers, and attachment info.
integration__zoho_mail__zohomail_send_message zoho-mail.zohomail_send_message Write Send a new email message via Zoho Mail. Supports to, cc, bcc, subject, and HTML or plain text content.
integration__zoho_mail__zohomail_list_folders zoho-mail.zohomail_list_folders Read List all email folders in a Zoho Mail account, including Inbox, Sent, Drafts, Trash, and custom folders.
integration__zoho_mail__zohomail_list_tasks zoho-mail.zohomail_list_tasks Read List tasks from Zoho Mail. Returns task details including title, status, due date, and priority.
integration__zoho_mail__zohomail_get_current_user zoho-mail.zohomail_get_current_user Read Get the current user's Zoho Mail account information. Returns account IDs needed for other Zoho Mail operations.

Related Zoho Mail Pages