The Gmail MCP Server

Let Claude, ChatGPT or any AI agent search, read, draft and send your email with the standard Gmail tools. Clam adds what a typical Gmail MCP leaves out: rules in your own words, your approval before anything sensitive, office hours and a log of every call.

The Gmail tools your agent already knows, behind a policy check.

Each Shell is its own MCP server, with its own address and rules. Your agent calls the tools as usual. A call your rules don't allow returns a tool error with the reason and never reaches Gmail.

Clam sits in between

Control

Rules compiled to Cedar.

Write "Read receipts and bills. Never send." Clam compiles it into Cedar policy. Anything no rule allows is denied by default.

Office hours.

Give each agent a weekly schedule. Outside it, every call is refused, and the agent is told when it can come back.

Trust

Ask me before.

A rule can hold any tool but search for your approval. The agent gets pending_approval and an approval_id. Once you approve in the console, WhatsApp, Telegram or Slack, redeem_approval runs the action once, exactly as asked.

Audit log.

Every call, allowed or denied, is logged with the rule that decided it.

Security

Least privilege.

An agent gets only what its Shell's rules allow. Revoke one agent's key and the others keep working.

No email stored.

Clam proxies requests to Gmail and never stores the email content.

Tokens outside our database.

Your Google tokens stay with Clerk, our authentication platform.

CASA AL1assessed by TAC SecuritySecurity manifesto

Standard Gmail tools

Find and read

  • search

    Find messages matching a query.

  • read

    Open one message.

Organize

  • archive

    Take a message out of the inbox.

  • delete

    Move a message to the trash.

  • restore

    Undo an archive or a delete.

  • mark_read

    Mark a message as read.

  • mark_unread

    Mark a message as unread.

Write

  • create_draft

    Save a new email or a reply as a draft.

  • send

    Send a new email.

  • reply

    Reply to a thread.

  • reply_all

    Reply to everyone on To and Cc.

  • forward

    Forward a message with its body, attachments and inline images. Starts a new thread.

AttachmentsComing soon

Several attachments on send and create_draft, and reading the ones your rules allow. forward carries attachments today.

Connect your agent

Gmail MCP, with and without Clam.

CapabilityGmail by OAuth scopeGmail through Clam
What the agent can reachEverything the scope grantsOnly what your rules allow
Rules by sender, category or recipientNoYes, compiled to Cedar
Approval before an action runsDepends on the clientpending_approval, on any tool but search
Time-based accessNoOffice hours per Shell
Audit trailNo per-call logEvery call, with the rule that decided it
Different rules per agentOne grant per appA Shell per agent: its own address, key and rules
Multiple attachmentsMost connectors pass them as base64 inside the tool callComing soon

Gmail MCP questions

Still have questions?

Email us at support@useclam.ai

Give your agents an inbox you control

Share your inbox with your first agent in minutes and see every action it takes.

Get started withGmail