Skip to main content
Glama
Gmail Guardian

Gmail Guardian

by wyller

Gmail Guardian

Intelligenter Agent für die Gmail-Verwaltung, erstellt mit Claude (Anthropic SDK) und integriert über MCP-Server.

Funktionen

Fähigkeit

Beschreibung

triagem-email

Klassifiziert ungelesene E-Mails nach Kategorie und Priorität

classificar-newsletters

Identifiziert und organisiert Newsletter nach Thema

limpar-promocoes

Archiviert Werbe-E-Mails in großen Mengen mit Sicherheitsvorkehrungen

resumir-importantes

Erstellt Briefings mit Aktionspunkten und Fristen

sugerir-filtros

Analysiert Muster und erstellt automatische Filter

responder-rascunho

Erstellt Antwortentwürfe für ausstehende E-Mails

auditoria-acoes

Vollständiges Aktionsprotokoll mit Rückgängig-Unterstützung

Related MCP server: Gmail MCP Server

Voraussetzungen

  • Python 3.11+

  • Google-Konto mit Gmail

  • Anthropic-API-Schlüssel

  • OAuth2-Anmeldedaten von der Google Cloud Console

Installation

# 1. Instalar dependências
pip install -r requirements.txt

# 2. Configurar variáveis de ambiente
cp .env.example .env
# Editar .env com suas chaves

# 3. Baixar credentials.json do Google Cloud Console
# (APIs & Services > Credentials > OAuth 2.0 Client IDs)
# Salvar em config/credentials.json

Verwendung

Interaktiver Modus (REPL)

python run.py
Gmail Guardian — Agente de gerenciamento de emails
Digite 'sair' para encerrar | 'log' para ver auditoria

Você: triar meus emails não lidos
Agente: Buscando emails não lidos...

Als MCP-Server (Claude Code)

python run.py --mcp

Fügen Sie zu Ihrer ~/.claude/settings.json hinzu:

{
  "mcpServers": {
    "gmail": {
      "command": "python",
      "args": ["/caminho/para/email-guardian/run.py", "--mcp"],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "GOOGLE_CREDENTIALS_PATH": "/caminho/para/credentials.json"
      }
    }
  }
}

Dann verwenden Sie es im Claude Code:

/triagem-email
/limpar-promocoes
/resumir-importantes

Projektstruktur

email-guardian/
├── .claude/              # Configuração do agente e skills para Claude Code
│   ├── agents/           # Definição do agente gmail-guardian
│   └── skills/           # Skills invocáveis via /skill-name
├── agent/                # Orquestração do agente (Anthropic SDK)
├── gmail_mcp/            # MCP Server + ferramentas Gmail
│   ├── services/         # Wrappers da Gmail API
│   ├── tools/            # Implementação das ferramentas MCP
│   └── schemas/          # Dataclasses para tipagem
├── config/               # Settings, políticas e categorias
├── tests/                # Testes unitários
├── .env.example          # Template de variáveis de ambiente
├── requirements.txt
└── run.py                # Entry point

Sicherheit

  • Löscht niemals E-Mails endgültig ohne explizite Bestätigung

  • Behält automatisch Bestellbestätigungen und Rechnungen

  • Alle Aktionen werden im Audit-Log protokolliert

  • Unterstützt DRY_RUN=true zum Simulieren ohne Änderungen

Tests

pytest tests/ -v

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to manage Gmail by reading unread emails with automatic classification, creating AI-generated draft replies, and saving drafts directly to Gmail through the Gmail API.
    119 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides comprehensive Gmail integration with 25+ tools for intelligent email management, including AI-powered categorization, advanced search and filtering, automated archiving and cleanup, analytics, and secure OAuth2 authentication.
    119 npm
    2
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI agents to interact with Gmail for classifying messages, extracting action items, and performing batch inbox triage. It supports automated labeling, smart replies, and task creation for external platforms like Linear, Jira, and Todoist.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI-powered email management through Gmail, including search, send, drafts, labels, and an intelligent agent with human approval workflow and optional customer database integration.
    -