Gogcli MCP logo

Gogcli MCP

Connects Claude to Google Workspace for Sheets, Docs, Gmail, Calendar, Drive, Tasks, Contacts, and authentication.

Install Gogcli MCP

Run the project’s own setup commands, in order.

Setup steps from the project

gogcli-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    brew install node        # macOS
    
  2. 2. Install
    npm install -g gogcli-mcp          # base
    
  3. 3. Install
    npm install -g gogcli-mcp-sheets   # extended sheets
    
  4. 4. Install
    npm install -g gogcli-mcp-docs     # extended docs
    
  5. 5. Add to Claude Code
    claude mcp add gogcli -- gogcli-mcp
    

Overview

gogcli-mcp MCP server exposes Google Workspace operations through the gogcli command-line tool and Model Context Protocol. The base package covers Sheets, Docs, Gmail, Calendar, Drive, Tasks, Contacts, and authentication, while separate packages provide extended Sheets, Docs, or Maps capabilities. Install it when an MCP client needs to read or modify a single user's Google Workspace data through natural-language requests. It runs locally with Node.js 22 or later and requires the user's own Google OAuth setup.

Use cases

  • Read and update spreadsheet ranges
  • Search Gmail for messages and invoices
  • Create and manage calendar events
  • Export and inspect Google Docs
  • Build shareable trip-stop map data

Key features

  • Google Sheets read and write operations
  • Google Docs, Gmail, Calendar, Drive, Tasks, and Contacts access
  • Extended Sheets and Docs packages
  • Google OAuth account authentication
  • Local file-root restrictions and hosted upload slots
  • Optional account selection per tool call

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 73d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.

How Gogcli MCP works

What gogcli-mcp does

gogcli-mcp connects an MCP-compatible client to Google Workspace through gogcli. The main package provides 52 tools spanning Google Sheets, Docs, Gmail, Calendar, Drive, Tasks, Contacts, and authentication. Separate standalone packages target narrower or extended use cases:

  • gogcli-mcp-sheets adds extended Sheets operations such as tabs, formatting, and named ranges.
  • gogcli-mcp-docs adds extended Docs operations including insertion, export, text replacement, and comments.
  • gogcli-mcp-maps supports Google Places lookups and creates trip-stop map data as KML or CSV in Drive.

Typical requests include reading a spreadsheet range, appending rows, searching Gmail, creating calendar events, listing document comments, or exporting a document as a PDF. Each package can be installed independently.

How it works

The MCP packages wrap the gogcli executable. An MCP client starts the selected package as a local process, and the package translates tool calls into gogcli operations against Google's official APIs. Authentication uses Google OAuth for an account selected by the user.

The base server can accept an optional account parameter on tool calls, allowing requests to specify an authorized Google account. The configured GOG_ACCOUNT value is used in the Claude Desktop example.

File operations are restricted to directories listed in GOG_FILE_ROOTS. This applies to attachments, uploads, downloads, exports, and paths passed through supported command wrappers. If the variable is unset, the default directory is ~/gogcli-mcp-files. Inline content and blob keys follow different handling rules. Hosted deployments can use upload slots and returned blobKeys instead of local paths, with files limited to 25 MiB per upload.

Setup and configuration

Install gogcli for the operating system, then authenticate an account with a command such as gog auth add your@gmail.com. Authentication can be limited to selected services, including Sheets, Docs, and Drive. Users must create and configure their own OAuth client in Google Cloud; credentials and refresh tokens should not be committed to source control.

Install Node.js 22 or later, then install the package globally:

Terminal
npm install -g gogcli-mcp

Add the executable to an MCP client configuration. Claude Desktop uses a command entry with gogcli-mcp and an environment value such as GOG_ACCOUNT. Claude Code can register it with:

Terminal
claude mcp add gogcli -- gogcli-mcp

Replace the package name with gogcli-mcp-sheets or gogcli-mcp-docs when the extended package is more suitable.

Tools and capabilities

The base package provides access to:

  • Google Sheets reading and writing
  • Google Docs operations
  • Gmail search and message workflows
  • Calendar event management
  • Drive file operations
  • Google Tasks and Contacts
  • Authentication management

The extended Sheets package includes 35 tools, while the extended Docs package includes 26. The Maps package provides 12 tools for Places lookups and preparing map data for Google My Maps through files stored in Drive. File-aware Gmail, Drive, Docs, Slides, and related operations can use local paths subject to the configured file roots, inline bytes, or hosted upload slots.

Limitations and notes

The server is intended for personal, single-user automation against the account holder's own Workspace data. It is not intended for bulk extraction from an organization, multi-tenant SaaS use, or access to accounts the user does not control. Shared content still requires the authenticated account to have permission.

Google API quotas, OAuth restrictions, token revocation, and Workspace administrator policies apply. Corporate users should check whether their administrator permits the OAuth application. The project is not affiliated with Google, and the user is responsible for reviewing tool permissions and the effects of each operation, especially actions that send messages, grant access, run code, incur charges, or permanently delete data.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gogcli MCP

gogcli-mcp is an MCP server that connects Claude and other MCP clients to Google Workspace through gogcli. Its main tools work with Sheets, Docs, Gmail, Calendar, Drive, Tasks, Contacts, and authentication, letting a user read, write, search, export, and manage content in an authorized personal Google account.

Install gogcli, authenticate a Google account, install Node.js 22 or later, and run `npm install -g gogcli-mcp`. Then register the `gogcli-mcp` executable in your MCP client, setting `GOG_ACCOUNT` to the account used for Workspace access.

Yes, gogcli-mcp works with Claude Desktop through its MCP server configuration. Add `gogcli-mcp` as the command and set `GOG_ACCOUNT` in the server environment. Claude Code can also register the server with `claude mcp add gogcli -- gogcli-mcp`.

Set `GOG_FILE_ROOTS` to a colon-separated list of permitted directories, or use semicolons on Windows. When unset, local file operations default to `~/gogcli-mcp-files`; attachments, uploads, exports, downloads, and supported path arguments are restricted to those roots.

Yes, tools accept an optional `account` parameter for selecting among authorized accounts. The server also supports a default account through `GOG_ACCOUNT`, while each account must be authenticated with gogcli before use.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGogcli MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gogcli-mcp?style=directory)](https://allmcps.com/mcp/gogcli-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/gogcli-mcp"><img src="https://allmcps.com/api/badge/gogcli-mcp?style=directory" alt="Gogcli MCP on AllMCPs" /></a>