drio
Open app

Gmail MCP Server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

Gmail MCP Server is an integration tool that allows MCP clients to access and manage Gmail functionalities, enabling users to view and search their emails seamlessly.

To use the Gmail MCP Server, set up a Google Cloud Project, install the server package, configure it for your MCP client, and authenticate using OAuth2 to access your Gmail account.

  • View recent emails from your Gmail inbox - Search emails using Gmail's search syntax - Secure OAuth2 authentication with Gmail API
  1. Accessing recent emails directly from an MCP client.
  2. Searching for specific emails using advanced Gmail search queries.
  3. Integrating Gmail functionalities into custom applications or workflows.

Add to your AI client

Use these steps to connect Gmail MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "ajbr0wn-gmail-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-ajbr0wn-gmail-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "ajbr0wn-gmail-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-ajbr0wn-gmail-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "ajbr0wn-gmail-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-ajbr0wn-gmail-mcp-server-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "ajbr0wn-gmail-mcp-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-ajbr0wn-gmail-mcp-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "ajbr0wn-gmail-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-ajbr0wn-gmail-mcp-server-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "ajbr0wn-gmail-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-ajbr0wn-gmail-mcp-server-mcp-mirror"
      ]
    }
  }
}

FAQ

What is required to set up the Gmail MCP Server?

You need a Google Cloud Project with the Gmail API enabled and OAuth2 credentials.

Is the Gmail MCP Server secure?

Yes, it uses OAuth2 for secure authentication and only requests read access to your Gmail account.

Can I use this server with any MCP client?

Yes, it is designed to work with any MCP client that supports the Model Context Protocol.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":703,"uuid":"c3d94829-a498-451e-9ccf-ffa75e699413","name":"ajbr0wn_gmail-mcp-server","title":"Gmail MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:26:54.055Z","updated_at":"2025-02-23T07:16:03.086Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"gmail,mcp-server,email-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/ajbr0wn_gmail-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]