Basic information
About Gmail MCP Server
# Gmail MCP Server
Gmail MCP Server is a MCP server in the Communication category listed in the AddMCP.net directory, published by gemacjr. Supported transport: stdio. Runtime: java. Source code is hosted on github.com.
Gmail MCP Server — by gemacjr config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
Gmail MCP Server — by gemacjr tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
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?
A Java-based Model Context Protocol (MCP) server that integrates with Gmail to enable natural language email queries via Claude Desktop. It exposes tools to search emails by topic and read email content, using the Gmail API with secure OAuth2 authentication.
How to use Gmail MCP Server?
Build the project with mvn clean install, then run java -jar target/gmail-mcp-server-1.0-SNAPSHOT.jar. On first run, authenticate via OAuth2 in the browser; tokens are saved to ~/.gmail-mcp/tokens. Configure Claude Desktop by adding an entry with the java command and JAR path in the MCP configuration file.
Key features of Gmail MCP Server
- Search emails by topic, sender, or date using Gmail query syntax
- Retrieve full email content (subject, sender, body) by ID
- Secure OAuth2 authentication with minimal
gmail.readonlyscope - Communicates with Claude Desktop via Stdio and JSON-RPC 2.0
- Robust error handling, logging, and input validation
Use cases of Gmail MCP Server
- Ask Claude Desktop to find emails about a project deadline from the last month
- Query emails from a specific sender about conference planning
- Read the full content of a particular email by providing its ID
- Search across Gmail using natural language instead of manual filters
Frequently asked questions
1 What dependencies are required?
Java 17, Maven, a Google Cloud project with the Gmail API enabled and OAuth2 credentials, and Claude Desktop.
2 How are OAuth2 tokens stored?
Tokens are saved to ~/.gmail-mcp/tokens for persistent authentication across runs. This file should be excluded from version control.
3 What is the email search limit?
The server limits search results to 10 emails to respect Gmail API rate limits of 250 queries per minute.
4 What transport protocol does the server use?
It runs in Stdio mode, communicating with Claude Desktop via JSON-RPC 2.0.
5 How do I resolve authentication errors?
Ensure credentials.json is in src/main/resources/ and delete ~/.gmail-mcp/tokens to re-authenticate if tokens become invalid.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In