Feedback

Gmail Server for Model Context Protocol (MCP) — by MCP-Mirror

@mcp-mirror Claim

Basic information

Runtime
python
Category
License
GPL-3.0 license
Transports
stdio
Author
mcp-mirror
Submitted by
Community
Quality
10

About Gmail Server for Model Context Protocol (MCP)

Mirror of

Gmail Server for Model Context Protocol (MCP) is a MCP server in the Communication category listed in the AddMCP.net directory, published by MCP-Mirror. Supported transport: stdio. Runtime: python. License: GPL-3.0 license. Source code is hosted on github.com. Related topics: email-server, gmail, mcp.

Setup

{
    "mcpServers": {
        "jasonsum_gmail-mcp-server": {
            "command": "npx",
            "args": [
                "@modelcontextprotocol/inspector",
                "uv",
                "run",
                "[absolute-path-to-git-repo]/src/gmail/server.py",
                "--creds-file-path",
                "[absolute-path-to-credentials-file]",
                "--token-path",
                "[absolute-path-to-access-tokens-file]"
            ]
        }
    }
}

Gmail Server for Model Context Protocol (MCP) — by MCP-Mirror config

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

{
    "mcpServers": {
        "jasonsum_gmail-mcp-server": {
            "command": "npx",
            "args": [
                "@modelcontextprotocol/inspector",
                "uv",
                "run",
                "[absolute-path-to-git-repo]/src/gmail/server.py",
                "--creds-file-path",
                "[absolute-path-to-credentials-file]",
                "--token-path",
                "[absolute-path-to-access-tokens-file]"
            ]
        }
    }
}

Gmail Server for Model Context Protocol (MCP) — by MCP-Mirror 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 Server for Model Context Protocol (MCP)?

This MCP server integrates with Gmail to enable sending, removing, reading, drafting, and responding to emails. The MCP client prompts the user before conducting such activities.

How to use Gmail Server for Model Context Protocol (MCP)?

First, set up a Google Cloud project, enable the Gmail API, configure an OAuth consent screen with test user, add OAuth scope https://www.googleapis.com/auth/gmail/modify, and create an OAuth Client ID for a Desktop App. Download the JSON credentials file and note its absolute path. Then configure an MCP client (e.g., Claude Desktop) using uv with parameters --creds-file-path and --token-path. On startup, a browser-based authentication flow saves token credentials to the specified token path.

Key features of Gmail Server for Model Context Protocol (MCP)

  • Send emails to a recipient with subject and content
  • Move emails to trash by ID
  • Mark emails as read by ID
  • Retrieve a list of unread emails
  • Fetch full content of a specific email (marks as read)
  • Open an email in the default browser by ID

Use cases of Gmail Server for Model Context Protocol (MCP)

  • An AI assistant sends an email on behalf of the user
  • Automatically trash or mark-as-read bulk messages
  • Read unread emails and summarize them for the user
  • Open a specific email in the browser for manual review

Frequently asked questions

1 What Gmail OAuth scopes are required?

The server uses https://www.googleapis.com/auth/gmail.modify which allows reading, sending, and modifying emails.

2 How is authentication handled?

On server start, a browser-based OAuth flow launches. Token credentials are saved to the file specified by --token-path and reused on subsequent runs.

3 What are the required dependencies?

A Google Cloud project with the Gmail API enabled, a Desktop App OAuth client, and uv for running the server. No Python dependencies beyond those bundled with the server are mentioned.

4 Where are credentials and tokens stored?

Credentials are stored in the file path given to --creds-file-path. Access and refresh tokens are stored in the file path given to --token-path. Both are local file paths on the user’s machine.

5 How is the server invoked?

The server is run via uv run gmail --creds-file-path <path> --token-path <path>. It communicates over stdio (standard MCP transport).

Comments

No comments yet

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

Sign In

Feedback 💬