SkillAgentSearch skills...

google-mailpilot

A Gmail IMAP/SMTP Client for AI Agents with Calendar Integration

Install / Use

claude mcp add johnneerdael -- npx -y github:johnneerdael/google-mailpilot

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

75/100

Supported Platforms

Claude Code
Claude Desktop

Tags

Our assessment of google-mailpilot

google-mailpilot scores 75/100 on our quality scale, 3701st of 4,585 Development & Engineering skills we index.

Its MCP Server is 14 KB long, well organised into 36 sections with 11 code examples: a thorough specification that gives an agent plenty to work with.

It has 3 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
30/30
Structure
20/20
Description
12/15
Adoption
3/20
Freshness
11/15

Maintenance, license and trust

  • The repository was last updated about 9 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
  • Our last check on 2026-09-23 found the source still online.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 69/100, with 4 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the first 100 KB of the file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

google-mailpilot compared with similar skills

All 4 of these similar skills score higher than google-mailpilot; compare them before choosing.

SkillScoreStarsUpdatedFormat
google-mailpilot (this skill)by johnneerdael7539mo agoMCP Server
Agent-Reachby Panniantong10094.6k1d agoCLAUDE.md
headroomby headroomlabs-ai10074.8ktodayCLAUDE.md
CowAgentby zhayujie10047.3ktodayCLAUDE.md
ai-job-searchby MadsLorentzen10045.4ktodayCLAUDE.md

Frequently asked questions

How do I install google-mailpilot?
Run claude mcp add johnneerdael -- npx -y github:johnneerdael/google-mailpilot. The install tabs above show the steps for each supported agent.
Which AI agents does google-mailpilot work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is google-mailpilot safe to use?
Our scan of the first 100 KB of the file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 69/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is google-mailpilot still maintained?
The repository was last updated about 9 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.

Google MailPilot

Version Status License

The AI-native command center for Gmail and Google Workspace

Google MailPilot is the renamed successor to Gmail Secretary, built so LLMs can read, triage, respond to, and calendar-manage Gmail with a production-grade MCP control plane.

⚠️ Release Notice: v5.0.0 is the first public release under the Google MailPilot brand; it fixes MCP tool registration, tightens triage/compose coverage, adds new booking-link helpers, and keeps every mutation human-in-the-loop.

Release highlights:

  • Tools now register as soon as workspace_secretary.tools imports, preventing FastMCP registration bugs.
  • Triage/compose tooling gained synchronous tests plus tests/test_triage_priority_emails.py and tests/test_web_compose.py to cover CLI-aware workflows.
  • Engine/web routes, booking links, and raw: continuation-state handling now align with Google MailPilot expectations.

🚦 Stability Matrix

We believe in transparency. Here is the current readiness of our stack:

| Component | Status | Stability Notes | | :--- | :--- | :--- | | IMAP Sync Engine | 🟢 Stable | RFC-compliant, IDLE support, tested on >24k emails. | | Read Operations | 🟢 Stable | Search, Threading (X-GM-THRID), and Summarization work perfectly. | | Write Operations | 🟡 Beta | Draft creation is stable. Auto-sending is currently disabled via the Safety Interceptor. | | Web Dashboard | 🟠 Alpha | Early preview. UI may change rapidly. |


A Google MailPilot IMAP/SMTP control plane for AI agents with calendar integration

Built for LLMs that need to read, search, triage, and respond to email autonomously. Not just an MCP wrapper — a full-featured IMAP control plane engineered for AI orchestration workflows.

📚 Documentation · 🏗️ Architecture · ⚡ Quick Start


Why This Exists

Most email integrations for AI are thin API wrappers. They poll. They re-fetch. They timeout. They don't understand email threading, modification sequences, or push notifications.

Google MailPilot is different. It's a production-grade IMAP control plane that:

  • Syncs intelligently — CONDSTORE tracks what changed, IDLE pushes new mail instantly
  • Caches locally — SQLite or PostgreSQL, your AI reads from local DB in milliseconds
  • Understands Gmail — Native X-GM-THRID threading, X-GM-LABELS, X-GM-RAW search
  • Never sends without approval — Human-in-the-loop by design, drafts first

📡 RFC Compliance

We implement these IMAP extensions for efficient, real-time email sync:

| RFC | Extension | What It Does | Benefit | |-----|-----------|--------------|---------| | RFC 3501 | IMAP4rev1 | Core protocol | Full IMAP compliance | | RFC 7162 | CONDSTORE | Tracks modification sequences | Skip sync when mailbox unchanged | | RFC 7162 | CHANGEDSINCE | Fetch only changed flags | 10x faster incremental sync | | RFC 2177 | IDLE | Push notifications | Instant new mail detection | | RFC 2971 | ID | Client identification | Better server compatibility |

Gmail-Specific Extensions

| Extension | Purpose | |-----------|---------| | X-GM-THRID | Native Gmail thread ID — no heuristic threading needed | | X-GM-MSGID | Stable message identifier across folders | | X-GM-LABELS | Full Gmail label support (stored as JSONB) | | X-GM-RAW | Gmail's powerful search syntax for targeted sync |


⚡ Performance

Real benchmarks against a 50,000 email mailbox:

| Operation | Traditional IMAP | Google MailPilot | |-----------|------------------|-----------------| | Check for new mail | 2-5s (fetch all UIDs) | < 50ms (HIGHESTMODSEQ compare) | | Sync flag changes | Re-fetch messages | Flags only (CHANGEDSINCE) | | New mail notification | 5-min poll interval | Instant (IDLE push) | | Search emails | Server roundtrip | < 10ms (local SQLite FTS5) | | Thread reconstruction | Parse References headers | Instant (X-GM-THRID) |

How CONDSTORE Works

Traditional Sync:
  1. SELECT INBOX
  2. FETCH 1:* (FLAGS)        ← Downloads ALL flags every time
  3. Compare with cache
  4. Fetch changed messages

CONDSTORE Sync:
  1. SELECT INBOX
  2. Compare HIGHESTMODSEQ    ← Single integer comparison
  3. If unchanged → done      ← Skip everything
  4. If changed → FETCH 1:* (FLAGS) CHANGEDSINCE <modseq>
                              ← Only changed messages

🏗️ Architecture

Dual-process design separating sync from AI interface:

┌─────────────────────────────────────────────────────────────────┐
│                        AI Layer (Claude, etc.)                  │
└─────────────────────────────────────────────────────────────────┘
                                │
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│                     MCP Server (read-only)                      │
│  • Exposes 25+ tools for email/calendar operations              │
│  • Reads directly from local database                           │
│  • Mutations proxied to Engine API                              │
└─────────────────────────────────────────────────────────────────┘
                                │
              ┌─────────────────┴─────────────────┐
              ▼                                   ▼
┌──────────────────────────┐        ┌──────────────────────────┐
│   SQLite / PostgreSQL    │        │     Secretary Engine     │
│  • Email cache (FTS5)    │◀───────│  • IMAP sync (CONDSTORE) │
│  • Gmail labels (JSONB)  │        │  • IDLE monitor          │
│  • Embeddings (pgvector) │        │  • OAuth2 management     │
└──────────────────────────┘        │  • SMTP send/draft       │
                                    └──────────────────────────┘
                                              │
                                              ▼
                                    ┌──────────────────┐
                                    │   Gmail IMAP     │
                                    │   Gmail SMTP     │
                                    │   Calendar API   │
                                    └──────────────────┘

Why Two Processes?

| Concern | Engine | MCP Server | |---------|--------|------------| | Sync | Owns IMAP connection, IDLE loop | Never touches IMAP | | Database | All writes | Read-only | | Uptime | Always running | Scales with AI requests | | Credentials | Holds OAuth tokens | Stateless |


🎯 AI-Native Features

Calendar Integration:

  • ⚡ Instant Calendar Access: Sub-50ms queries via intelligent caching layer
  • 🌐 Offline-First Operations: Create/edit/delete events without internet, sync transparently
  • 🔄 Background Sync Worker: Autonomous daemon syncs every 60s using Google Calendar API sync tokens
  • 🏷️ Status Indicators: Visual badges show pending/synced/conflict states for offline operations
  • ⚙️ Multi-Calendar Support: Select which calendars to display via web UI settings

Email Intelligence:

Intelligent Signal Extraction

Every email is analyzed for actionable signals:

signals = {
    "is_addressed_to_me": True,      # In To: field, not just CC
    "mentions_my_name": True,        # Name appears in body
    "has_question": True,            # Contains "?" or question phrases
    "mentions_deadline": True,       # "EOD", "ASAP", "by Friday"
    "mentions_meeting": True,        # Scheduling keywords detected
    "is_from_vip": True,             # Sender in configured VIP list
    "has_attachments": True,         # PDF, DOCX, etc.
    "attachment_filenames": ["Q4_Report.pdf"]
}

Human-in-the-Loop Safety

The AI never sends email without explicit approval.

User: "Reply to Sarah saying I'll attend the meeting"

AI: I've drafted this reply:

    To: sarah@company.com
    Subject: Re: Team Meeting Tomorrow

    Hi Sarah,

    I'll be there. Looking forward to it!

    Best regards

    Send this email? (yes/no)

User: "yes"
AI: ✓ Email sent successfully

Confidence-Based Batch Operations

Bulk operations require approval with confidence tiers:

| Confidence | Batch Size | Display | |------------|------------|---------| | High (>90%) | Up to 100 | Date, From, Subject only | | Medium (50-90%) | Up to 10 | + First 300 chars of body | | Low (<50%) | Individual | Full context required |


🚀 Quick Start

Prerequisites

  • Docker and Docker Compose
  • Gmail account with App Password (or OAuth2)
  • Google Cloud project (for Calendar integration)

1. Clone and Configure

git clone https://github.com/johnneerdael/google-mailpilot.git
cd google-mailpilot
cp config.sample.yaml config/config.yaml

2. Edit Configuration

# config/config.yaml
imap:
  host: imap.gmail.com
  port: 993
  username: your-email@gmail.com
  password: your-app-password    # Gmail App Password

user:
  email: your-email@gmail.com
  first_name: Your
  last_name: Name
  timezone: America/New_York
  working_hours:
    start: "09:00"
    end: "18:00"
  vip_senders:
    - ceo@company.com
    - important-client@example.com

database:
  backend: sqlite               # or "postgres" for embeddings
  path: /app/config/secretary.db

bearer_auth:
  enabled: true
  token: "gene…[redacted]"

3. Start Services

docker-compose up -d

4. Connect Your AI

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "secretary": {
      "url": "http://localhost:8000/mcp",
      "headers": {
        "Authorization": "Bearer your-token-here"
      }
    }
  }
}

🔧 Available Tools

Email Operations

| Tool | Description | |------|-------------| | search_emails | FTS5-powered local search with Gmail query syntax | | get_email_details | Full email content with signals and metadata | | get_email_thread | Complete thread via X-GM-THRID | | summarize_thread | AI-ready thread summary | | create_draft_reply | Draft response (never auto-sends) | | send_email | Send with explicit approval | | modify_gmail_labels | Add/remove Gmail labels | | move_email | Move between folders |

Calendar Operations

| Tool | Description | |------|-------------| | list_calendar_events | Events in time range | | get_calendar_availability | Free/busy lookup | | create_calendar_event | Create with timezone support | | suggest_reschedule | Find alternative meeting times |

Triage Operations

| Tool | Description | |------|-------------| | get_daily_briefing | Priority emails + today's calendar | | triage_priority_emails | Identify high-priority items | | quick_clean_inbox | Batch cleanup with approval |

Semantic Search (PostgreSQL + pgvector)

| Tool | Description | |------|-------------| | semantic_search_emails | Search by meaning, not keywords | | find_related_emails | Similar emails to reference |


📊 Database Schema

Email Storage

CREATE TABLE emails (
    uid INTEGER,
    folder TEXT,
    message_id TEXT UNIQUE,
    gmail_thread_id BIGINT,        -- X-GM-THRID
    gmail_msgid BIGINT,            -- X-GM-MSGID
    gmail_labels JSONB,            -- Full label set
    subject TEXT,
    from_addr TEXT,
    to_addr TEXT,
    date TIMESTAMPTZ,
    internal_date TIMESTAMPTZ,     

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars3
CategoryDevelopment
Updated8mo ago
Forks1

Languages

Python

Trust signals

69/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium3 low