gmail-mcp-server
The project integrates Gmail with the Model Context Protocol (MCP) to offer functionalities like sending, reading, and managing emails programmatically. It's designed for desktop applications, leveraging Google Cloud and OAuth for security, and simplifies email automation tasks.
Gmail Server for Model Context Protocol (MCP)
This MCP server integrates with Gmail to enable sending, removing, reading, drafting, and responding to emails. It includes components such as sending emails, trashing emails, marking emails as read, retrieving unread emails, reading email content, and opening emails in a browser.
Components
- send-email: Sends an email to a recipient.
- trash-email: Moves an email to trash.
- mark-email-as-read: Marks an email as read.
- get-unread-emails: Retrieves unread emails.
- read-email: Retrieves email content and marks it as read.
- open-email: Opens the email in a browser.
Setup
Instructions for setting up Gmail API, creating OAuth credentials, and authenticating are detailed. The setup includes creating a Google Cloud project, enabling Gmail API, configuring OAuth consent, and setting OAuth scopes.
Usage
Recommended for use with Claude Desktop through integration. It involves configuring the ~\Library\Application Support\Claude\claude_desktop_config.json
file for MCP client setup.
Troubleshooting
Testing the server can be done with MCP Inspector, tweaking parameters in command prompts accordingly.