Skip to content
MCP server

Google Workspace

Gmail, Calendar, Drive, Docs, Sheets and more behind one multi-account server, 124 tools

Runs locally

Google Workspace is an MCP server for productivity. It runs locally on your machine and is started by your AI client.

Platforms
CLI, API
Runs
Locally
What it can do
Can change data (1 tool)
Access
Needs a secret key or token
Version
0.5.11

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add mcp-server-google-workspace --env GOOGLE_CLIENT_ID='<GOOGLE_CLIENT_ID>' --env GOOGLE_CLIENT_SECRET='<GOOGLE_CLIENT_SECRET>' --env ACCOUNTS_PATH='<ACCOUNTS_PATH>' --env CREDENTIALS_PATH='<CREDENTIALS_PATH>' -- npx -y @mindstone/mcp-server-google-workspace

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "mcp-server-google-workspace": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-workspace"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
        "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-server-google-workspace": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-workspace"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
        "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-google-workspace": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-workspace"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
        "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "mcp-server-google-workspace": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-workspace"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
        "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add mcp-server-google-workspace --env GOOGLE_CLIENT_ID='<GOOGLE_CLIENT_ID>' --env GOOGLE_CLIENT_SECRET='<GOOGLE_CLIENT_SECRET>' --env ACCOUNTS_PATH='<ACCOUNTS_PATH>' --env CREDENTIALS_PATH='<CREDENTIALS_PATH>' -- npx -y @mindstone/mcp-server-google-workspace

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.mcp-server-google-workspace]
command = "npx"
args = ["-y", "@mindstone/mcp-server-google-workspace"]
env = { GOOGLE_CLIENT_ID = "<GOOGLE_CLIENT_ID>", GOOGLE_CLIENT_SECRET = "<GOOGLE_CLIENT_SECRET>", ACCOUNTS_PATH = "<ACCOUNTS_PATH>", CREDENTIALS_PATH = "<CREDENTIALS_PATH>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-server-google-workspace": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-google-workspace"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
        "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "mcp-server-google-workspace": {
          "command": "npx",
          "args": [
            "-y",
            "@mindstone/mcp-server-google-workspace"
          ],
          "env": {
            "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
            "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
            "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
            "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e GOOGLE_CLIENT_ID='<GOOGLE_CLIENT_ID>' -e GOOGLE_CLIENT_SECRET='<GOOGLE_CLIENT_SECRET>' -e ACCOUNTS_PATH='<ACCOUNTS_PATH>' -e CREDENTIALS_PATH='<CREDENTIALS_PATH>' mcp-server-google-workspace npx -- -y @mindstone/mcp-server-google-workspace

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "mcp-server-google-workspace": {
          "command": "npx",
          "args": [
            "-y",
            "@mindstone/mcp-server-google-workspace"
          ],
          "env": {
            "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
            "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
            "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
            "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "mcp-server-google-workspace": {
          "command": "npx",
          "args": [
            "-y",
            "@mindstone/mcp-server-google-workspace"
          ],
          "env": {
            "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
            "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
            "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
            "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "mcp-server-google-workspace": {
          "command": "npx",
          "args": [
            "-y",
            "@mindstone/mcp-server-google-workspace"
          ],
          "env": {
            "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
            "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
            "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
            "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "mcp-server-google-workspace": {
          "command": "npx",
          "args": [
            "-y",
            "@mindstone/mcp-server-google-workspace"
          ],
          "env": {
            "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
            "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
            "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
            "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "mcp-server-google-workspace": {
          "command": "npx",
          "args": [
            "-y",
            "@mindstone/mcp-server-google-workspace"
          ],
          "env": {
            "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
            "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
            "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
            "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "mcp-server-google-workspace": {
          "command": "npx",
          "args": [
            "-y",
            "@mindstone/mcp-server-google-workspace"
          ],
          "env": {
            "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
            "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
            "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
            "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "mcp-server-google-workspace": {
          "command": "npx",
          "args": [
            "-y",
            "@mindstone/mcp-server-google-workspace"
          ],
          "env": {
            "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
            "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
            "ACCOUNTS_PATH": "<ACCOUNTS_PATH>",
            "CREDENTIALS_PATH": "<CREDENTIALS_PATH>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • GOOGLE_CLIENT_IDGoogle OAuth client IDRequired
  • GOOGLE_CLIENT_SECRETGoogle OAuth client secretRequired
  • ACCOUNTS_PATHPath to accounts.json written by the MCP hostRequired
  • CREDENTIALS_PATHDirectory containing per-account Google OAuth token filesRequired
  • GOOGLE_WORKSPACE_REQUEST_TIMEOUT_MSOutbound Google API request timeout in milliseconds (max 300000 = 5 min)
  • GOOGLE_WORKSPACE_DISABLE_REFRESHSet to 1 to disable background OAuth token refresh (tokens are only read, never refreshed)
  • MCP_WORKSPACE_PATHDirectory attachments and downloaded files are constrained to (defaults to a temp dir; reads/writes outside it are refused)
  • WORKSPACE_BASE_PATHLegacy fallback for MCP_WORKSPACE_PATH; prefer MCP_WORKSPACE_PATH
  • GAUTH_FILELegacy fallback path to gauth.json OAuth client config; host-orchestrated setups use GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET instead

About Google Workspace

The maintainers forked an existing community Google Workspace server so the host application could own the entire sign-in flow. The connector runs no callback server and builds no OAuth URLs; it returns a structured auth_required response, and the host writes an accounts index plus per-account token files that the connector reads.

It has 124 tools across Gmail (23), Calendar (9), Drive (15) and further areas including Docs, Sheets, Slides, Contacts, Chat, Meet, Tasks, Forms and comments. Text from outside, such as email bodies and file names, is wrapped in untrusted-content tags, while IDs and page tokens are returned exactly so they can be passed straight to the next call.

Read requests retry when Google rate-limits, waiting up to 64 seconds each, but writes are never replayed. Token files are written atomically with restrictive permissions. The README says Google's own Workspace server has since shipped, and the maintainers keep this one for its credential layout and recovery guidance. It is a hard fork and no longer syncs with upstream.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 3 tools changes data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

authenticate_workspace_account
Returns the auth_required handoff so the host connects a Google account.
search_workspace_emailsName suggests: reads
Searches Gmail with a query.
reply_to_workspace_emailName suggests: changes
Replies on a returned thread ID.

What it does

124 Workspace tools
Spans Gmail, Calendar, Drive, Docs, Sheets, Slides, Contacts, Chat, Meet, Tasks and Forms.
Multiple accounts
Per-account token files with an accounts index.
Host-owned sign-in
The server hands OAuth to the host instead of running a callback.
Untrusted-content marking
Outside text is wrapped so assistants can treat it as data.
Safe retries
Reads wait and retry on rate limits; writes are not replayed.
Secure token files
Atomic writes with restrictive permissions and symlink rejection.

Good for

  • Find an email thread and reply
  • Look up free calendar slots
  • Search and copy Drive files
  • Work across personal and work Google accounts

Google Workspace FAQ

Does Google Workspace handle Google sign-in itself?

No. The host computes the OAuth URL and writes the token files.

Is Google Workspace published to npm?

The README lists it as not yet published, while the registry entry names an npm package.

Is Google Workspace related to Google's own server?

No. It is based on a community project and maintained independently.

How are rate limits handled?

Read requests retry, with each wait capped at 64 seconds; writes are not retried.

How do I add Google Workspace to Claude Code?

Run this command in your terminal: claude mcp add mcp-server-google-workspace --env GOOGLE_CLIENT_ID='<GOOGLE_CLIENT_ID>' --env GOOGLE_CLIENT_SECRET='<GOOGLE_CLIENT_SECRET>' --env ACCOUNTS_PATH='<ACCOUNTS_PATH>' --env CREDENTIALS_PATH='<CREDENTIALS_PATH>' -- npx -y @mindstone/mcp-server-google-workspace

What are the best alternatives to Google Workspace?

The closest alternatives to Google Workspace are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers