gmail-mcp-java-server

gmail-mcp-java-server

0

The Gmail MCP Server is a Spring Boot application designed to facilitate interaction with Gmail through various tools such as sending emails and managing unread messages. It supports testing via a client tool using standard input and output.

Gmail MCP Server

This project is a Spring Boot MCP (Model Context Protocol) server for Gmail. It allows interaction with Gmail through the GMailer class, with features including moving emails to trash, marking emails as read, sending emails, retrieving unread messages, and reading emails. It also includes a client, ClientStdio, to test the MCP server functionality using standard I/O.

Features

  • GMailer Tools:
    • Moves, marks, and sends emails, and retrieves unread messages.
  • ClientStdio: Tests server functionality.

Prerequisites

  • Java 17 or higher
  • Maven
  • Gmail API credentials

Setup

  1. Clone the repository. 2. Configure Gmail API credentials. 3. Build the project.

Running the MCP Server

Run the server with Maven. Test with the ClientStdio class post-build.