ajbr0wn/gmail-mcp-server
If you are the rightful owner of gmail-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Gmail MCP Server integrates Gmail capabilities into MCP clients, enabling users to view and search emails securely using OAuth2 authentication.
The Gmail MCP Server is designed to seamlessly integrate Gmail functionalities into Model Context Protocol (MCP) clients, such as Claude Desktop. It allows users to access their Gmail inbox, view recent emails, and perform searches using Gmail's search syntax. The server ensures secure access through OAuth2 authentication, requiring users to authorize the application via their browser on the first use. Once authorized, the credentials are stored locally, allowing for easy access in future sessions. The server is built to provide a robust and secure way to interact with Gmail, offering only read access to ensure user privacy and data security. It supports automatic token refresh to maintain seamless connectivity without requiring repeated user intervention.
Features
- View recent emails from your Gmail inbox
- Search emails using Gmail's search syntax
- Secure OAuth2 authentication with Gmail API
- Automatic token refresh for seamless connectivity
- Local storage of credentials for easy future access
Usages
usage with claude desktop
{ "mcpServers": { "gmail": { "command": "/path/to/conda/envs/mcp-gmail/bin/python", "args": ["-m", "gmail_mcp_server.server"], "env": { "PYTHONPATH": "/path/to/gmail-mcp-server/src", "GMAIL_CREDENTIALS_FILE": "/path/to/credentials.json", "GMAIL_TOKEN_FILE": "/path/to/token.json" } } } }
Tools
search_emails
Search Gmail emails with a query