Gmail Server for Model Context Protocol (MCP)
Note: This server enables an MCP client to read, remove, and send emails. However, the client prompts the user before conducting such activities.
Components
Tools
- send-email
- trash-email
- mark-email-as-read
- get-unread-emails
- read-email
- open-email
Setup
Gmail API Setup
- Add OAuth scope
https://www.googleapis.com/auth/gmail/modify
- Create an OAuth Client ID for application type "Desktop App"
- Download the JSON file of your client's OAuth keys
- Rename the key file and save it to your local machine in a secure location. Take note of the location.
Authentication
--token-path
.[your-home-folder]
.:[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
Usage with Desktop App
~/Library/Application\ Support/Claude/claude_desktop_config.json
. [object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
Troubleshooting with MCP Inspector
Gmail Server for Model Context Protocol (MCP)
Note: This server enables an MCP client to read, remove, and send emails. However, the client prompts the user before conducting such activities.
Components
Tools
- send-email
- trash-email
- mark-email-as-read
- get-unread-emails
- read-email
- open-email
Setup
Gmail API Setup
- Add OAuth scope
https://www.googleapis.com/auth/gmail/modify
- Create an OAuth Client ID for application type "Desktop App"
- Download the JSON file of your client's OAuth keys
- Rename the key file and save it to your local machine in a secure location. Take note of the location.
Authentication
--token-path
.[your-home-folder]
.:[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
Usage with Desktop App
~/Library/Application\ Support/Claude/claude_desktop_config.json
. [object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |
[object Object] | [object Object] |