Feedback

Gmail MCP Server — by kazuph

@kazuph Claim

Basic information

Runtime
JavaScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
kazuph
Submitted by
Community
Quality
10
Stars
56

About Gmail MCP Server

Integrate Gmail API to search Gmail inbox for unread mail, retrieve messages, and download attachments using Google Apps Script.

Gmail is a MCP server in the Productivity category listed in the AddMCP.net directory, published by kazuph. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 56 GitHub stars. Source code is hosted on github.com. Related topics: api-integration, communication, community, email-management, gmail.

Setup

{
    "mcpServers": {
        "gmail": {
            "command": "npx",
            "args": [
                "-y",
                "@kazuph/mcp-gmail-gas"
            ],
            "env": {
                "GAS_ENDPOINT": "YOUR_DEPLOYMENT_URL",
                "VALID_API_KEY": "YOUR_API_KEY"
            }
        }
    }
}

Gmail MCP Server — by kazuph config

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

{
    "mcpServers": {
        "gmail": {
            "command": "npx",
            "args": [
                "-y",
                "@kazuph/mcp-gmail-gas"
            ],
            "env": {
                "GAS_ENDPOINT": "YOUR_DEPLOYMENT_URL",
                "VALID_API_KEY": "YOUR_API_KEY"
            }
        }
    }
}

Gmail MCP Server — by kazuph 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?

A Model Context Protocol (MCP) server implementation for the Gmail API, providing a standardized interface for email management, sending, and retrieval. It enables AI agents and MCP-compatible clients to interact with Gmail programmatically through a unified set of tools.

How to use Gmail?

After setting up a Google Cloud project and enabling the Gmail API, users run npx @shinzolabs/gmail-mcp auth to obtain an OAuth refresh token. The server can then be installed locally via npx or by building from source, or used as a remote server through Smithery CLI. Configuration variables such as CLIENT_ID, CLIENT_SECRET, and REFRESH_TOKEN are set in the MCP client's config file.

Key features of Gmail

  • Complete coverage of the Gmail API (messages, threads, labels, drafts, settings)
  • Send, draft, and manage emails with full message manipulation
  • Label management with customizable colors and visibility
  • Thread operations for conversation-based management
  • Settings management (vacation responder, IMAP/POP, language, filters)
  • History tracking for mailbox changes
  • Secure OAuth2 authentication using Google Cloud credentials

Use cases of Gmail

  • Automate email sending and drafting from within an AI assistant
  • Manage labels and threads to organize a Gmail inbox programmatically
  • Configure vacation responders or IMAP/POP settings without manual clicks
  • Integrate with building an AI-powered email client or chatbot

Frequently asked questions

1 What are the prerequisites for using this server?

You need Node.js 18+, a Google Cloud project with the Gmail API enabled, and an OAuth 2.0 Client ID (Desktop app type). Each user must run the auth command to generate a refresh token.

2 How do I obtain a Gmail OAuth refresh token?

After setting up the Google API client once per organization, each user copies the OAuth keys file to ~/.gmail-mcp/gcp-oauth.keys.json and runs npx @shinzolabs/gmail-mcp auth. A browser window opens to approve scopes, and the refresh token is saved.

3 Is telemetry collected, and can I opt out?

Yes, limited anonymous telemetry is collected by default to improve the product. No personally identifiable information is included. You can disable telemetry by setting the environment variable TELEMETRY_ENABLED=false.

4 Where are credentials and configuration files stored?

By default, the Google API client keys are stored at ~/.gmail-mcp/gcp-oauth.keys.json and user credentials at ~/.gmail-mcp/credentials.json. You can override these paths using GMAIL_OAUTH_PATH and GMAIL_CREDENTIALS_PATH.

5 Can I run this server remotely (e.g., on Smithery)?

Yes. Use the Smithery CLI (npx -y @smithery/cli install @shinzo-labs/gmail-mcp) and provide your CLIENT_ID, CLIENT_SECRET, and REFRESH_TOKEN when prompted. The server will be hosted remotely and accessible to your MCP client.

Videos

Tutorials, guides, and showcases related to Gmail MCP Server — by kazuph. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

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

Sign In

Feedback 💬