MCP server · Communication
Gmail MCP
Google's hosted Gmail MCP server (Developer Preview): search and read mail, create drafts and change labels with your own OAuth client.
Quick verdict
The first-party Gmail server to watch, with a deliberately small action surface: read, draft and label. Today it suits Workspace developers in Google's preview program; grant only the scopes Google lists, keep sending in Gmail itself, and treat every message the assistant reads as untrusted input.
- MaintainerGoogle (official)
- Security scopeRead-write
- Transportsstreamable-http
- Install channelremote · https://gmailmcp.googleapis.com/mcp/v1
- EvidenceNot tested yet (sources checked)
- LicenseProprietary · Proprietary hosted service
Gmail MCP is Google's own hosted MCP server for Gmail, one of Google's per-product Google Workspace MCP servers, and it is in Developer Preview. Its documented tools search threads, read threads, list labels and drafts, create drafts, and add or remove labels on messages and threads. No documented tool sends, forwards or deletes mail: Google says a draft waits in Gmail for you to review and send. Google marks its label-removal tools destructive, and they accept system labels such as INBOX. You connect with an OAuth client you create in your own Google Cloud project, marked "Use this client for an AI-powered agent", after enabling the Gmail API and the Gmail MCP API. Google's setup lists the gmail.readonly and gmail.compose scopes, and Google describes gmail.compose as allowing you to manage drafts and send email. Use requires membership in the Google Workspace Developer Preview Program, which asks for a Google Workspace account.
Install Gmail MCP
This configuration is Google's documented entry for Antigravity (Antigravity 2.0, the IDE and the CLI), added to ~/.gemini/config/mcp_config.json; Antigravity names the endpoint serverUrl. Google-hosted, in Developer Preview: you need membership in the Google Workspace Developer Preview Program, which asks for a Google Workspace account. In a Google Cloud project, enable the Gmail API and the Gmail MCP API, set up the OAuth consent screen (Internal if you can, otherwise External with yourself as a test user), add the gmail.readonly and gmail.compose scopes Google lists, and create a Web application OAuth client with the redirect URI https://antigravity.google/oauth-callback and "Use this client for an AI-powered agent" selected. For Claude.ai or Claude Desktop (Pro, Max, Team or Enterprise plans), Google documents a custom connector instead: add https://claude.ai/api/mcp/auth_callback as the client's redirect URI and enter the same client ID and secret in the connector. For other clients Google gives only the server URL, Streamable HTTP and OAuth 2.0. If you are asked to sign in about every hour, your client is not requesting offline access (access_type=offline). Drive and Calendar are separate Google servers.
http https://gmailmcp.googleapis.com/mcp/v1
{
"mcpServers": {
"gmail": {
"serverUrl": "https://gmailmcp.googleapis.com/mcp/v1",
"oauth": {
"clientId": "<GOOGLE_OAUTH_CLIENT_ID>",
"clientSecret": "<GOOGLE_OAUTH_CLIENT_SECRET>"
}
}
}
}Credentials
| Name | Required | What it is for |
|---|---|---|
GOOGLE_OAUTH_CLIENT_ID | Required | The client ID of a Web application OAuth client you create in your own Google Cloud project, with "Use this client for an AI-powered agent" selected and your client's redirect URI added (Antigravity: https://antigravity.google/oauth-callback). Google rejects requests to the Gmail MCP server from user-delegated clients without that setting. The name is OpenSourcesAI's placeholder for Google's OAUTH_CLIENT_ID. |
GOOGLE_OAUTH_CLIENT_SECRET | Required | That OAuth client's secret, which Google's Antigravity configuration places in mcp_config.json next to the client ID, so keep that file private. Claude.ai and Claude Desktop take the same client ID and secret in a custom connector instead of a file. The name is OpenSourcesAI's placeholder for Google's OAUTH_CLIENT_SECRET. |
Verified configurations
Not run by us yet. This profile is Not tested yet (sources checked): the install channel, config entry, credentials and license were checked against the source and upstream metadata, but no configuration has been installed, discovered and executed in a recorded environment. When one is, it appears here with the eight scope dimensions below.
Best for
Google Workspace users in the Developer Preview Program who want an assistant to search, summarize and triage mail and prepare replies as drafts that a person sends.
Why use it
It is Google's own server, and its documented tools stop at drafts: nothing in the published tool list sends, forwards or deletes mail. Access runs through an OAuth client in your own Google Cloud project, under the Workspace admin's API controls.
Tradeoffs
It is a Developer Preview: you must join Google's Workspace Developer Preview Program, which asks for a Google Workspace account and does not say whether personal Google accounts qualify, and the program's terms let Google use data sent through preview APIs to improve them and bar giving access to people outside your domain before general availability. Setup is heavier than most servers: a Google Cloud project, two APIs, a consent screen and a Web application OAuth client marked for AI agents, whose client secret Antigravity keeps in a plain config file. The gmail.compose scope Google's setup lists is one Google describes as allowing you to send email, so the grant can send mail through the Gmail API even though no documented MCP tool does. Google's tool reference says the label tools need gmail.modify, which the setup does not list, and Google marks the label-removal tools destructive. Every email the assistant reads is untrusted input that can carry prompt injection; Google warns that a client using its Workspace MCP servers can read, modify and delete data in your Google account, and tells you to screen prompts and responses, for example with Model Armor. Google plans charges for agent tool use above standard daily limits.
Upstream state
no upstream snapshot. Lifecycle is derived from a committed upstream snapshot at build time, never authored by hand.
Editorial details
Grade B: Not tested yet (sources checked). Re-review is due by 2027-02-16. Config entries, credential names and package status can change upstream; verify against the official documentation before granting an agent access.
Sources
- Google for Developers: Configure the Gmail MCP server (preview, setup, scopes, client configs, troubleshooting, security)
- Google for Developers: Gmail MCP reference (endpoint, tool list)
- Gmail MCP tool: create_draft (annotations, scopes)
- Gmail MCP tool: label_message (scopes)
- Gmail MCP tool: unlabel_message (destructive hint, system labels)
- Gmail API: Choose Gmail API scopes (scope descriptions)
- Google for Developers: Configure the Google Workspace MCP servers ("Each Google Workspace product has its own dedicated MCP server")
- Google for Developers: Configure security for Google Workspace MCP servers (Model Armor)
- Google Workspace Developer Preview Program (eligibility and terms)
- Google Workspace developer release notes (agentic OAuth client rule)
- Google Workspace: agent tools tiering model and quotas
- Google Workspace Updates: Agent tools and security updates for Google Workspace developers (2026-05-01)
- Google Cloud: Supported products, Google Cloud MCP servers (Workspace servers, launch stage)
Related MCP servers
- Google Calendar MCPGoogle's hosted Calendar MCP server (Developer Preview): read events and find free time; create, update and delete tools need a write scope.
- Slack MCPSearch, read and send Slack messages, canvases and files with your own permissions through Slack's official hosted MCP server.
- Google Developer Knowledge MCPSearch and read Google's official developer docs, or get a cited answer, from Google's hosted MCP server: three tools, all marked read-only.