Gmail Server for MCP logo

Gmail Server for MCP

by MCP-Mirror

This MCP server integrates with Gmail to enable sending, removing, reading, drafting, and responding to emails. It allows an MCP client to interact with a user's Gmail account, with user prompts before actions are taken.

View on GitHub

Last updated: N/A

What is Gmail Server for MCP?

This is a Model Context Protocol (MCP) server that provides an interface for interacting with Gmail. It allows MCP clients to send, remove, read, draft, and respond to emails through the Gmail API.

How to use Gmail Server for MCP?

To use this server, you need to set up the Gmail API, configure OAuth credentials, and provide the paths to the credentials and token files when starting the server. The server can then be integrated with an MCP client like Claude Desktop by configuring the client to use the server's command and arguments. MCP Inspector can also be used to test the server.

Key features of Gmail Server for MCP

  • Sends emails to specified recipients

  • Moves emails to the trash

  • Marks emails as read

  • Retrieves unread emails

  • Retrieves and displays email content

  • Opens emails in the browser

Use cases of Gmail Server for MCP

  • Integrating Gmail functionality into AI assistants

  • Automating email tasks through a controlled interface

  • Providing email access within a secure environment

  • Building custom email workflows with MCP clients

FAQ from Gmail Server for MCP

What is the purpose of this server?

This server allows MCP clients to interact with a Gmail account for tasks like sending, reading, and managing emails.

What is MCP?

MCP stands for Model Context Protocol. It is a protocol that facilitates communication and interaction between different software components.

How do I set up the Gmail API?

You need to create a Google Cloud project, enable the Gmail API, configure an OAuth consent screen, add the necessary OAuth scope, and create an OAuth Client ID.

What is the purpose of the credentials file?

The credentials file contains the OAuth keys for your Gmail API client. It is used to authenticate with the Gmail API.

Where do I store the access tokens?

The access tokens are stored in a file path specified by the --token-path parameter. This file is used to store and retrieve access and refresh tokens for the application.