gmail-mcp
Provides tools for reading, sending, and managing Gmail emails, including searching, marking as read, and retrieving labels.
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-mcpshow me my unread emails from today"
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 Server
MCP server for Gmail integration with Claude Code.
Setup
1. Create Google Cloud Credentials
Go to Google Cloud Console
Create a new project (or select existing)
Enable the Gmail API
Go to Credentials → Create Credentials → OAuth 2.0 Client ID
Application type: Desktop app
Download the JSON file
Rename to
credentials.jsonand place in this folder
2. Install Dependencies
cd D:\Projects\gmail-mcp
pip install -r requirements.txt3. First-time Authentication
Run once to authorize:
python server.pyThis will open a browser for OAuth consent. After authorizing, a token.json file is created.
4. Add to Claude Code
Add to your MCP settings (%APPDATA%\Claude\claude_desktop_config.json or VS Code settings):
{
"mcpServers": {
"gmail": {
"command": "python",
"args": ["D:\\Projects\\gmail-mcp\\server.py"]
}
}
}Related MCP server: gmail-mcp-server
Tools
Tool | Description |
| Get all emails from today |
| Get emails with optional search query |
| Get full email by ID |
| Advanced email search |
| Mark emails as read |
| Send an email |
| List Gmail labels |
Security
Do not commit these files:
credentials.json- OAuth client credentialstoken.json- Your auth token
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-qualityFmaintenanceEnables reading, sending, searching, and managing Gmail through Claude using the official Google Gmail API.Last updated2103MIT
- Alicense-qualityDmaintenanceEnables AI-powered inbox management with natural language commands through Claude Desktop. Supports sending, reading, searching, organizing emails, and managing labels using Gmail API with automatic authentication.Last updated8MIT
- Flicense-qualityDmaintenanceEnables Claude to read unread emails and create draft responses using the Gmail API.Last updated
- Alicense-qualityDmaintenanceEnables Claude to read, search, send, and manage Gmail messages and threads through natural language.Last updated213MIT
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Connect Claude to Fathom meeting recordings, transcripts, and summaries
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/edarrington/gmail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server