gmail-agent MCP
A Python package providing an MCP server over stdio for AI agents to interact with Gmail. It supports searching, reading, downloading attachments, sending, replying, managing drafts, labels, and trash. It uses the user's own Google Cloud OAuth client, ensuring no third-party server is involved, and handles attachment extraction and file saving securely.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Search and read Gmail messages and threads
- Download and extract text from email attachments
- Send, reply, and forward emails with attachments
- Manage drafts, labels, and message status
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
gmail-agent 0.3.1
{
"version": "0.3.1",
"transport": "stdio",
"identifier": "gmail-agent",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"packageArguments": [
{
"type": "positional",
"value": "mcp"
}
],
"environmentVariables": [
{
"name": "GMAIL_AGENT_CONFIG_DIR",
"description": "Config dir with credentials.json and token (default ~/.config/gmail-agent)"
},
{
"name": "GMAIL_AGENT_ALLOWED_DIRS",
"description": "Extra folders, besides ~/Downloads, the tools may save attachments to and attach files from (separated by :)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"gmail-agent-mcp": {
"command": "uvx",
"args": [
"gmail-agent==0.3.1",
"mcp"
],
"env": {
"GMAIL_AGENT_CONFIG_DIR": "<YOUR_GMAIL_AGENT_CONFIG_DIR>",
"GMAIL_AGENT_ALLOWED_DIRS": "<YOUR_GMAIL_AGENT_ALLOWED_DIRS>"
}
}
}
}Cline
{
"mcpServers": {
"gmail-agent-mcp": {
"command": "uvx",
"args": [
"gmail-agent==0.3.1",
"mcp"
],
"env": {
"GMAIL_AGENT_CONFIG_DIR": "<YOUR_GMAIL_AGENT_CONFIG_DIR>",
"GMAIL_AGENT_ALLOWED_DIRS": "<YOUR_GMAIL_AGENT_ALLOWED_DIRS>"
}
}
}
}VS Code
{
"servers": {
"gmail-agent-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"gmail-agent==0.3.1",
"mcp"
],
"env": {
"GMAIL_AGENT_CONFIG_DIR": "<YOUR_GMAIL_AGENT_CONFIG_DIR>",
"GMAIL_AGENT_ALLOWED_DIRS": "<YOUR_GMAIL_AGENT_ALLOWED_DIRS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"gmail-agent-mcp": {
"command": "uvx",
"args": [
"gmail-agent==0.3.1",
"mcp"
],
"env": {
"GMAIL_AGENT_CONFIG_DIR": "<YOUR_GMAIL_AGENT_CONFIG_DIR>",
"GMAIL_AGENT_ALLOWED_DIRS": "<YOUR_GMAIL_AGENT_ALLOWED_DIRS>"
}
}
}
}Let your agent find its tools
Find servers like gmail-agent MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.