Gmail MCP Server
@christo707
About Gmail MCP Server
Gmail MCP Server using Java and Spring Boot
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Gmail MCP Server?
Gmail MCP Server is a Spring Boot MCP (Model Context Protocol) server that provides tools for interacting with Gmail, such as sending, reading, trashing, and marking emails. It also includes a client (ClientStdio) for testing the server via standard I/O.
How to use Gmail MCP Server?
Requires Java 17+, Maven, and Gmail API credentials. Clone the repository, configure OAuth credentials (place credentials.json in src/main/resources), build with mvn clean install, then run the server with mvn spring-boot:run. The ClientStdio client can be used for testing.
Key features of Gmail MCP Server
trashEmail: Moves an email to the trash by ID.markEmailAsRead: Marks an email as read by ID.sendEmail: Sends an email to a specified recipient.getUnreadMessages: Retrieves unread messages.readEmail: Reads an email by its ID.ClientStdio: test client using standard I/O.
Use cases of Gmail MCP Server
- Automate email management tasks through MCP-powered assistants.
- Send notifications or replies programmatically.
- Read and organize inbox without manual Gmail access.
- Integrate Gmail actions into MCP-based workflows.
FAQ from Gmail MCP Server
What are the prerequisites?
Java 17 or higher, Maven, and Gmail API credentials.
How do I get Gmail API credentials?
Create a Google Cloud project, enable the Gmail API, configure an OAuth consent screen (external, with your email as a test user), and create an OAuth Client ID for a Desktop App. Download the JSON, rename it to credentials.json, and place it in src/main/resources.
How do I run the server?
After building the project with mvn clean install, run mvn spring-boot:run.
Is there a test client included?
Yes, the ClientStdio class can be used to test the MCP server functionality using standard I/O.
What OAuth scope is required?
The scope https://www.googleapis.com/auth/gmail/modify is used.
Frequently asked questions
What are the prerequisites?
Java 17 or higher, Maven, and Gmail API credentials.
How do I get Gmail API credentials?
Create a Google Cloud project, enable the Gmail API, configure an OAuth consent screen (external, with your email as a test user), and create an OAuth Client ID for a Desktop App. Download the JSON, rename it to `credentials.json`, and place it in `src/main/resources`.
How do I run the server?
After building the project with `mvn clean install`, run `mvn spring-boot:run`.
Is there a test client included?
Yes, the `ClientStdio` class can be used to test the MCP server functionality using standard I/O.
What OAuth scope is required?
The scope `https://www.googleapis.com/auth/gmail/modify` is used.
Basic information
More Communication MCP servers
MCP-Discord
barryyip0625Implement Discord MCP server enabling AI assistants to interact with the Discord platform.
Telegram MCP server
chaindeadTelegram MCP for managing dialogs, messages, drafts, read statuses, and more.

MailStream
Sponge LabsThe first MCP server for physical mail. Give any MCP-compatible AI agent the ability to send real postcards and letters, verify addresses, manage mailing lists and artwork, and track direct mail campaigns. Remote Streama
Telegram MCP Server
chigwellTelegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings.
MCP Email Server
Shy2593666979一个基于 MCP (Model Context Protocol) 的邮件服务,支持 LLM 发送带附件的电子邮件及在指定目录中搜索文件。提供安全的 SMTP 传输、多收件人支持和附件模式匹配搜索功能,适用于 Gmail、Outlook、Yahoo、QQ 邮箱和网易 126 邮箱等主流邮箱服务。
Comments