Overview
Gmail MCP Server is a powerful and flexible integration server built using the MCP (Message Control Protocol) framework, designed to interact with Gmail APIs for programmatic email management.
To use the Gmail MCP Server, install it via Smithery, set up a Google Cloud Project with Gmail API enabled, and configure your email accounts. Start the server and use the provided tools to read, send, and manage emails.
- Read emails from multiple Gmail accounts - Send emails with attachments - Search emails with advanced query options - Download email attachments - Handle email conversations and threads - Real-time email monitoring
- Automating email responses for customer support.
- Integrating email functionalities into applications.
- Monitoring and managing multiple Gmail accounts programmatically.
Add to your AI client
Use these steps to connect Gmail MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"quantum-369-gmail-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-quantum-369-gmail-mcp-server-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"quantum-369-gmail-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-quantum-369-gmail-mcp-server-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"quantum-369-gmail-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-quantum-369-gmail-mcp-server-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"quantum-369-gmail-mcp-server-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-quantum-369-gmail-mcp-server-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"quantum-369-gmail-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-quantum-369-gmail-mcp-server-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"quantum-369-gmail-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-quantum-369-gmail-mcp-server-mcp-mirror"
]
}
}
}FAQ
What are the prerequisites to run the server?
You need Python 3.12 or higher, a Google Cloud Project with Gmail API enabled, and OAuth 2.0 credentials.
Is there a way to handle multiple Gmail accounts?
Yes! The server supports multiple Gmail accounts and allows you to manage them programmatically.
How do I secure my credentials?
Store your `client_secret.json` securely, use environment variables for sensitive information, and regularly rotate your OAuth credentials.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1379,"uuid":"50e773de-38fc-4a55-a1c4-3517b5a551ba","name":"Quantum-369_Gmail-mcp-server","title":"Gmail MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-02-20T15:32:13.190Z","updated_at":"2025-02-23T07:21:39.686Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"gmail,mcp-server,email-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/Quantum-369_Gmail-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/8a583c0dcfad6eb9d9cb330961b5d6794ba6d45c370d3329f9fe408c7d165014/68747470733a2f2f736d6974686572792e61692f62616467652f405175616e74756d2d3336392f476d61696c2d6d63702d736572766572","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]