gmail-sorter
Provides tools for sorting personal Gmail, including managing labels, reading unread messages, and setting up automated email organization through the Gmail API.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
gmail-sorter
Система сортировки личного Gmail на мультиагентах Claude Code. Полная архитектура — в
architecture.md. Этот репозиторий реализует её по фазам.
Статус: Фазы 0–4. Продакшн-запуск на VPS по расписанию — см. docs/runbook.md.
Требования
Python 3.11+
(для живых Gmail-вызовов) OAuth-клиент из Google Cloud Console с включённым Gmail API
Related MCP server: workspace-ai
Установка
python -m venv .venv
# Windows PowerShell:
.venv\Scripts\Activate.ps1
# Linux/macOS:
# source .venv/bin/activate
pip install -e ".[dev]"Тесты (работают офлайн, без Gmail-кредов)
python -m pytestИнициализация state.db
БД создаётся автоматически при старте MCP-сервера. Вручную:
python -c "import sys; sys.path.insert(0,'mcp'); import db; db.init_db('data/state.db'); print('ok')"OAuth (разово, требует client_secret из Google Cloud)
# Положи скачанный client_secret в .gmail-credentials.json (см. .env.example)
python mcp/google_auth.py # откроет браузер, сохранит .gmail-token.jsonСоздание меток Gmail (разово, после OAuth)
python scripts/setup_labels.pyЗапуск MCP-сервера через Claude Code
Скопируй .claude/settings.local.json.example → .claude/settings.local.json. ВАЖНО: значение command должно указывать на python из venv (Claude Code запускает MCP-сервер отдельным процессом и НЕ наследует активированный venv): на Windows — .venv\Scripts\python.exe, на Linux VPS — .venv/bin/python. Затем в Claude Code вызови инструменты mcp__gmail__list_unread_batch и т.д.
Related MCP Connectors
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Email inboxes for AI agents: send, receive, reply, search, and manage threaded email over MCP.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceLets Claude Desktop manage multiple Gmail accounts simultaneously, supporting search, read, send, reply, and label organization via MCP tools.76 npm19MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Gmail accounts via MCP, providing tools for listing labels, searching, reading, drafting, and sending emails with OAuth2 authentication.-
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered Gmail triage: fetches unread emails, classifies them, drafts replies for important ones, and sends only after user approval via conversational review. Exposes tools for checking unread emails and submitting review feedback from Claude Desktop or any MCP client.-
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to interact with multiple Gmail accounts via MCP, providing tools for sending, searching, reading, labeling, filtering, thread management, drafts, and attachments. It also ensures correct thread replies and recoverable deletes.9 npmMIT