MCP server/communication

FastMCP Gmail Reader MCP Server

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

chronis10/gemini-email-mcp ↗by chronis10updated
1

Add it to Claude Code

claude mcp add -e "GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}" gmail-reader -- uv run main.py
Required:GOOGLE_APPLICATION_CREDENTIALS
2

Make your agent remember this setup

gmail-reader's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

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

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.

Try it

Fetch my 10 most recent emails.
Create a new email draft to [email protected] with the subject 'Inquiry' and body 'Hello, I have a question.'
Reply to the last email I received with the message 'Received, thank you.'
Original README from chronis10/gemini-email-mcp

📧 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
    }
}

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.

Conare · memory for coding agents

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.

Set up free$npx conare@latest