Gmail MCP Server logo

Gmail MCP Server

by cristip73

The Gmail MCP Server enables Claude Desktop App to interact with Gmail, providing capabilities for reading, searching, and sending emails. It uses the Model Context Protocol to provide a standardized interface.

View on GitHub

Last updated: N/A

What is Gmail MCP Server?

The Gmail MCP Server is a bridge between Claude AI and the Gmail API, allowing Claude to perform email operations such as sending, reading, and searching emails through a standardized Model Context Protocol (MCP) interface.

How to use Gmail MCP Server?

To use the server, you need to create a Google Cloud Project, enable the Gmail API, clone the repository, install dependencies, build the server, authenticate with Gmail, and then configure Claude Desktop to use the server by adding it to the Claude Desktop configuration file.

Key features of Gmail MCP Server

  • Send and receive emails

  • Search and filter emails

  • Manage email drafts

  • Manage labels

  • Attachment handling

Use cases of Gmail MCP Server

  • Automated email sending from Claude

  • Email summarization and analysis

  • Intelligent email searching

  • Drafting and scheduling emails

  • Managing email labels and categories

FAQ from Gmail MCP Server

What is the purpose of the TIME_ZONE environment variable?

The TIME_ZONE variable configures the timezone used by the server for displaying and querying emails. If not set, it defaults to GMT+0, which may cause incorrect date and time information.

What is the purpose of the DEFAULT_ATTACHMENTS_FOLDER environment variable?

The DEFAULT_ATTACHMENTS_FOLDER variable specifies the directory where email attachments will be saved. Setting this variable enables the attachment saving functionality.

How do I add the MCP server to Claude Desktop?

You need to go into Claude Desktop settings, enable Developer Mode, edit the config JSON file, and add a new entry under the 'mcpServers' section with the correct command, arguments, and environment variables.

What Gmail operations can Claude perform with this server?

Claude can send emails, reply to emails, forward emails, search for emails, read email content and attachments, work with Gmail categories and labels, and manage email drafts.

What is the Model Context Protocol (MCP)?

The Model Context Protocol (MCP) is a standardized interface that allows applications like Claude to interact with external services like Gmail in a secure and controlled manner.