GmailMcpServer MCP Server

MCP server for Gmail integration with email categorization, search, archive, and delete capabilities

Local serverstdioTypeScript

What is the GmailMcpServer MCP server?

GmailMcpServer MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP server for Gmail integration with email categorization, search, archive, and delete capabilities.

What you get

A comprehensive Model Context Protocol (MCP) server that integrates with Gmail API to provide intelligent email management capabilities. Features advanced email categorization, search, archiving, deletion, and automated cleanup with 25+ MCP tools for complete email lifecycle management.

What the assistant can call

Once GmailMcpServer is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server
  • authenticate — The authenticate tool exposed by this server
  • list_emails — The list_emails tool exposed by this server
  • get_email_details — The get_email_details tool exposed by this server
  • categorize_emails — Analyze and categorize emails by importance using AI algorithms
  • search_emails — Advanced multi-criteria email search with intelligent filtering
  • save_search — The save_search tool exposed by this server
  • list_saved_searches — The list_saved_searches tool exposed by this server
  • archive_emails — The archive_emails tool exposed by this server
  • restore_emails — The restore_emails tool exposed by this server
  • create_archive_rule — The create_archive_rule tool exposed by this server
  • list_archive_rules — The list_archive_rules tool exposed by this server

Configuration and credentials

You will need 3 environment variables: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, STORAGE_PATH. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js 18+ and npm - Google Cloud Platform account with Gmail API enabled - OAuth2 credentials (Client ID and Client Secret)

Setting it up

Installation goes through your MCP client rather than a global install: point it at npm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

This sits in the team communication group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. GmailMcpServer's toolset — Prerequisites, authenticate, list_emails and 11 more — is a fair guide to whether it matches your workflow. It is maintained by kushal45; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against GmailMcpServer's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch GmailMcpServer.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the gmailmcpserver mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
authenticateThe authenticate tool exposed by this server.
list_emailsThe list_emails tool exposed by this server.
get_email_detailsThe get_email_details tool exposed by this server.
categorize_emailsAnalyze and categorize emails by importance using AI algorithms.
search_emailsAdvanced multi-criteria email search with intelligent filtering.
save_searchThe save_search tool exposed by this server.
list_saved_searchesThe list_saved_searches tool exposed by this server.
archive_emailsThe archive_emails tool exposed by this server.
restore_emailsThe restore_emails tool exposed by this server.
create_archive_ruleThe create_archive_rule tool exposed by this server.
list_archive_rulesThe list_archive_rules tool exposed by this server.
export_emailsExport emails to external formats with cloud upload support.
delete_emails⚠️ **Safety Note:** Always use dry_run: true first to preview deletions

How to install the GmailMcpServer MCP server

{
  "mcpServers": {
    "gmailmcpserver": {
      "command": "npx",
      "args": ["-y", "npm"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-value",
        "GOOGLE_CLIENT_SECRET": "your-value",
        "STORAGE_PATH": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 18+ and npm - Google Cloud Platform account with Gmail API enabled - OAuth2 credentials (Client ID and Client Secret)
VariableDescriptionRequired
GOOGLE_CLIENT_IDConfiguration value read at startup.Optional
GOOGLE_CLIENT_SECRETCredential the server authenticates with.Yes
STORAGE_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use GmailMcpServer to Prerequisites.
  • Use GmailMcpServer to authenticate.
  • Use GmailMcpServer to list emails.

Frequently asked questions

It connects GmailMcpServer to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Prerequisites, authenticate, list_emails, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with GmailMcpServer directly.