Gmail for AI agents: search, read, download attachments, send, reply, drafts, labels.
Connect Runs on your machine
claude mcp add gmail-agent -e GMAIL_AGENT_CONFIG_DIR=<GMAIL_AGENT_CONFIG_DIR> -e GMAIL_AGENT_ALLOWED_DIRS=<GMAIL_AGENT_ALLOWED_DIRS> -- uvx gmail-agent==0.3.1
{
"mcpServers": {
"gmail-agent": {
"command": "uvx",
"args": [
"gmail-agent==0.3.1"
],
"env": {
"GMAIL_AGENT_CONFIG_DIR": "<GMAIL_AGENT_CONFIG_DIR>",
"GMAIL_AGENT_ALLOWED_DIRS": "<GMAIL_AGENT_ALLOWED_DIRS>"
}
}
}
}
{
"mcpServers": {
"gmail-agent": {
"command": "uvx",
"args": [
"gmail-agent==0.3.1"
],
"env": {
"GMAIL_AGENT_CONFIG_DIR": "<GMAIL_AGENT_CONFIG_DIR>",
"GMAIL_AGENT_ALLOWED_DIRS": "<GMAIL_AGENT_ALLOWED_DIRS>"
}
}
}
}
{
"servers": {
"gmail-agent": {
"type": "stdio",
"command": "uvx",
"args": [
"gmail-agent==0.3.1"
],
"env": {
"GMAIL_AGENT_CONFIG_DIR": "<GMAIL_AGENT_CONFIG_DIR>",
"GMAIL_AGENT_ALLOWED_DIRS": "<GMAIL_AGENT_ALLOWED_DIRS>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
GMAIL_AGENT_CONFIG_DIROptional | Config dir with credentials.json and token (default ~/.config/gmail-agent) |
GMAIL_AGENT_ALLOWED_DIRSOptional | Extra folders, besides ~/Downloads, the tools may save attachments to and attach files from (separated by :) |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 11 Oct 2026 |
| Last updated | 11 Oct 2026 |
| Registry name | io.github.dremok/gmail-agent |
More communication servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
