Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

Gmail

von pulsemcpVersion 0.4.12i★ –iLäuft auf deinem Computer
Name in der Registrycom.pulsemcp/gmail

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

MCP server for Gmail with OAuth2 (personal) and service account (Workspace) support.

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Chat & E-Mail
  • Das musst du eintragen: GMAIL_OAUTH_CLIENT_ID, GMAIL_OAUTH_CLIENT_SECRET, GMAIL_OAUTH_REFRESH_TOKEN, GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Das trägst du selbst ein: GMAIL_OAUTH_CLIENT_ID, GMAIL_OAUTH_CLIENT_SECRET, GMAIL_OAUTH_REFRESH_TOKEN, GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL, GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY, GMAIL_IMPERSONATE_EMAIL, GMAIL_ENABLED_TOOLGROUPS

Als geheim markierte Werte sind Schlüssel zu deinem Konto. Gib sie nie weiter und füge sie nie in einen Chat ein.

Du brauchst

  • npmNode.js installiert (für den Befehl npx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ],
      "env": {
        "GMAIL_OAUTH_CLIENT_ID": "your-value",
        "GMAIL_OAUTH_CLIENT_SECRET": "your-value",
        "GMAIL_OAUTH_REFRESH_TOKEN": "your-value",
        "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GMAIL_IMPERSONATE_EMAIL": "your-value",
        "GMAIL_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

Führe das in deinem Terminal aus

claude mcp add gmail --env GMAIL_OAUTH_CLIENT_ID=your-value --env GMAIL_OAUTH_CLIENT_SECRET=your-value --env GMAIL_OAUTH_REFRESH_TOKEN=your-value --env GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL=your-value --env GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY=your-value --env GMAIL_IMPERSONATE_EMAIL=your-value --env GMAIL_ENABLED_TOOLGROUPS=your-value -- npx -y gmail-workspace-mcp-server

Trag die leeren Werte ein, bevor du ihn startest.

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ],
      "env": {
        "GMAIL_OAUTH_CLIENT_ID": "your-value",
        "GMAIL_OAUTH_CLIENT_SECRET": "your-value",
        "GMAIL_OAUTH_REFRESH_TOKEN": "your-value",
        "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GMAIL_IMPERSONATE_EMAIL": "your-value",
        "GMAIL_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "gmail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ],
      "env": {
        "GMAIL_OAUTH_CLIENT_ID": "your-value",
        "GMAIL_OAUTH_CLIENT_SECRET": "your-value",
        "GMAIL_OAUTH_REFRESH_TOKEN": "your-value",
        "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GMAIL_IMPERSONATE_EMAIL": "your-value",
        "GMAIL_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Werte, die du selbst einträgst

  • GMAIL_OAUTH_CLIENT_ID geheim env
    OAuth2 client ID from Google Cloud Console (for personal Gmail accounts).
  • GMAIL_OAUTH_CLIENT_SECRET geheim env
    OAuth2 client secret from Google Cloud Console.
  • GMAIL_OAUTH_REFRESH_TOKEN geheim env
    Refresh token from the OAuth2 setup script.
  • GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL env
    Service account email address (for Google Workspace).
  • GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY geheim env
    Service account private key in PEM format (for Google Workspace).
  • GMAIL_IMPERSONATE_EMAIL env
    Email address to impersonate (required for service account mode).
  • GMAIL_ENABLED_TOOLGROUPS env
    Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 6. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde über die Domain pulsemcp.com bestätigt (die Registry prüft, wem die Domain gehört)

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Chat & E-Maili

  • Mehr Sterne als 0 % der anderen 1766 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 27 % der anderen 1766 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 1766 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist Gmail sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Das musst du eintragen: GMAIL_OAUTH_CLIENT_ID, GMAIL_OAUTH_CLIENT_SECRET, GMAIL_OAUTH_REFRESH_TOKEN, GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.4.12) kam vor 2 Monaten in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: Vexa, emailmd, MCP WhatsApp Cloud

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

Vexa

von Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

Läuft in der Cloud★ 2.949Apache-2.0Aktualisiert vor 2 Monaten
Installieren

emailmd

von anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

Computer oder Cloud★ 1.385MITAktualisiert vor 31 Tagen
Installieren

MCP WhatsApp Cloud

von codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

Läuft auf deinem Computer★ 277MITAktualisiert vor 5 Monaten
Installieren

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

Gmail Workspace MCP Server

An MCP (Model Context Protocol) server that provides Gmail integration for AI assistants. Supports both personal Gmail accounts (via OAuth2) and Google Workspace accounts (via service account with domain-wide delegation).

Features

  • List Email Conversations: Retrieve emails with label filtering
  • Get Email Details: Fetch full email content including body and attachments info
  • Search Emails: Search using Gmail's powerful query syntax
  • Manage Emails: Mark as read/unread, star/unstar, archive, apply labels
  • Create Drafts: Compose draft emails with reply support
  • Send Emails: Send new emails or replies, directly or from drafts
  • Two Auth Methods: OAuth2 for personal accounts, Service Account for Google Workspace

Installation

npm install gmail-workspace-mcp-server

Or run directly with npx:

npx gmail-workspace-mcp-server

Authentication

This server supports two authentication modes. Choose the one that matches your account type.

Option 1: OAuth2 (Personal Gmail Accounts)

Use this for personal @gmail.com accounts or any Google account without Workspace admin access.

Prerequisites
  1. Go to Google Cloud Console
  2. Create or select a project
  3. Enable the Gmail API
  4. Configure the OAuth consent screen:
  • Choose External user type
  • Add yourself as a test user
  • Publish the app (click "Publish" on the consent screen) to prevent refresh tokens from expiring every 7 days. No full Google verification is needed for personal use.
  1. Create OAuth 2.0 credentials:
  • Choose Desktop app as the application type
  • Important: Create new credentials _after_ publishing the app
  1. Copy the Client ID and Client Secret
Getting a Refresh Token

Run the built-in setup command:

npx gmail-workspace-mcp-server oauth-setup <client_id> <client_secret>

You can also pass credentials via environment variables:

GMAIL_OAUTH_CLIENT_ID=... GMAIL_OAUTH_CLIENT_SECRET=... npx gmail-workspace-mcp-server oauth-setup

Port conflict? If port 3000 is already in use, specify a different port:

PORT=3001 npx gmail-workspace-mcp-server oauth-setup <client_id> <client_secret>

Desktop app credentials automatically allow http://localhost redirects on any port, so no additional Google Cloud Console configuration is needed.

This will open your browser for Google sign-in and print the refresh token. You only need to do this once — the refresh token does not expire (as long as the OAuth consent screen is published).

Environment Variables (OAuth2)
VariableRequiredDescription
GMAIL_OAUTH_CLIENT_IDYesOAuth2 client ID from Google Cloud Console
GMAIL_OAUTH_CLIENT_SECRETYesOAuth2 client secret
GMAIL_OAUTH_REFRESH_TOKENYesRefresh token from the setup script
GMAIL_ENABLED_TOOLGROUPSNoComma-separated list of tool groups (default: all)
Claude Desktop Configuration (OAuth2)
{

"mcpServers": { "gmail": { "command": "npx", "args": ["gmail-workspace-mcp-server"], "env": { "GMAIL_OAUTH_CLIENT_ID": "your-client-id.apps.googleusercontent.com", "GMAIL_OAUTH_CLIENT_SECRET": "your-client-secret", "GMAIL_OAUTH_REFRESH_TOKEN": "your-refresh-token" } } } }

Option 2: Service Account (Google Workspace)

Use this for Google Workspace organizations where a domain admin can grant domain-wide delegation.

Prerequisites
  1. Go to Google Cloud Console
  2. Create or select a project
  3. Enable the Gmail API
  4. Create a service account with domain-wide delegation enabled
  5. In Google Workspace Admin Console, grant the service account access to the following scopes:
  • https://www.googleapis.com/auth/gmail.readonly (read emails)
  • https://www.googleapis.com/auth/gmail.modify (modify labels)
  • https://www.googleapis.com/auth/gmail.compose (create drafts)
  • https://www.googleapis.com/auth/gmail.send (send emails)
  1. Download the JSON key file
Environment Variables (Service Account)
VariableRequiredDescription
GMAIL_SERVICE_ACCOUNT_CLIENT_EMAILYesService account email address
GMAIL_SERVICE_ACCOUNT_PRIVATE_KEYYesService account private key (PEM format)
GMAIL_IMPERSONATE_EMAILYesEmail address to impersonate
GMAIL_ENABLED_TOOLGROUPSNoComma-separated list of tool groups to enable (default: all groups)

You can find the client_email and private_key values in your service account JSON key file.

Claude Desktop Configuration (Service Account)
{

"mcpServers": { "gmail": { "command": "npx", "args": ["gmail-workspace-mcp-server"], "env": { "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "my-service-account@my-project.iam.gserviceaccount.com", "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "[PopNx MCP ตัดค่าที่หน้าตาเหมือนกุญแจออก]", "GMAIL_IMPERSONATE_EMAIL": "user@yourdomain.com" } } } }

Note: For the private key, you can either:

  1. Use the key directly with \n for newlines (as shown above)
  2. Set the environment variable from a shell that preserves newlines

Tool Groups

The server supports three tool groups for permission-based access control:

GroupTools IncludedRisk Level
readonlylist_email_conversations, get_email_conversation, search_email_conversations, list_draft_emailsLow
readwriteAll readonly tools + change_email_conversation, upsert_draft_emailMedium
readwrite_externalAll readwrite tools + send_emailHigh

By default, all tool groups are enabled. To restrict access, set the GMAIL_ENABLED_TOOLGROUPS environment variable:

# Read-only access (no write/send capabilities)

GMAIL_ENABLED_TOOLGROUPS=readonly

Read and write, but no external sending

GMAIL_ENABLED_TOOLGROUPS=readwrite

Full access including sending emails (default)

GMAIL_ENABLED_TOOLGROUPS=readwrite_external

Security Note: The send_email tool is in a separate readwrite_external group because it can send emails externally, which carries higher risk than internal operations like modifying labels or creating drafts.

Available Tools

list_email_conversations

List email conversations from Gmail with optional filtering.

Parameters:

  • count (number, optional): Number of emails to return (default: 10, max: 100)
  • labels (string, optional): Comma-separated label IDs to filter by (default: "INBOX")
  • sort_by (string, optional): Sort order - "recent" (newest first) or "oldest" (default: recent)
  • after (string, optional): Only return emails after this datetime, exclusive (ISO 8601 UTC, e.g., "2024-01-15T14:30:00Z")
  • before (string, optional): Only return emails before this datetime, exclusive (ISO 8601 UTC, e.g., "2024-01-15T14:30:00Z")

Example:

{

"count": 20, "labels": "INBOX,STARRED", "after": "2024-01-15T00:00:00Z", "before": "2024-01-20T23:59:59Z" }

get_email_conversation

Retrieve the full content of a specific email by its ID.

Parameters:

  • email_id (string, required): The unique identifier of the email

Example:

{

"email_id": "18abc123def456" }

search_email_conversations

Search emails using Gmail's powerful query syntax.

Parameters:

  • query (string, required): Gmail search query (e.g., "from:user@example.com", "is:unread", "subject:meeting")
  • count (number, optional): Maximum results to return (default: 10, max: 100)

Example:

{

"query": "from:alice@example.com is:unread", "count": 20 }

change_email_conversation

Modify email labels and status (read/unread, starred, archived).

Parameters:

  • email_id (string, required): The email ID to modify
  • status (string, optional): "read", "unread", or "archived"
  • is_starred (boolean, optional): Star or unstar the email
  • labels (string, optional): Comma-separated labels to add
  • remove_labels (string, optional): Comma-separated labels to remove

Example:

{

"email_id": "18abc123def456", "status": "read", "is_starred": true }

list_draft_emails

List draft emails from Gmail with optional thread filtering.

Parameters:

  • count (number, optional): Maximum number of drafts to return (default: 10, max: 100)
  • thread_id (string, optional): Filter drafts by conversation thread ID

Example:

{

"thread_id": "18abc123def456" }

upsert_draft_email

Create, update, or delete a draft email. Optionally as a reply to an existing conversation.

Parameters:

  • draft_id (string, optional): ID of an existing draft to update or delete (omit to create a new draft)
  • delete (boolean, optional): Set to true to delete the draft specified by draft_id. All other parameters are ignored when deleting
  • to (string, required for create/update): Recipient email address
  • subject (string, required for create/update): Email subject
  • plaintext_body (string): Plain text body content (at least one of plaintext_body or html_body required for create/update)
  • html_body (string): HTML body content for rich text formatting (at least one of plaintext_body or html_body required for create/update)
  • cc (string, optional): CC recipients
  • bcc (string, optional): BCC recipients
  • thread_id (string, optional): Thread ID for replies
  • reply_to_email_id (string, optional): Email ID to reply to (sets References/In-Reply-To headers)

For create/update: at least one of plaintext_body or html_body must be provided. If both are provided, a multipart email is sent with both versions.

Example (create new draft):

{

"to": "recipient@example.com", "subject": "Meeting Follow-up", "plaintext_body": "Thanks for the meeting today!" }

Example (update existing draft):

{

"draft_id": "r123456789", "to": "recipient@example.com", "subject": "Meeting Follow-up (revised)", "html_body": " Thanks for the meeting today! Check out the notes . " }

Example (delete a draft):

{

"draft_id": "r123456789", "delete": true }

send_email

Send an email directly or from an existing draft.

Parameters:

  • to (string, conditional): Recipient email (required unless sending from draft)
  • subject (string, conditional): Email subject (required unless sending from draft)
  • plaintext_body (string): Plain text body content (at least one of plaintext_body or html_body required, unless sending a draft)
  • html_body (string): HTML body content for rich text formatting (at least one of plaintext_body or html_body required, unless sending a draft)
  • cc (string, optional): CC recipients
  • bcc (string, optional): BCC recipients
  • `from_d

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen