Gmail

by kazuph

9 945 downloads Not rated yet MIT

About

Integrates Gmail functionality, enabling email search, message retrieval, and attachment downloads via Google Apps Script.

Details

Repository
kazuph/mcp-gmail-gas
License
MIT

Explore

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Gmail
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @kazuph/mcp-gmail-gas
    Environment
    • GAS_ENDPOINT YOUR_DEPLOYMENT_URL
    • VALID_API_KEY YOUR_API_KEY

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Node.js 18+ (install via brew install node)
- Gmail account
- Google Apps Script deployment
- Claude Desktop (install from https://claude.ai/desktop)

gmail_search_messages

Search for emails using Gmail search query syntax (e.g., 'subject:Meeting newer_than:1d')

gmail_get_message

Get the full content and details of a specific email

gmail_download_attachment

Download an attachment from a specific email

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

Linux

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

Macos

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

Windows

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

MCP Gmail

Model Context Protocol server for Gmail integration. This allows Claude Desktop (or any MCP client) to interact with your Gmail account through Google Apps Script.

<a href="https://glama.ai/mcp/servers/7awla69pjq">@kazuph/mcp-gmail-gas MCP server</a>

Quick Start (For Users)

Prerequisites

- Node.js 18+ (install via brew install node) - Gmail account - Google Apps Script deployment - Claude Desktop (install from https://claude.ai/desktop)

Configuration

1. Deploy the Google Apps Script
- Visit Google Apps Script and create a new project
- Copy the entire contents of code.gs and paste it into the script editor
- Click on "Deploy" > "New deployment"
- Select "Web app" as the deployment type
- Configure the following settings:
- Execute as: Me
- Who has access: Anyone
- Click "Deploy"
- When prompted, review and authorize the app to access your Gmail account
- Copy the deployment URL and generate a random API key for security

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.