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 |
| Archive a message (remove from inbox) |
| Archive multiple messages |
| Move a message to trash |
| Move multiple messages to trash |
| Remove a message from trash |
| Mark a message as read |
| Mark a message 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.
Latest Blog Posts
- 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