G

Gmail

Integrates Gmail functionality, enabling email search, message retrieval, and attachment downloads v...

180 views
0 installs
Updated Sep 9, 2025
Not audited
Integrates Gmail functionality, enabling email search, message retrieval, and attachment downloads via Google Apps Script.
  1. Create and Deploy a Google Apps Script Web App

    • Go to Google Apps Script and start a new project.
    • Copy the entire contents of the provided code.gs file (from the MCP Gmail repo or instructions).
    • Paste the code into the Script Editor.
  2. Configure Deployment

    • Click on Deploy > New deployment in the Apps Script editor.
    • Select "Web app" as the deployment type.
    • Set the following settings:
      • Execute as: Me
      • Who has access: Anyone
    • Click Deploy and authorize the permissions required by the script:
      1. Click Review Permissions when prompted.
      2. Select your Google account.
      3. Click Advanced if you see a warning.
      4. Click Go to [Your Project Name] (unsafe).
      5. Click Allow to grant the necessary Gmail permissions.
  3. Obtain Your Deployment URL

    • After deployment, copy the Web App URL provided by Google.
  4. Set Up Your API Key

    • Generate a secure, random string to use as your API key. (Example: use a password generator to create a random string, e.g., n3a0wrt0EKw9fj2e.)
  5. Enter ENV Values in FastMCP

    • In the FastMCP connection interface, click your "Install Now" button for this integration.
    • When prompted for ENV variables:
      • Fill GAS_ENDPOINT with your copied Web App URL from step 3.
      • Fill VALID_API_KEY with your generated API key from step 4.
  6. Save and Connect

    • Confirm and save your changes within FastMCP. Your Gmail integration will now be configured through the MCP Gmail server.

Quick Start

View on GitHub

More for Productivity

View All →

More for Communication

View All →

Similar MCP Servers

G

Gmail

Manage your emails effortlessly with a standardized interface for drafting, sending, retrieving, and organizing messages. Streamline your email workflow with complete Gmail API coverage, including label and thread management.

Communication

Report Issue

Thank you! Your issue report has been submitted successfully.