Gmail MCP
An open-source Model Context Protocol server that allows AI agents to interact with Gmail. It supports reading, sending, archiving, and managing emails through tools like message search, thread retrieval, and label modification. The server acts as an OAuth proxy to Google, handling authentication securely without storing tokens.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Flight check-in by finding confirmation emails and extracting booking references
- Expense submission by locating receipts and extracting amounts
- Package tracking by finding shipping notifications and fetching status
- Vacation mode setup by configuring auto-replies and calendar blocks
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
gmail-mcp 2.4.0
{
"version": "2.4.0",
"transport": "stdio",
"identifier": "gmail-mcp",
"runtimeHint": "npx",
"registryType": "npm",
"environmentVariables": [
{
"name": "GOOGLE_ACCESS_TOKEN",
"isRequired": true,
"description": "Google OAuth access token with Gmail scopes."
}
]
}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-mcp": {
"command": "npx",
"args": [
"-y",
"gmail-mcp@2.4.0"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<YOUR_GOOGLE_ACCESS_TOKEN>"
}
}
}
}Cline
{
"mcpServers": {
"gmail-mcp": {
"command": "npx",
"args": [
"-y",
"gmail-mcp@2.4.0"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<YOUR_GOOGLE_ACCESS_TOKEN>"
}
}
}
}VS Code
{
"servers": {
"gmail-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gmail-mcp@2.4.0"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<YOUR_GOOGLE_ACCESS_TOKEN>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"gmail-mcp": {
"command": "npx",
"args": [
"-y",
"gmail-mcp@2.4.0"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<YOUR_GOOGLE_ACCESS_TOKEN>"
}
}
}
}Let your agent find its tools
Find servers like Gmail MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.