Gmail (npx) MCP Server
CommunityContributed by shinzo-labs
Complete Gmail API access via MCP: send, read, search, and manage messages, threads, drafts, labels, filters, delegates, and settings (vacation responder, IMAP/POP, forwarding). Uses file-based Google OAuth2 with your own Google Cloud OAuth client.
About the Gmail (npx) MCP Server
The Gmail (npx) MCP server is a local (stdio) Model Context Protocol server available in the McpMux registry. Complete Gmail API access via MCP: send, read, search, and manage messages, threads, drafts, labels, filters, delegates, and settings (vacation responder, IMAP/POP, forwarding). Uses file-based Google OAuth2 with your own Google Cloud OAuth client. This is a community-contributed MCP server by shinzo-labs.
Install the Gmail (npx) MCP server with one click using McpMux. It works with Cursor, Claude Desktop, Claude Code, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible AI client. This server requires OAuth authentication — McpMux securely stores your credentials with AES-256-GCM encryption.
Transport Configuration
{
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@shinzolabs/gmail-mcp"
],
"env": {
"GMAIL_OAUTH_PATH": "${input:GMAIL_OAUTH_PATH}",
"GMAIL_CREDENTIALS_PATH": "${input:GMAIL_CREDENTIALS_PATH}"
},
"metadata": {
"inputs": [
{
"id": "GMAIL_OAUTH_PATH",
"label": "OAuth Keys File Path",
"description": "Path to your Google Cloud OAuth client keys file (gcp-oauth.keys.json). Create an OAuth 2.0 Client ID of type 'Desktop app' in Google Cloud Console with the Gmail API enabled, download the JSON, and point here. Leave blank to use the default ~/.gmail-mcp/gcp-oauth.keys.json.",
"type": "file_path",
"required": false,
"secret": false,
"placeholder": "~/.gmail-mcp/gcp-oauth.keys.json",
"obtain": {
"url": "https://console.cloud.google.com/apis/credentials",
"instructions": "1. Open Google Cloud Console > APIs & Services > Credentials\n2. Enable the Gmail API for your project\n3. Configure the OAuth consent screen (add yourself as a test user)\n4. Click 'Create Credentials' > 'OAuth client ID'\n5. Choose application type 'Desktop app'\n6. Download the JSON and save it (e.g. ~/.gmail-mcp/gcp-oauth.keys.json)\n7. Run 'npx @shinzolabs/gmail-mcp auth' once to authorize in the browser and generate the credentials/token file",
"button_label": "Open Google Cloud Console"
}
},
{
"id": "GMAIL_CREDENTIALS_PATH",
"label": "Credentials / Token File Path",
"description": "Path where the OAuth token (refresh token) is stored after authorizing. Generated by running 'npx @shinzolabs/gmail-mcp auth'. Leave blank to use the default ~/.gmail-mcp/credentials.json.",
"type": "file_path",
"required": false,
"secret": false,
"placeholder": "~/.gmail-mcp/credentials.json"
}
]
}
}Categories
Tags
Supported AI Clients
The Gmail (npx) MCP server works with all MCP-compatible AI clients through McpMux:
Related MCP Servers
Slack (Docker)
Send and read Slack messages, manage channels, list users, add reactions, and interact with your Slack workspace via Docker container.
Slack (npx)
Send and read Slack messages, manage channels, list users, add reactions, and interact with your Slack workspace via npx.
Google Workspace (uvx)
Access Gmail, Google Calendar, Drive, Docs, Sheets, Slides, Forms, Tasks, Contacts, Chat, and Apps Script from a single MCP server. 100+ operations across all Google Workspace services.
Businys
221 MCP tools across 26 practices for independent professionals. Manage clients, bookings, invoices, contracts, programs, sessions, and more. Open platform with full data export on all paid tiers.
Discord (Docker)
Control a Discord bot via Docker. Send and manage messages, administer channels, categories, roles, webhooks, forums, invites, scheduled events, and emojis, plus moderation actions across your servers â all in an isolated container.
Freshdesk (uvx)
Interact with Freshdesk customer support. Manage tickets, conversations, contacts, companies, agents, and ticket fields through the Freshdesk API.
Install Gmail (npx) with McpMux
One-click install from the McpMux desktop app. Auto-configures for Cursor, Claude, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible client.