Gmail Guardian
Gmail Guardian
Agente inteligente para gerenciamento do Gmail, construído com Claude (Anthropic SDK) e integrado via MCP server.
Funcionalidades
Skill | Descrição |
| Classifica emails não lidos por categoria e prioridade |
| Identifica e organiza newsletters por tema |
| Arquiva emails promocionais em massa com salvaguardas |
| Gera briefings com pontos de ação e prazos |
| Analisa padrões e cria filtros automáticos |
| Gera rascunhos de resposta para emails pendentes |
| Log completo de ações com suporte a reversão |
Related MCP server: Gmail MCP Server
Pré-requisitos
Python 3.11+
Conta Google com Gmail
Chave de API da Anthropic
Credenciais OAuth2 do Google Cloud Console
Instalação
# 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.jsonUso
Modo interativo (REPL)
python run.pyGmail 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...Como MCP Server (Claude Code)
python run.py --mcpAdicione ao seu ~/.claude/settings.json:
{
"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"
}
}
}
}Depois use no Claude Code:
/triagem-email
/limpar-promocoes
/resumir-importantesEstrutura do Projeto
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 pointSegurança
Nunca deleta emails permanentemente sem confirmação explícita
Preserva automaticamente confirmações de pedido e notas fiscais
Todas as ações são registradas no log de auditoria
Suporte a
DRY_RUN=truepara simular sem modificar
Testes
pytest tests/ -vThis server cannot be deployed
Maintenance
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Search and triage all your mailboxes; draft replies and campaigns; send only as you allow.
Gmail, Outlook, Drive, OneDrive and calendars for AI agents. Many accounts, one endpoint, audit log.
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides 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 npm2MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables 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.-
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered email management through Gmail, including search, send, drafts, labels, and an intelligent agent with human approval workflow and optional customer database integration.-