AdYour product here, seen by people installing AI tools every day Sponsor slots open: 12 of 12, from $249 a month

Gmail

Community

MCP server by mcp-z · updated · 2.8k downloads a week

Score 51

Gmail integration with OAuth authentication, message search, batch operations, and Sheets export Gmail is a community project by mcp-z, not verified by a company domain.

Licence

No licence found, so reuse rights are unclear

Quality

Clear description, published package or server URL, original repository

Security

Not checked yet. What we check

What you need

SettingNeededWhat it is
GOOGLE_CLIENT_IDEnvironment variableRequiredGoogle OAuth client ID (required for OAuth authentication modes)
GOOGLE_CLIENT_SECRETEnvironment variable, secretOptionalGoogle OAuth client secret (optional for public clients)
GOOGLE_SERVICE_ACCOUNT_KEY_FILEEnvironment variableOptionalPath to service account JSON key file (required for service-account auth mode)
AUTH_MODEEnvironment variableOptionalAuthentication mode
HEADLESSEnvironment variableOptionalDisable browser auto-open, return auth URL instead (true/false) Default: false
REDIRECT_URIEnvironment variableOptionalOAuth redirect URI (optional, default: ephemeral loopback)
RESOURCE_STORE_URIEnvironment variableOptionalResource store URI for CSV export files (file://)
PORTEnvironment variableOptionalHTTP server port (overrides --port)
BASE_URLEnvironment variableOptionalBase URL for HTTP transport (used for OAuth/DCR endpoints and file links)
LOG_LEVELEnvironment variableOptionalLogging level

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Install Gmail

Built from the published package, never by AI
claude mcp add gmail -e GOOGLE_CLIENT_ID=123456789-abcdefghijk.apps.googleusercontent.com -- npx -y @mcp-z/mcp-gmail

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Gmail in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gmail block.

Weekly newsletter

Like Gmail? Get the best new MCP servers every week

The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.

No spam. Unsubscribe in one click. Privacy

Alternatives to Gmail

All alternatives →

Gmail: common questions

How do I install Gmail?

In Claude Code run claude mcp add gmail -e GOOGLE_CLIENT_ID=123456789-abcdefghijk.apps.googleusercontent.com -- npx -y @mcp-z/mcp-gmail. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Gmail the official server?

Gmail is a community project by mcp-z, not verified by a company domain.

Is Gmail free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is Gmail safe to use?

It scores 51 of 100. Grades: licence F, quality C. The security check has not run for it yet. Review the code before you install. How grades work.

What are alternatives to Gmail?

Similar MCP servers: OpenWork MCP Gateway, Modelcontextprotocol Core, Agents MCP, MCP Remote.

Does Gmail work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.