Koskamo

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.

gmail-agent MCP logo, by dremokCommunity listingLocal stdioSource reviewed; not executedPublished by dremok
Vendor documentation

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

Community listingRegistry 0.3.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

gmail-agent 0.3.1

pypiuvx
gmail-agent package definition
{
  "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.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.