Gmail MCP
by ykuchiki
Gmail MCP is a server implementation that enables AI assistants to interact with Gmail through the MCP (Model Context Protocol). It provides tools for sending emails, managing drafts, reading emails, searching through your inbox, and managing Gmail labels.
Last updated: N/A
What is Gmail MCP?
Gmail MCP is a server that allows AI assistants to interact with Gmail using the Model Context Protocol (MCP). It provides functionalities for managing emails, drafts, labels, and searching through the inbox.
How to use Gmail MCP?
To use Gmail MCP, you need to clone the repository, set up a virtual environment, install dependencies, configure OAuth credentials with the Gmail API, add the server to your MCP client configuration, and then run the server. The server will prompt you to authenticate with your Gmail account on the first run.
Key features of Gmail MCP
Send emails and create drafts
Read and search emails
Delete emails
Manage Gmail labels (create, update, delete)
OAuth2.0 authentication with Gmail API
Use cases of Gmail MCP
Integrating Gmail functionality into AI assistants
Automating email tasks
Building custom email workflows
Programmatically managing Gmail labels
Searching and filtering emails based on specific criteria
FAQ from Gmail MCP
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It's a protocol that allows different services and models to communicate and share context.
What Python version is required?
What Python version is required?
Python 3.11 or higher is required.
Do I need a Google Cloud Platform project?
Do I need a Google Cloud Platform project?
Yes, you need a Google Cloud Platform project with the Gmail API enabled.
How do I set up OAuth credentials?
How do I set up OAuth credentials?
You need to create a project in Google Cloud Console, enable the Gmail API, create OAuth credentials, and download the credentials JSON file as credentials/client_secret_gmail_oauth.json
.
Where can I find MCP client documentation?
Where can I find MCP client documentation?
Please refer to your MCP client's official documentation for specific instructions on adding MCP servers.