mcpdirectory.dev
9,129 servers · updated 23 Sept

Google Gmail MCP server

official from A1 X Tech Active last commit 2 d
{
  "mcpServers": {
    "a1-x-tech-google-gmail": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-gmail@latest"
      ],
      "env": {
        "GOOGLE_GMAIL_CLIENT_ID": "<google_gmail_client_id>",
        "GOOGLE_GMAIL_CLIENT_SECRET": "<google_gmail_client_secret>",
        "GOOGLE_GMAIL_REFRESH_TOKEN": "<google_gmail_refresh_token>",
        "GOOGLE_GMAIL_ACCESS_TOKEN": "<google_gmail_access_token>"
      }
    }
  }
}
file .mcp.json (in your project root)install npx -y mcp-google-gmailversion 0.1.0

What it does

MCP server for Gmail API that lets AI apps search, read, and send emails, manage drafts, labels, and trash through plain language commands. Designed for developers building AI applications that need Gmail integration with explicit control over destructive operations.

  • Search and read unread emails from a specific time period to triage which ones need responses.
  • Compose email replies as drafts for review before sending, keeping sending as a separate deliberate step.
  • Move emails to trash as a reversible alternative to permanent deletion, with no permanent delete capability.

Tools this server exposes

ToolDoes
search_messagesSearch Gmail messages using Gmail query syntax with support for filtering by sender, subject, date and other criteria.
read_messageRead a single email message with decoded body content truncated at an explicit limit and attachments as metadata.
read_threadRead an entire email thread with all messages and their contents.
create_draftCreate a new draft email in a thread for review before sending.
update_draftUpdate the content of an existing draft email.
send_messageSend an email directly or send an existing draft message.
delete_draftDelete a draft email without sending it.
manage_labelsAdd, remove, or organize labels on emails.
move_to_trashMove emails to trash for reversible deletion within approximately 30 days.

Before you enable it

An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.