Skip to main content
Glama
nvsd

gmail-fan

by nvsd

gmail-fan

ローカルファーストのmacOS Gmailゲートウェイ: 複数のGmailまたはGoogle WorkspaceアカウントをSQLiteに同期し、高速に検索し、同じ操作をJSON CLIとローカルstdio MCPサーバーとして公開します。

Gmailが正本です。OAuthトークンはmacOS Keychainに保管されます。バンドルされたモデル、エンベディングインデックス、モデルプロバイダーSDKはありません。

要件

  • macOS (Keychain + LaunchAgent)

  • Bun 1.4以降

  • Gmail APIを有効にしたGoogle Cloudプロジェクトと、OAuth Desktop クライアントJSON

Related MCP server: Gmail Local MCP

インストールと最初のアカウント

bun install
bun run build
bun src/cli/main.ts init --oauth-client ./client_secret.json
bun src/cli/main.ts accounts add --alias work
bun src/cli/main.ts sync
bun src/cli/main.ts search "quarterly planning" --json

本番パス:

~/Library/Application Support/gmail-fan/
~/Library/Logs/gmail-fan/

開発

bun install
bun run test:unit
bun run test:integration
bun run typecheck
bun run check
bun run build

アーキテクチャ

Gmail accounts
      ↓
Gmail API + separate OAuth grant per account
      ↓
Synchronization service
      ↓
SQLite + FTS5
      ↓
Shared application service layer
      ↓
CLI            Local MCP server (stdio)

決定事項: docs/adr。セキュリティ: docs/security.md。CLI: docs/cli.md。MCP: docs/mcp.md。デモ: docs/demo.md。

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    Multi-account Google MCP server providing read access to Gmail and Calendar via stdio. Supports secure authentication for personal and work accounts with OAuth and keychain token storage.
    4
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Local stdio MCP server that mirrors the public Gmail MCP server tool surface while calling the Gmail REST API directly, enabling email management tasks like creating drafts, searching threads, and managing labels.
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Local MCP server for multi-account IMAP/SMTP email (iCloud + Gmail via app-specific passwords). Never marks mail read. Cross-folder search, idempotent sends, TLS verified.
    8
    11 PyPI
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A self-hostable Gmail MCP server that enables Gmail search/read, sending, replies, drafts, labels, and attachment downloads via MCP tools with OAuth authorization. Supports stdio and streamable HTTP transports.
    1
    MIT