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
searchFind messages matching a query.
readOpen one message.
Organize
archiveTake a message out of the inbox.
deleteMove a message to the trash.
restoreUndo an archive or a delete.
mark_readMark a message as read.
mark_unreadMark a message as unread.
Write
create_draftSave a new email or a reply as a draft.
sendSend a new email.
replyReply to a thread.
reply_allReply to everyone on To and Cc.
forwardForward 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.
Gmail MCP, with and without Clam.
| Capability | Gmail by OAuth scope | Gmail through Clam |
|---|---|---|
| What the agent can reach | Everything the scope grants | Only what your rules allow |
| Rules by sender, category or recipient | No | Yes, compiled to Cedar |
| Approval before an action runs | Depends on the client | pending_approval, on any tool but search |
| Time-based access | No | Office hours per Shell |
| Audit trail | No per-call log | Every call, with the rule that decided it |
| Different rules per agent | One grant per app | A Shell per agent: its own address, key and rules |
| Multiple attachments | Most connectors pass them as base64 inside the tool call | Coming soon |
Gmail MCP questions
A server that speaks the Model Context Protocol and exposes Gmail as tools an agent can call: search, read, draft, send and more. Clam runs one for you over Streamable HTTP. You connect Gmail to Clam once, then point each agent at its Shell's address.
A connector links your agent straight to Gmail through an OAuth scope, so the agent can do whatever that scope allows. Clam sits in between: each agent gets a Shell with its own rules, approvals, office hours and audit log, and a call your rules don't allow never reaches Gmail.
Any MCP client that supports remote servers over Streamable HTTP, including Claude, ChatGPT, Codex, Gemini CLI, Grok, OpenClaw and Hermes. Clients that only speak SSE can't connect.
With OAuth where the client supports it, as Claude Code does through /mcp. Otherwise with a Bearer key made for that one client on the Shell's Install tab.
A tool result marked isError, with a message it can pass on to you. Nothing reaches Gmail.
The forward tool sends a message on with its attachments and inline images today. Several attachments on the send and create_draft tools are coming soon.
No. Gmail stays the source of truth. Clam reads a message only to classify it or enforce a rule, and keeps an audit record of what your agents did.
Starter is $2.99 a month and Pro $6.99, after a 14-day free trial, no card needed. Approvals, office hours and the audit log are on both plans.
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 with