FastMCP Gmail Reader MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}" gmail-reader -- uv run main.py
Required:GOOGLE_APPLICATION_CREDENTIALS
README.md

Manage Gmail using a FastMCP API server for Gemini-CLI.

📧 FastMCP Gmail Reader Server

Manage Gmail using a FastMCP API server for Gemini-CLI. Supports reading emails and creating drafts (reply or new).

🚀 Features

  • Fetch recent emails with pagination
  • Create reply drafts
  • Create new email drafts

🔧 Setup

Install Dependencies

pip install uv
cd gemini-tasks-mcp
uv venv
source .venv/bin/activate
uv run main.py

Generate Google API Credentials

  1. Go to Google Cloud Console.
  2. Create a project and enable Gmail API.
  3. Go to APIs & Services → Credentials.
  4. Click “Create Credentials” → “OAuth client ID” → Application type: Desktop App.
  5. Download credentials.json and place it in the project folder.

Gemini-CLI Configuration

cd ~/.gemini
nano settings.json
"mcpServers": {
    "gmailReader": {
      "command": "uv",
      "args": ["run", "main.py"],
      "cwd": "<<full-path>>/gemini-email-mcp",
      "timeout": 20000
    }
}

Tools (2)

fetch_emailsFetch recent emails from Gmail with pagination support.
create_draftCreate a new email draft or a reply draft.

Environment Variables

GOOGLE_APPLICATION_CREDENTIALSrequiredPath to the credentials.json file downloaded from Google Cloud Console.

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "gmailReader": {
      "command": "uv",
      "args": ["run", "main.py"],
      "cwd": "<<full-path>>/gemini-email-mcp",
      "timeout": 20000
    }
  }
}

Try it

Fetch my 10 most recent emails.
Create a new email draft to support@example.com with the subject 'Inquiry' and body 'Hello, I have a question.'
Reply to the last email I received with the message 'Received, thank you.'

Frequently Asked Questions

What are the key features of FastMCP Gmail Reader?

Fetch recent emails with pagination. Create reply drafts. Create new email drafts.

What can I use FastMCP Gmail Reader for?

Automating email responses directly from the command line interface.. Quickly reviewing recent inbox activity without opening a browser.. Drafting repetitive email templates using AI assistance..

How do I install FastMCP Gmail Reader?

Install FastMCP Gmail Reader by running: pip install uv && cd gemini-email-mcp && uv venv && source .venv/bin/activate && uv run main.py

What MCP clients work with FastMCP Gmail Reader?

FastMCP Gmail Reader works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep FastMCP Gmail Reader docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare