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.
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/edarrington/gmail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server