Is Gmail MCP Server an official Google product?
No. It is a community project by ajbr0wn on GitHub. Google offers its own Gmail MCP server as a Developer Preview, which is a separate product.
@MCP-Mirror
Basic information
Mirror of
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"ajbr0wn_gmail-mcp-server": {
"command": "python",
"args": [
"-m",
"gmail_mcp_server.server"
]
}
}
}Search Gmail emails with a query
Gmail MCP Server is a small, community-built Gmail MCP server written in Python that lets MCP clients such as Claude Desktop read your recent inbox and search your mail through the Gmail API, using OAuth2 with read-only access.
The project was created by GitHub user ajbr0wn (source: github.com/ajbr0wn/gmail-mcp-server). It is not made by Google. It exposes one resource and one tool, and it cannot send, delete or label messages. That makes it a narrow, low-risk choice when you only want an assistant to look things up in your mailbox.
The server runs locally over stdio. You need Python 3.12 (the README uses a conda environment), a Google Cloud project, and an OAuth client for the Gmail API. It is not published to PyPI, so you install it from a clone of the repository.
1. Create Google OAuth credentials
credentials.json.2. Install the server
git clone https://github.com/ajbr0wn/gmail-mcp-server.git
conda create -n mcp-gmail python=3.12
conda activate mcp-gmail
cd gmail-mcp-server
pip install -e .
3. Set the two required environment variables
GMAIL_CREDENTIALS_FILE: path to your Google OAuth credentials fileGMAIL_TOKEN_FILE: path where the authentication token will be saved (created automatically on first sign-in)You can test the server directly before wiring it into a client:
GMAIL_CREDENTIALS_FILE="/path/to/credentials.json" \
GMAIL_TOKEN_FILE="/path/to/token.json" \
python -m gmail_mcp_server.server
Add this to claude_desktop_config.json, replacing every /path/to/ with your real paths:
{
"mcpServers": {
"gmail": {
"command": "/path/to/conda/envs/mcp-gmail/bin/python",
"args": ["-m", "gmail_mcp_server.server"],
"env": {
"PYTHONPATH": "/path/to/gmail-mcp-server/src",
"GMAIL_CREDENTIALS_FILE": "/path/to/credentials.json",
"GMAIL_TOKEN_FILE": "/path/to/token.json"
}
}
}
}
Restart Claude Desktop. The first time Claude touches Gmail, a browser window opens so you can authorize the app; the token is then saved to GMAIL_TOKEN_FILE and refreshed automatically.
The README only documents Claude Desktop, but any stdio client can launch the same command with the same environment variables. In Claude Code:
claude mcp add gmail \
-e PYTHONPATH=/path/to/gmail-mcp-server/src \
-e GMAIL_CREDENTIALS_FILE=/path/to/credentials.json \
-e GMAIL_TOKEN_FILE=/path/to/token.json \
-- /path/to/conda/envs/mcp-gmail/bin/python -m gmail_mcp_server.server
For Cursor, VS Code and other clients, reuse the command, args and env values from the Claude Desktop block in that client's MCP config file.
gmail://inbox/recent resource.from:, after:, subject: and so on).The server has a single tool plus one resource:
search_emails takes a required query (any Gmail search string) and an optional max_results (default 10). Use it to find messages by sender, date range, subject or label.gmail://inbox/recent resource is not a tool; clients that support MCP resources can attach it to give the model your 10 newest messages as context.There are no tools for sending, drafting, archiving or deleting mail.
https://gmailmcp.googleapis.com/mcp/v1 as part of the Google Workspace Developer Preview Program (setup guide). It uses Streamable HTTP and OAuth 2.0, and its tools include search_threads, get_thread, create_draft and label management. Pick it if you want a Google-hosted server that can also create drafts; pick this Gmail MCP server if you want a local, read-only setup with no preview enrollment.ModuleNotFoundError: gmail_mcp_server: the client is using a different Python. Point command at the interpreter inside your mcp-gmail environment and set PYTHONPATH to the repo's src folder.GMAIL_CREDENTIALS_FILE and GMAIL_TOKEN_FILE are set; the README marks both as required. Use full paths, not placeholders.No. It is a community project by ajbr0wn on GitHub. Google offers its own Gmail MCP server as a Developer Preview, which is a separate product.
Yes. The code is free to use and the Gmail API calls it makes come from your own Google Cloud project. You only need a Google account and a project with the Gmail API enabled.
No. It requests read-only access and offers only `search_emails` plus the recent-inbox resource.
`GMAIL_CREDENTIALS_FILE` (your OAuth credentials file) and `GMAIL_TOKEN_FILE` (where the token is stored). When you launch it from a client, also set `PYTHONPATH` to the repo's `src` directory as in the README.
The README documents Claude Desktop. Because it is a standard stdio server, Claude Code, Cursor and VS Code can run the same Python command with the same environment variables.
Local. It runs on your computer over stdio; there is no hosted URL.
The OAuth token is stored locally in the file you set with `GMAIL_TOKEN_FILE`. Email content goes from Gmail to the server and then to your MCP client, and you can revoke access at any time in your Google Account settings.
The listing was imported from an MCP-Mirror copy of the repository. The original project is maintained at github.com/ajbr0wn/gmail-mcp-server.
Hosted MCP server that lets your AI agent post to Threads, Instagram, YouTube, Facebook, TikTok, Pinterest, Bluesky, Telegram, Discord, Ghost and Naver Blog. Setup for each agent.

call4me lets your AI agent make real phone calls for you. Ask Claude, ChatGPT, Cursor, Codex or your own app to book a table, schedule a dentist appointment, cancel a subscription or ask a business a question. It calls,

Postdom is an AI social media tool that turns your website into short videos, slideshows and posts, then publishes them.

Body language for AI agents, on your terms. A consented three-second phone gesture gives your agent an Aligned or Unaligned signal with confidence. You remain the authority.

Send, receive and track real faxes in the US and Canada from Claude, ChatGPT or Cursor.
Comments