Gmail
About
Search and delete emails in your Gmail account.
Details
- Author
- arthur6939
- Categories
- Communication, Other, Automation, Productivity
Jump to
Setup
Install Gmail in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/arthur6939/gmail-mcp-server
Follow the installation instructions in the repository README, then restart your MCP client.
一个基于Model Context Protocol (MCP)的服务器,提供Gmail邮件删除功能。
- 通过MCP协议暴露Gmail邮件删除工具
- 支持通过邮件ID删除指定用户的邮件
- 提供邮件搜索功能,支持按条件查询邮件
- 支持批量删除指定用户的多个邮件
- Java 17或更高版本
- Maven 3.6+或Gradle 7.0+
- Gmail API credentials.json文件
- 前往Google Cloud Console
- 创建新项目并启用Gmail API
- 创建OAuth 2.0客户端ID凭据
- 下载credentials.json文件并保存到src/main/resources/目录
配置文件位于src/main/resources/application.properties,可修改以下参数:
- server.port: 服务器端口,默认8080
- spring.ai.mcp.server.enabled: 是否启用MCP服务器,默认true
- gmail.credentials.path: Gmail凭据文件路径,默认classpath:credentials.json
- deleteEmail: 删除指定ID的邮件
- 参数: userId(用户邮箱), messageId(邮件ID)
- 参数: userId(用户邮箱), query(搜索条件), maxResults(最大结果数)
- 返回值: 邮件列表,包含邮件ID和基本信息
- 参数: userId(用户邮箱), messageIds(邮件ID列表)
- 返回值: 操作结果状态
{ "mcpServers": { "gmail-mcp-server": { "command": "java", "args": [ "-Dspring.ai.mcp.server.stdio=true", "-Dspring.main.web-application-type=none", "-Dlogging.pattern.console=", "-jar", "/Users/arthur/.m2/repository/arthur/mcp/gmail-mcp-server/0.0.1-SNAPSHOT/gmail-mcp-server-0.0.1-SNAPSHOT.jar" ] } } }
Query live Gmail data using LLMs via CData's read-only MCP server.
Enables AI assistants to manage Gmail through natural language interactions.
A standardized interface for managing, sending, and retrieving emails through the Gmail API.
Manage your Gmail account, including sending, reading, and organizing emails.
A super simple and tiny MCP server for gmail in python
Allows AI agents to search Gmail threads, learn your writing style, and draft emails.
An MCP server that enables AI models to interact directly with the Gmail API to manage emails.
An MCP server for integrating with the Gmail API to manage emails.
Most email MCP servers only read from IMAP. mail-mcp does everything: 30 tools for reading, searching, sending, replying, forwarding, and bulk operations across IMAP, SMTP, Microsoft Graph API, and Exchange Web Services. Multi-account, native OAuth2, built in Rust. Works with Gmail, Microsoft 365, Hotmail/Outlook.com, Zoho, and any standard IMAP/SMTP server.
MCP server for structured, read-only email access. Exposes a minimal, auditable API surface — AI agents can search and read emails, but cannot send, delete, or modify your mailbox.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


