Open Source · MIT · 22 Local MCP Tools

Gmail meets AI agents.

Local, zero-proxy Gmail MCP control paired with verified work emails, 80+ company datapoints, and live Google & Trustpilot intelligence.

Get 5-Skill Pack — $8.49
zsh — local-mcp-setup
$ ▊
Native MCP Clients
Claude Desktop Claude Code Cursor Codex CLI Windsurf Gemini CLI
Architecture Overview

What is Gmail MCP Server + Gmail Command Center?

Gmail MCP Server is a free, MIT-licensed local Model Context Protocol server connecting Claude, Cursor, Codex, and Windsurf directly to your Gmail account via 22 structured tools with zero proxy servers. Gmail Command Center is its official 5-skill AI agent pack on Agensi.io, adding deterministic privacy and prompt-injection screening, deliverability gating, Inbox-to-CRM CSV enrichment, work-email discovery, SMTP/catch-all verification, 80+ company datapoints, and live Google/Trustpilot review intelligence without extra SaaS API keys.

Agensi.io Suite · 5 Skills · 3 Scripts · 9 Data Tools

Gmail Command Center for AI Agents

Go beyond raw Gmail API endpoints. Equip your agent with deterministic triage, enriched CRM scoring, and zero-bounce cold outreach without Apollo, Hunter, or ZeroBounce seats.

Gmail Command Center connecting local Gmail MCP tools with verified work emails, 80+ company datapoints, and Google and Trustpilot reviews
COMMAND CENTER ARCHITECTURE 22 LOCAL + 9 AGENSI TOOLS
GUARDRAIL RUNTIME FILM 24S LAUNCH FILM · SOUND ON
01 · Privacy Shield

gmail-inbox-triage

Metadata-first screening blocks OTPs, banking alerts, and medical PII before reading message bodies. Neutralizes hidden prompt injections, builds nested labels, and mandates dry-run previews before bulk actions.

02 · Enriched CRM

gmail-sender-intel

Converts sent mail or search queries into a ranked crm_contacts.csv (stripping bots and noreply addresses) alongside pre-meeting briefs enriched with 80+ company datapoints, titles, and Google/Trustpilot reviews.

03 · Zero-Bounce Outreach

gmail-verified-outreach

Targets ICP prospects, runs work-email waterfalls with mandatory SMTP + catch-all verification, pulls live review hooks, scores deliverability 0–100, and stages clean Gmail drafts.

04 · Thread Context

gmail-reply-copilot

Ingests full conversation threads and attachments, identifies overdue sent threads via Follow-Up Radar, audits tone and accidental commitments, and saves in-thread drafts for sign-off.

05 · Fast Onboarding

gmail-setup-doctor

Guides new installations through npx @sar333/gmail-mcp-server setup, Google Cloud Test Users, OAuth health checks, and client JSON configs across macOS, Windows, and Linux.

One-time purchase · Instant Agensi MCP updates · Money-back guarantee

Runs immediately in Standalone Mode on CSVs, threads, or domain lists, and unlocks full inbox automation with free gmail-mcp-server. Test our deterministic PII & injection shield free via npx skills add neutral-Stage/gmail-mcp-server or on Agensi.

Engineered for autonomous agents, not toy demos.

22 TypeScript MCP tools built around strict Zod schemas, parallel batch safety, and zero remote token storage.

01 / PROVISIONING

Zero-Config Wizard

Detects macOS, Windows, and Linux MCP client paths automatically and wires valid JSON configs on first run.

02 / EXECUTION

Dry-Run Batch Controls

advanced_filter defaults to dryRun: true so agents inspect exact match counts before modifying up to 1,000 messages.

03 / CUSTODY

100% Local OAuth

Credentials remain on your workstation at ~/.gmail-mcp/token.json with gmail.modify scope only — no permanent delete.

SEARCH

Full Query Syntax

Filter by sender, subject, labels, date bounds, attachments, and paginated cursor tokens.

THREADS

Full Thread Context

Inspect decoded MIME bodies, headers, and entire multi-turn email conversations.

DRAFTS

Thread-Bound Compose

Save properly threaded drafts, reply, reply-all, or forward with optional prepended notes.

TAXONOMY

Nested Labels

Create hierarchical / labels, list unread counts, archive, star, or toggle read state.

BULK OPS

1,000-Message Batches

Apply batch label mutations or recoverable Trash moves in high-throughput single calls.

FILES

On-Demand Payloads

Fetch base64 attachment contents selectively for invoices, PDFs, and contracts.

CONTACTS

Address Extraction

Deduplicate sender/recipient lists from queries and rank your top 50 frequent contacts.

FORMAT

Structured Outputs

Render clean JSON arrays, Markdown tables, or compact summaries tailored for context budgets.

Zod Validated · Strict JSON · 22 Endpoints

Complete MCP tool reference

Every tool validates inputs via Zod and returns actionable diagnostic messages on auth or quota errors.

01 · Search & Read (4)

search_emailsGmail query search with pagination
get_emailFull message headers, body & attachments
get_threadComplete multi-message conversation thread
get_attachmentFetch decoded attachment payload

02 · Compose & Drafts (4)

create_draftSave draft (optionally bound to thread)
send_emailSend plain-text or HTML message
reply_emailReply or reply-all keeping headers
forward_emailForward with prepended operator note

03 · Organize & Bulk (7)

modify_emailAdd or remove label IDs on one message
batch_modify_emailsBatch label update up to 1,000 messages
advanced_filterQuery + bulk action with dry-run default
trash_emailMove to 30-day recoverable Trash
untrash_emailRestore message from Trash
batch_trash_emailsBulk trash up to 1,000 messages
mark_spamQuarantine message(s) into Spam

04 · Labels, Extract & Profile (7)

list_labelsAll system/user labels & unread counts
create_labelCreate label with nested / paths
delete_labelRemove user-created label
extract_addressesExtract deduplicated query addresses
format_emailsRender query output as JSON or table
get_profileAuthenticated mailbox & thread counts
get_frequent_contactsTop 50 contacts ranked from sent mail

How it compares against fragmented SaaS stacks

Replace $150–$400+/mo in separate lookup, verification, and sequencing subscriptions with local Gmail control plus pay-per-hit data.

Capability Fragmented SaaS StackApollo + Hunter + ZeroBounce + Gmail Generic Prompt PacksPrompt-only wrappers Gmail MCP + Command Center
Direct Gmail reading, labels & drafts Manual copy-paste or cloud OAuth proxy No — text chat only Yes — 22 local MCP tools
Work-email waterfall + SMTP & catch-all verify 3+ separate subscriptions & keys No — guesses first@domain Built-in via Agensi (zero API keys)
Company enrichment & customer reviews Extra enrichment & scraping seats Hallucinates milestones 80+ datapoints, Google & Trustpilot
PII shield & prompt-injection defense Not engineered for agent prompts Probabilistic prompt instructions Deterministic Python pre-screener
Pre-send deliverability & placeholder gate Manual eye review Inconsistent LLM self-checks Deterministic 0–100 SEND/REVISE/HOLD
Cost structure $150–$400+/month recurring seats One-time text prompt Free local MCP + $8.49 pack + per-hit data

Set up locally in 3 steps

Authorize directly against Google's Gmail API and connect any MCP client with one command.

01

Google Cloud Project & OAuth Consent

Open Google Cloud Console, create a project, enable the Gmail API, and add your own Gmail address as a Test User under OAuth Consent Screen.

02

Save Desktop App Credentials

Create an OAuth Client ID (Desktop app) and save the downloaded file locally as ~/.gmail-mcp/credentials.json.

03

Run the Automated Setup Wizard

npx @sar333/gmail-mcp-server setup

Configures your MCP client automatically, completes local OAuth authentication, and verifies status via npx @sar333/gmail-mcp-server doctor.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": ["-y", "@sar333/gmail-mcp-server"]
    }
  }
}

Frequently asked questions

Technical clarity on OAuth custody, managed Agensi keys, Standalone Mode, and client compatibility.

How do I connect Gmail to Claude Desktop, Claude Code, or Cursor?

Install Node.js 18+, download a Desktop OAuth credentials.json from Google Cloud Console with the Gmail API enabled (adding yourself as a Test User), and run npx @sar333/gmail-mcp-server setup. The wizard writes the client config and completes local OAuth automatically.

What is the difference between Gmail MCP Server and the Gmail Command Center skill pack on Agensi.io?

Gmail MCP Server is the free MIT-licensed MCP server exposing 22 Gmail API tools. Gmail Command Center on Agensi.io is a 5-skill AI agent pack + 3 deterministic Python guardrail scripts orchestrating inbox triage, CRM exports, verified outreach, and thread replies across local Gmail MCP and Agensi live data tools.

Do I need separate Apollo, Hunter, ZeroBounce, or BounceBan API keys?

No. When running Gmail Command Center through Agensi.io, email finding, SMTP/catch-all verification, company enrichment, and Google/Trustpilot lookups execute on Agensi's managed keys per call from one balance, and failed lookups cost nothing.

Is Gmail MCP Server safe and private? Does it ever auto-send emails?

Yes. Gmail MCP Server runs 100% locally with zero third-party proxy servers or telemetry, stores tokens at ~/.gmail-mcp/token.json, and requests only gmail.modify scope (no permanent delete). Command Center adds metadata-first PII/injection screening and draft-first outreach so nothing sends without explicit approval.

Can I use Gmail Command Center before connecting local Gmail MCP?

Yes. Every skill supports Standalone Mode on pasted messages, conversation threads, domain lists, or CSV exports using live Agensi tools and deterministic local scripts — and includes gmail-setup-doctor to connect local Gmail MCP in under 3 minutes.

Which AI agents and coding assistants are supported?

Gmail MCP Server supports Claude Desktop, Claude Code, Cursor, Windsurf, Codex CLI, Gemini CLI, and any compliant MCP client. Gmail Command Center follows the open SKILL.md format across 20+ agents connected to Agensi MCP including Claude, ChatGPT, Cursor, Claude Code, Codex CLI, Gemini CLI, and OpenClaw.