gmail-read-mcp
Provides read-only access to a Gmail mailbox, allowing listing emails by date range with metadata and snippet, reading full email headers and body text, and generating deep links to jump directly to emails.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gmail-read-mcplist emails from the past week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gmail-read-mcp
Read-only Gmail MCP server scoped to a single mailbox. Exposes two tools over stdio:
list_emails - list emails received in a date range: metadata + snippet, oldest-first (max 500)
read_email - read one email's full headers and body text by id
No write, send, label, or delete capabilities. Every result carries a jump_url
deep link (rfc822msgid: search) that opens the email for anyone signed into
the mailbox. Mail sent from the mailbox itself (the team's replies) is excluded
by default; spam and trash are always excluded.
Google OAuth setup
Create a Google Cloud project (separate from any production project — the consent screen is per-project) and enable the Gmail API.
Set the OAuth consent screen to Internal (skips restricted-scope verification for the
gmail.readonlyscope).Create an OAuth client of type Desktop app and download the client JSON.
Run the one-time consent flow signed in as the target mailbox:
node scripts/gmail-oauth-once.mjs <path-to-client-secret.json>It prints the refresh token and which mailbox it is bound to.
The refresh token has no expiry, but Google revokes Gmail-scope tokens when the
account password changes. If the server starts failing with invalid_grant,
re-run step 4 and replace GMAIL_REFRESH_TOKEN.
Related MCP server: Gmail MCP Server
Local setup
cp .env.example .env
# Fill in GMAIL_CLIENT_ID, GMAIL_CLIENT_SECRET, GMAIL_REFRESH_TOKEN
npm install
npm startTesting
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