gmail-mcp
Allows searching, reading, archiving, trashing, marking read/unread, and managing labels for Gmail messages and threads.
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-mcpsearch my recent unread emails"
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-mcp
MCP server for Gmail — search, read, archive, and manage your email from any MCP client.
Setup
Add to your MCP client configuration:
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": ["-y", "@d-mato/gmail-mcp"]
}
}
}On first launch, a browser window will open for Google account authorization. After granting access, the token is stored locally at ~/.gmail-mcp/tokens.json and you won't need to authorize again.
Related MCP server: Gmail Plugin MCP Server
Available Tools
Messages
Tool | Description |
| Search messages using Gmail query syntax (e.g. |
| Get the full content of a message by ID |
| Get all messages in a thread by thread ID |
| Download an attachment (inline for images/text, or save to disk) |
| Archive a message (remove from inbox) |
| Archive multiple messages in a single API call |
| Move a message to trash |
| Move multiple messages to trash in a single API call |
| Remove a message from trash |
| Mark a message as read |
| Mark a message as unread |
Threads
Tool | Description |
| Archive all messages in a thread (remove from inbox) |
| Move all messages in a thread to trash |
| Remove a thread from trash |
| Mark all messages in a thread as read |
| Mark all messages in a thread as unread |
Labels
Tool | Description |
| List all labels |
| Add a label to a message |
| Remove a label from a message |
| Create a new label |
| Delete a label |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server that integrates with Gmail to enable sending, reading, and managing emails through tools like send-email, trash-email, get-unread-emails, and read-email.Last updated73GPL 3.0
- Alicense-qualityDmaintenanceAn MCP server that enables Gmail integration, allowing users to manage emails (send, receive, read, trash, mark as read) directly through MCP clients like Claude Desktop.Last updated1MIT
- Alicense-qualityCmaintenanceAn MCP server that provides read, label, and draft access to multiple Gmail accounts from a single server, never sending email.Last updated58MIT
- Flicense-qualityCmaintenanceEnables searching, reading, and drafting emails across multiple Gmail accounts through a single MCP server.Last updated
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
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/d-mato/gmail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server