Gmail MCP Server logo

Gmail MCP Server

by MCP-Mirror

The Gmail MCP Server provides Gmail integration capabilities to MCP clients, such as Claude Desktop. It allows users to view recent emails and search their Gmail inbox using Gmail's search syntax.

View on GitHub

Last updated: N/A

What is Gmail MCP Server?

The Gmail MCP Server is a server that integrates with the Gmail API to provide email access and search functionality to Model Context Protocol (MCP) clients like Claude Desktop.

How to use Gmail MCP Server?

To use the server, you need to create a Google Cloud Project, enable the Gmail API, and create OAuth 2.0 credentials. Then, install the server using conda and configure Claude Desktop to connect to it by specifying the command, arguments, and environment variables for the server's execution. Finally, authorize the application in your browser when prompted.

Key features of Gmail MCP Server

  • View recent emails from your Gmail inbox

  • Search emails using Gmail's search syntax

  • Secure OAuth2 authentication with Gmail API

  • Resource access to recent emails

  • Tool support for email search

  • Automatic token refresh

Use cases of Gmail MCP Server

  • Accessing recent emails within an MCP client

  • Searching for specific emails using Gmail's search syntax within an MCP client

  • Integrating Gmail functionality into AI assistants like Claude

  • Automating email-related tasks within an MCP environment

FAQ from Gmail MCP Server

What is the purpose of this server?

This server provides Gmail integration to MCP clients, allowing them to access and search your Gmail inbox.

What is MCP?

MCP stands for Model Context Protocol. It's a protocol that allows different applications and services to communicate and share information.

How do I authenticate with Gmail?

The server uses OAuth2 authentication. You'll be prompted to authorize the application in your browser when you first try to access Gmail.

Where are my credentials stored?

Credentials are stored locally in the token file specified by the GMAIL_TOKEN_FILE environment variable.

What permissions does the server request?

The server only requests read access to your Gmail. It does not have write permissions.