# FGAC.ai: Multiple Gmail Accounts, Google Sheets & Docs

A hosted MCP server that puts access rules between your agent and your Google accounts. Useful when the agent needs mail and spreadsheets, not your whole Drive.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: fgac-ai
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/fgac-ai/fine_grain_access_control
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/fgacai-multiple-gmail-accounts-google-sheets-docs

## What it does

FGAC.ai acts as a proxy. Your agent talks to it, and it decides whether a call reaches Gmail, Google Sheets or Docs. Several mailboxes can be attached at once — work, personal, school, plus inboxes teammates hand over. A delegation carries its own rules and can be revoked in one click, with no password sharing.

Access is deny-by-default. Read rules can keep verification codes, password-reset messages and bank notices away from the agent, filtered by label or by content. Outbound mail goes only to recipients you approve, and permanent deletion is off the table. When the agent wants more — a new address, another sheet — it asks, and you confirm that single grant through a one-time link.

Nineteen typed tools cover Gmail, Sheets, Docs and comments, alongside a raw Google API escape hatch that still passes the rule check. A request log records every call, what was allowed, what was blocked and why. No Google Cloud project is needed to connect, but self-hosting expects Node 20.9+ and access to the project's Vercel environment: local runs depend on `vercel env pull` and a Neon branch. The source code is licensed for personal use only, so companies, government agencies and schools need a separate license.

## Requirements
- Remote server: `https://fgac.ai/api/mcp`
- Works with: Gmail, Google Workspace

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http fgac https://fgac.ai/api/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add fgacai-multiple-gmail-accounts-google-sheets-docs --url https://fgac.ai/api/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "fgacai-multiple-gmail-accounts-google-sheets-docs": {
            "url": "https://fgac.ai/api/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "fgacai-multiple-gmail-accounts-google-sheets-docs": {
            "type": "http",
            "url": "https://fgac.ai/api/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http fgacai-multiple-gmail-accounts-google-sheets-docs https://fgac.ai/api/mcp
```

## When to use it
- attach several mailboxes to one agent without sharing passwords
- keep verification codes and password resets out of the agent's view
- allow edits to specific sheets and documents only
- restrict outbound mail to approved recipients
- review which agent calls were allowed and which were blocked

## Example prompts
- Show unread mail in my work inbox from today
- Append a row to the `Budget` sheet and refresh the total cell
- Draft a reply to the client, but show it to me first

## Similar
- [google-sheets](https://affpapa.org/en/nevibecode/skills/sanjay3290-google-sheets.md) — skill · 465 installs
- [google-workspace](https://affpapa.org/en/nevibecode/skills/nous-research-google-workspace.md) — skill · 580 installs
- [Google Workspace](https://affpapa.org/en/nevibecode/mcp/google-workspace.md) — MCP server · ★ 192
- [gmail](https://affpapa.org/en/nevibecode/skills/sanjay3290-gmail.md) — skill · 516 installs
- [recipe-draft-email-from-doc](https://affpapa.org/en/nevibecode/skills/recipe-draft-email-from-doc.md) — skill · 31600 installs
- [recipe-save-email-to-doc](https://affpapa.org/en/nevibecode/skills/recipe-save-email-to-doc.md) — skill · 30400 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
