Gmail MCP
Manage your Gmail account, including sending, reading, and organizing emails.
Gmail MCP
Allow Claude to search and retrieve emails from your Gmail account.
Setup
1. Get Google API Credentials
- Visit the Google Cloud Console
- Create a new project or select an existing one
- Enable the Gmail API for your project
- Navigate to "APIs & Services" > "Library"
- Search for "Gmail API" and enable it
- Create OAuth credentials:
- Go to "APIs & Services" > "Credentials"
- Click "Create Credentials" > "OAuth client ID"
- Select "Desktop application" as the application type
- Name your client and click "Create"
- Download the credentials JSON file
- Save it as
credentials.jsonin your project directory
2. Authorize the Application
Run the authorization command to generate your token:
uv run gmail-mcp auth --creds-path credentials.json --token-path token.json
This will open a browser window where you'll need to log in to your Google account and grant the necessary permissions. After authorization, a token.json file will be created in your project directory.
Configuring with Claude
Add the Gmail MCP server to your Claude configuration file:
{
"mcpServers": {
"gmail": {
"args": [
"--from",
"git+https://github.com/vinayak-mehta/gmail-mcp",
"gmail-mcp"
],
"command": "/Users/username/.local/bin/uvx",
"env": {
"GMAIL_CREDS_PATH": "/Users/username/path/to/gmail-mcp/credentials.json",
"GMAIL_TOKEN_PATH": "/Users/username/path/to/gmail-mcp/token.json"
}
}
}
}
Make sure to:
- Replace
/Users/username/path/to/gmail-mcpwith your actual project path - Adjust the
commandpath to your installeduvxexecutable - Provide correct paths to your
credentials.jsonandtoken.jsonfiles
Claude will now have access to the following tools:
1. Search Emails
Search for emails in your Gmail account.
Example prompt: "Search for all emails from [email protected]"
2. Get Email Content
Retrieve the full content of a specific email.
Example prompt: "Show me the full content of the email with the subject 'Meeting Tomorrow'"
3. List Messages
List recent messages from your Gmail inbox.
Example prompt: "List my 5 most recent emails"
Environment Variables
You can configure the paths to your credentials and token files using environment variables:
GMAIL_CREDS_PATH: Path to your credentials.json fileGMAIL_TOKEN_PATH: Path to your token.json file
Create a .env file in the project root with these variables for easy configuration.
Похожие серверы
AI Interaction Tool
An AI interaction tool with an advanced UI for the Model Context Protocol (MCP).
Telinfy MCP server
Send SMS, WhatsApp, and RCS messages programmatically with DLT compliance. Manage contacts, schedule campaigns, and track delivery reports.
JoltSMS
Provision dedicated US phone numbers and receive SMS/OTP codes for automated verification workflows.
MCP Email Service
A service for managing emails across multiple providers.
nworks
NAVER WORKS CLI + MCP server. 26 tools for messages, calendar, drive, mail, tasks, and boards.
Fast Intercom
A high-performance MCP server for analyzing Intercom conversations, offering speeds up to 100x faster than the REST API.
Pikud Haoref Real-Time Alert System
Provides real-time access to Israeli emergency alerts from the official Pikud Haoref API.
mcp-server-rabel
AI-to-AI messaging via I-Poll protocol and AInternet. Enables agents to communicate using .aint domains, semantic messaging, and trust-based routing.
x402mail
Send and receive emails via Python SDK or MCP. No API keys, no accounts - your wallet is your identity. Pay per call with USDC on Base via the x402 protocol. $0.005 per email.
Discord MCP
An MCP server for interacting with Discord.