Feedback

Gmail MCP Server — by highlight-ing

@highlight-ing Claim

Basic information

Runtime
node
Category
License
MIT license
Transports
stdio
Author
highlight-ing
Submitted by
Community
Quality
10
Stars
1

About Gmail MCP Server

# Gmail MCP Server

Gmail MCP Server is a MCP server in the Communication category listed in the AddMCP.net directory, published by highlight-ing. Supported transport: stdio. Runtime: node. License: MIT license. The repository has 1 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "gmail-mcp-server-highlight-ing": {
            "command": "node",
            "args": [
                "get-refresh-token.js"
            ]
        }
    }
}

Gmail MCP Server — by highlight-ing config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "gmail-mcp-server-highlight-ing": {
            "command": "node",
            "args": [
                "get-refresh-token.js"
            ]
        }
    }
}

Gmail MCP Server — by highlight-ing tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Gmail MCP Server?

Gmail MCP Server is a Model Context Protocol (MCP) server that provides tools for interacting with the Gmail API. It enables developers to manage emails programmatically—listing, searching, sending, and modifying messages—through the MCP interface.

How to use Gmail MCP Server?

Ensure Node.js 14+ is installed. Set up a Google Cloud project, enable the Gmail API, and create OAuth 2.0 credentials (Web application) with redirect URI http://localhost:3001/code. Place a credentials.json file in the root directory, then run node get-refresh-token.js to authorize the required scopes (gmail.modify, gmail.send) and obtain a refresh token. Configure your MCP settings file (e.g., cline_mcp_settings.json or claude_desktop_config.json) with the server command pointing to the built index.js and the access token in environment variables. Finally, run npm run build and start the MCP client.

Key features of Gmail MCP Server

  • List recent emails with optional filtering
  • Advanced email search using Gmail query syntax
  • Send new emails with CC and BCC support
  • Modify email labels (archive, trash, mark read/unread)

Use cases of Gmail MCP Server

  • Automate inbox triage and label management
  • Send programmatic replies or notifications via email
  • Search for specific emails by sender, subject, or attachment
  • Integrate email actions into AI-powered workflows

Frequently asked questions

1 What dependencies are required to run Gmail MCP Server?

Node.js version 14 or higher, a Google Cloud project with the Gmail API enabled, and OAuth 2.0 credentials (Client ID and Client Secret) are required.

2 How does authentication work?

The server uses OAuth 2.0 with a refresh token. Run node get-refresh-token.js to open a browser for consent, then the token is saved to token.json and the refresh token is displayed.

3 What Gmail API permissions does the server request?

It requests two scopes: https://www.googleapis.com/auth/gmail.modify and https://www.googleapis.com/auth/gmail.send.

4 How do I configure the server in an MCP client?

Add an entry to the mcpServers object in your MCP settings file with command node, args pointing to the built build/index.js, and an environment variable GOOGLE_ACCESS_TOKEN set to the obtained access token.

5 What email operations can I perform with this server?

You can list emails, search emails using Gmail query syntax, send emails with optional CC/BCC, and modify email labels (e.g., archive, trash, mark as read/unread).

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬