gmail-read-mcp
gmail-read-mcp
Schreibgeschützter Gmail-MCP-Server, der auf ein einzelnes Postfach beschränkt ist. Stellt über stdio zwei Tools bereit:
list_emails – listet E-Mails, die in einem Datumsbereich empfangen wurden: Metadaten + Ausschnitt, älteste zuerst (max. 500)
read_email – liest die vollständigen Header und den Textkörper einer E-Mail anhand der ID
Keine Schreib-, Sende-, Beschriftungs- oder Löschfunktionen. Jedes Ergebnis enthält einen jump_url-Deep-Link (rfc822msgid:-Suche), der die E-Mail für jeden öffnet, der im Postfach angemeldet ist. E-Mails, die vom Postfach selbst gesendet wurden (die Antworten des Teams), sind standardmäßig ausgeschlossen; Spam und Papierkorb sind immer ausgeschlossen.
Google-OAuth-Einrichtung
Erstellen Sie ein Google-Cloud-Projekt (getrennt von jedem Produktionsprojekt – der Zustimmungsbildschirm ist pro Projekt) und aktivieren Sie die Gmail-API.
Setzen Sie den OAuth-Zustimmungsbildschirm auf Intern (überspringt die Überprüfung des eingeschränkten Bereichs für den
gmail.readonly-Bereich).Erstellen Sie einen OAuth-Client vom Typ Desktop-App und laden Sie die Client-JSON herunter.
Führen Sie den einmaligen Zustimmungsablauf aus, während Sie als Zielpostfach angemeldet sind:
node scripts/gmail-oauth-once.mjs <path-to-client-secret.json>Er gibt das Aktualisierungstoken und das Postfach aus, an das es gebunden ist.
Das Aktualisierungstoken läuft nicht ab, aber Google widerruft Tokens mit Gmail-Bereich, wenn sich das Kontopasswort ändert. Wenn der Server mit invalid_grant fehlschlägt, führen Sie Schritt 4 erneut aus und ersetzen Sie GMAIL_REFRESH_TOKEN.
Related MCP server: Gmail MCP Server
Lokale Einrichtung
cp .env.example .env
# Fill in GMAIL_CLIENT_ID, GMAIL_CLIENT_SECRET, GMAIL_REFRESH_TOKEN
npm install
npm startTesten
npm testMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables reading, sending, archiving, and managing Gmail emails and labels through Google OAuth authentication, acting as an OAuth proxy to the Gmail API.23111MIT
- AlicenseAqualityDmaintenanceProvides access to Gmail functionalities including listing unread emails, searching via query syntax, and managing messages through archiving or marking as read. It enables MCP clients to securely interact with and organize email data using the Gmail API.5MIT
- AlicenseAqualityDmaintenanceEnables reading Gmail emails through the Model Context Protocol, supporting listing, searching, and retrieving email details with OAuth 2.0 authentication.419MIT
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Gmail, enabling email search, unread listing, message and thread retrieval, and draft reply preparation without sending.231MIT
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gaberogan/gmail-read-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server