gmail-mcp-server

gmail-mcp-server

2

The Gmail MCP Server project is a highly functional server that facilitates managing and interacting with Gmail accounts using the Model Context Protocol. Features include robust email searching, content retrieval, label and batch operations, and integration with MCP clients for enhanced email management.

Gmail MCP Server

This project implements a Model Context Protocol (MCP) server that interacts with Gmail accounts using IMAP and SMTP. It offers features such as email search, content retrieval, label management, batch operations, email sending, and forwarding. The server provides tools to handle a variety of email functions effectively and requires appropriate configuration of email credentials and server settings.

Features

  • Email Search: Search emails with various filters.
  • Email Content Retrieval: Access full email details.
  • Label Management: Create, rename, and manage labels.
  • Batch Operations: Execute label-related actions on multiple emails.
  • Email Sending and Forwarding: Send and forward emails with attachments.
  • Daily Email Count: Count received emails daily.

Setup

  1. Clone the repository.
  2. Install dependencies via uv.
  3. Configure Gmail credentials and server settings in a .env file.

Running the MCP Server

Activate the environment and execute the server script.

Integrating with MCP Client

Configure the client with server settings for integration.