---
title: "MCP for Gmail"
description: "A hosted Gmail MCP server for Claude, ChatGPT and any MCP client: twelve Gmail tools behind a Cedar policy check, plus approvals, office hours and audit logs."
route: /gmail-mcp
---

# 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.

[Get started with Gmail](https://console.useclam.ai/get-early-access?cta=markdown) · [Read the quickstart](https://useclam.ai/docs/get-started/quickstart)

## 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.

### Control

**Rules compiled to Cedar.** Write "Read receipts and bills. Never send." Clam compiles it into [Cedar policy](https://www.cedarpolicy.com/). 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](https://clerk.com), our authentication platform.

CASA AL1, assessed by TAC Security. [Security manifesto](https://useclam.ai/security).

### 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.

#### Attachments (coming soon)

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

[Connect your agent](https://useclam.ai/docs/get-started/quickstart)

## 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

### What is a Gmail MCP server?

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.

### How is Clam different from a Gmail connector?

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.

### Which agents work with it?

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.

### How does my agent authenticate?

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.

### What does my agent see when a call is denied?

A tool result marked isError, with a message it can pass on to you. Nothing reaches Gmail.

### Can my agent send attachments?

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.

### Does Clam store my emails?

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.

### How much does it cost?

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.
