FGAC.ai: Multiple Gmail Accounts, Google Sheets & Docs
RemoteAbout FGAC.ai: Multiple Gmail Accounts, Google Sheets & Docs
FGAC.ai is a hosted MCP server and API proxy that applies configurable, deny-by-default rules to AI agents' access to Gmail, Google Sheets, and Google Docs. It supports multiple accounts and selected files, with approvals and a log of allowed and blocked requests.
Key features
- 01Connect multiple Gmail accounts
- 02Limit access to selected Sheets and Docs
- 03Apply deny-by-default access rules
- 04Approve additional access with one click
- 05Review allowed and blocked requests
Use cases
- 01Let an agent read approved inboxes
- 02Restrict mail sending to approved recipients
- 03Allow edits to specific Sheets or Docs
- 04Review which agent requests were blocked
MCP support
Exposes Gmail, Google Sheets, and Google Docs tools to MCP clients over Streamable HTTP, with OAuth 2.1 authentication. Access is governed by configurable rules and approvals.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://fgac.ai/api/mcpclaude mcp add --transport http ai-fgac-fgac https://fgac.ai/api/mcp{"mcpServers":{"ai-fgac-fgac":{"type":"http","url":"https://fgac.ai/api/mcp"}}}Open in Cursor{"servers":{"ai-fgac-fgac":{"type":"http","url":"https://fgac.ai/api/mcp"}}}Open in VS Code{"mcpServers":{"ai-fgac-fgac":{"type":"http","url":"https://fgac.ai/api/mcp"}}}{"mcpServers":{"ai-fgac-fgac":{"serverUrl":"https://fgac.ai/api/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEFGAC.ai
Fine-grain access control for AI agents on Gmail, Google Sheets and Google Docs.
Product: https://fgac.ai · Docs: https://fgac.ai/docs · Privacy: https://fgac.ai/privacy
FGAC.ai is a hosted MCP server and API proxy that sits between your AI agents and your Google accounts. Connect one or many Gmail accounts — work, school, personal, and inboxes teammates delegate to you — plus the specific Google Sheets and Docs you choose, and every request passes through deny-by-default access rules you control before it touches Google. Nothing to install, no Google Cloud project needed: sign in with Google and the agent can read that account's mail immediately; sending, editing, and other inboxes are granted from your dashboard or from a one-click approval link the agent hands you when it is denied.
Add FGAC to your agent
| Client | How |
|---|---|
| Claude.ai / Claude Desktop | Search FGAC in the connectors directory, or add a custom connector with the URL below |
| Claude Code | claude mcp add --transport http fgac https://fgac.ai/api/mcp |
| VS Code / Copilot, Cursor, Windsurf, Cline | Add a remote MCP server: https://fgac.ai/api/mcp (Streamable HTTP, OAuth sign-in) — or find ai.fgac/fgac in the MCP Registry |
| Smithery | smithery.ai/servers/fgac/fgac |
| Any Google SDK | Point the client's endpoint override at https://fgac.ai/api/proxy with an FGAC proxy key — see the docs |
MCP endpoint: https://fgac.ai/api/mcp (Streamable HTTP; OAuth 2.1 with
dynamic client registration and PKCE; discovery at
/.well-known/oauth-protected-resource/mcp).
What you get
- Multiple Gmail accounts — connect several accounts, and let teammates delegate their inboxes to your agent from their own dashboard. Every delegation keeps its own rules and is revocable in one click. No password sharing.
- Editable Google Sheets and Docs — expose individual files read-only or read & write; agents can update cells, append rows, and edit documents there and nowhere else. The rest of your Drive does not exist to them.
- Guardrails — read rules hide sensitive mail (2FA codes, password resets, financial alerts) by label or content pattern; send whitelists limit outbound mail to recipients you approve; permanent deletion is never possible.
- One-click approvals — when an agent needs more (a new recipient, a new sheet), it asks; you approve exactly that grant from a single-use link.
- Nineteen tools — typed Gmail, Sheets, Docs, and comments tools with safety annotations, plus a rule-checked raw Google API escape hatch covering the full Gmail, Sheets, and Docs API surface.
- A request log — every call your agent makes, with what was allowed and what was blocked and why.
Your data is never stored or used for training. See the Terms for service terms.
Licensing
Two different things, two different terms:
- The hosted service at https://fgac.ai is open to anyone — individuals, teams, companies, and schools — under its Terms of Service and Privacy Policy. Connecting an agent through fgac.ai does not involve this repository's license at all.
- This source code is licensed for personal use only: an independent
individual may self-host it to manage their own Gmail or Google Workspace
accounts. Use by or on behalf of a company, government agency, or educational
institution, and offering the code as a hosted or multi-tenant service, are
prohibited without a separate license from the author. See
LICENSEfor the exact terms and liability limitations.
Developing
This is a Next.js app deployed on Vercel, with Clerk for authentication and Neon Postgres via Drizzle. There is exactly one supported way to run it locally, and it depends on access to the project's Vercel environment:
npx vercel link --yes --project fine-grain-access-control # once per clone
npx vercel env pull .env.local --environment=development # dev Clerk + Neon creds
npm run db:branch # isolated Neon branch
npm run dev
Node 20.9+ is required. npm run env:check diagnoses environment problems.
Contributor rules, QA workflow, and database safety guards are documented in
CLAUDE.md and docs/.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.