Gmail MCP Server

Gmail MCP Server

gmail-mcp-java-server•bychristo707

A Spring Boot Model Context Protocol server that exposes Gmail tools for sending, reading, trashing, and organizing emails.

License: MIT License•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Exposes tools to trash an email and mark an email as read by ID.
  • •Provides tools to send an email to a recipient and read a specific email by ID.
  • •Includes a tool for retrieving unread messages.
  • •Ships a standard I/O client for testing the server's functionality.

BEST FOR

  • •Automating Gmail tasks such as reading, trashing, and marking messages as read through an MCP-enabled assistant.
  • •Sending emails from an MCP client to specified recipients.
  • •Reviewing unread Gmail messages programmatically.

ABOUT GMAIL-MCP-JAVA-SERVER

Gmail MCP Server is cataloged as an MCP server attributed to christo707. A Spring Boot Model Context Protocol server that exposes Gmail tools for sending, reading, trashing, and organizing emails. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Gmail MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What Gmail operations does the server expose?

It exposes tools for trashing emails, marking emails as read, sending emails, retrieving unread messages, and reading emails by ID.

Does the project include a way to test the MCP server?

Yes, it includes a ClientStdio client that interacts with the server over standard I/O.

Upstream README

View this exact version on GitHub

README.md · 6bd920d1034c · Fetched 2026-11-13 13:14:03 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Gmail MCP Server

This project is a Spring Boot MCP (Model Context Protocol) server for Gmail. It provides various tools for interacting with Gmail through the GMailer class. Additionally, it includes a client, ClientStdio, to test the MCP server functionality.

Features

  • GMailer Tools:

    • trashEmail: Moves an email to the trash given its ID.
    • markEmailAsRead: Marks an email as read given its ID.
    • sendEmail: Sends an email to a specified recipient.
    • getUnreadMessages: Retrieves unread messages.
    • readEmail: Reads an email given its ID.
  • ClientStdio: A client to test the MCP server functionality using standard I/O.

Prerequisites

  • Java 17 or higher
  • Maven
  • Gmail API credentials

Setup

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
    
  2. Configure Gmail API credentials:

    • Create a new Google Cloud project
    • Enable the Gmail API
    • Configure an OAuth consent screen
      • Select "external". However, we will not publish the app.
      • Add your personal email address as a "Test user".
    • Add OAuth scope https://www.googleapis.com/auth/gmail/modify
    • Create an OAuth Client ID for application type "Desktop App"
    • Download the JSON file of your client's OAuth keys
    • Rename the key file to credentials.json and save it to your local machine in a secure location. Take note of the location.
    • Place your credentials.json file in the src/main/resources directory.
  3. Build the project:

    mvn clean install
    

Running the MCP Server

To start the MCP server, run the following command:

mvn spring-boot:run

Testing with ClientStdio

The ClientStdio class can be used to test the MCP server functionality. It interacts with the server using standard I/O.

Build the project first using the command:

mvn clean install -DskipTests

Then run the ClientStdio class.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Gmail MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/gmail-mcp-java-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication