Gmail MCP

Gmail MCP

A server that allows Claude to search and retrieve emails from your Gmail account, supporting functions like searching emails, retrieving full content of specific emails, and listing recent messages.

vinayak-mehta

Communication
Search
Visit Server

README

Gmail MCP

Allow Claude to search and retrieve emails from your Gmail account.

Setup

1. Get Google API Credentials

  1. Visit the Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Gmail API for your project
    • Navigate to "APIs & Services" > "Library"
    • Search for "Gmail API" and enable it
  4. 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"
  5. Download the credentials JSON file
  6. Save it as credentials.json in 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-mcp with your actual project path
  • Adjust the command path to your installed uvx executable
  • Provide correct paths to your credentials.json and token.json files

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 example@gmail.com"

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 file
  • GMAIL_TOKEN_PATH: Path to your token.json file

Create a .env file in the project root with these variables for easy configuration.

Recommended Servers

graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Apple MCP Server

Apple MCP Server

Enables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.

Featured
Local
TypeScript
serper-search-scrape-mcp-server

serper-search-scrape-mcp-server

This Serper MCP Server supports search and webpage scraping, and all the most recent parameters introduced by the Serper API, like location.

Featured
TypeScript
The Verge News MCP Server

The Verge News MCP Server

Provides tools to fetch and search news from The Verge's RSS feed, allowing users to get today's news, retrieve random articles from the past week, and search for specific keywords in recent Verge content.

Featured
TypeScript
Google Search Console MCP Server

Google Search Console MCP Server

A server that provides access to Google Search Console data through the Model Context Protocol, allowing users to retrieve and analyze search analytics data with customizable dimensions and reporting periods.

Featured
TypeScript
Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
@kazuph/mcp-gmail-gas

@kazuph/mcp-gmail-gas

Model Context Protocol server for Gmail integration. This allows Claude Desktop (or any MCP client) to interact with your Gmail account through Google Apps Script.

Featured
JavaScript
MCP Server Trello

MCP Server Trello

Facilitates interaction with Trello boards via the Trello API, offering features like rate limiting, type safety, input validation, and error handling for seamless management of cards, lists, and board activities.

Featured
TypeScript