gmail-fan
Synchronizes Gmail and Google Workspace accounts locally and provides fast search over emails and messages.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gmail-fanfind unread emails from my manager across all accounts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gmail-fan
Local-first macOS Gmail gateway: synchronize several Gmail or Google Workspace accounts into SQLite, search them quickly, and expose the same operations through a JSON CLI and a local stdio MCP server.
Gmail is the source of truth. OAuth tokens live in the macOS Keychain. There is no bundled model, embeddings index, or model-provider SDK.
Requirements
macOS (Keychain + LaunchAgent)
Bun 1.4 or newer
A Google Cloud project with the Gmail API enabled and an OAuth Desktop client JSON
Related MCP server: Gmail Local MCP
Install and first account
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" --jsonProduction paths:
~/Library/Application Support/gmail-fan/
~/Library/Logs/gmail-fan/Development
bun install
bun run test:unit
bun run test:integration
bun run typecheck
bun run check
bun run buildArchitecture
Gmail accounts
↓
Gmail API + separate OAuth grant per account
↓
Synchronization service
↓
SQLite + FTS5
↓
Shared application service layer
↓
CLI Local MCP server (stdio)Decisions: docs/adr. Security: docs/security.md. CLI: docs/cli.md. MCP: docs/mcp.md. Demo: docs/demo.md.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceMulti-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.4MIT
- AlicenseNot gradedqualityDmaintenanceLocal 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
- AlicenseAqualityBmaintenanceLocal 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.8MIT
- FlicenseNot gradedqualityBmaintenanceA local-first personal knowledge daemon that syncs Gmail, Drive, and Calendar into a SQLite store for search and context retrieval via Claude Desktop over MCP.
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Search Hacker News, Bluesky, and Substack from a single MCP interface
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nvsd/gmail-fan'
If you have feedback or need assistance with the MCP directory API, please join our Discord server