gmail-mcp
Allows searching, reading, archiving, trashing, marking read/unread, and managing labels for Gmail messages and threads.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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 deployed
Maintenance
Related MCP Connectors
A MCP server for Gmail that lets you search, read, and draft emails and replies.
A MCP server for Outlook email that lets you search, read, and draft emails and replies.
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
An MCP server that provides email capabilities, hosted on Alpic platform
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP 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.72GPL 3.0
- AlicenseNot gradedqualityDmaintenanceAn 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.1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides read, label, and draft access to multiple Gmail accounts from a single server, never sending email.81 npmMIT
- AlicenseAqualityCmaintenanceGmail MCP server for searching, reading, and sending mail over MCP.152,410 npm5MIT