Google Workspace MCP

Google Workspace MCP

Enables interaction with Google Sheets, Docs, Slides, and Drive through a remote MCP server hosted on Cloudflare Workers, with OAuth authentication and Claude-native connect.

Category
Visit Server

README

Google Workspace MCP on Cloudflare Workers

Cloudflare Workers-hosted remote MCP server with Claude-native OAuth connect and Google Sheets, Docs, Slides, and Drive tools.

This project is built from the Cloudflare Workers MCP template and implements a Workers-native Google Sheets MCP toolset inspired by xing5/mcp-google-sheets.

Features

  • Remote MCP endpoint on Cloudflare Workers (/mcp).
  • Native Claude Connect OAuth flow.
  • Per-user Google OAuth flow behind Claude auth (persistent across sessions).
  • Google Sheets, Docs, Slides, and Drive operations (listing, reading, writing, management, sharing).

Prerequisites

  1. Cloudflare account + Wrangler configured.
  2. Google Cloud project with:
    • Google Sheets API enabled
    • Google Docs API enabled
    • Google Slides API enabled
    • Google Drive API enabled
  3. OAuth 2.0 credentials (Web application) in Google Cloud.

Environment and Secrets

Set these secrets:

wrangler secret put GOOGLE_OAUTH_CLIENT_ID
wrangler secret put GOOGLE_OAUTH_CLIENT_SECRET
wrangler secret put GOOGLE_OAUTH_REDIRECT_URI

GOOGLE_OAUTH_REDIRECT_URI must be:

https://<your-worker-domain>/callback

Also configure GOOGLE_AUTH_KV namespace in wrangler.jsonc.

Local Development

npm install
npm run dev

MCP endpoint:

http://localhost:8787/mcp

Deployment

npm run deploy

Deployed endpoints:

  • https://<worker-domain>/mcp
  • https://<worker-domain>/authorize
  • https://<worker-domain>/oauth/token
  • https://<worker-domain>/oauth/register
  • https://<worker-domain>/callback

Claude Cowork / mcp-remote Setup

Example MCP config:

{
	"mcpServers": {
		"google-sheets-remote": {
			"command": "npx",
			"args": ["mcp-remote", "https://<worker-domain>/mcp"]
		}
	}
}

Authentication Flow

  1. Add the MCP URL to Claude via mcp-remote.
  2. Claude shows Connect.
  3. User completes OAuth + Google consent in browser.
  4. Claude stores MCP auth token, and the worker stores Google refresh token by user identity.
  5. Tools work without passing a session_token.

Tool Coverage

Implemented tools:

  • Sheets (new prefixed names + legacy aliases)
    sheets_list_spreadsheets, sheets_create_spreadsheet, sheets_list_sheets, sheets_get_sheet_data, sheets_update_cells, sheets_batch_update_cells, sheets_batch_update, sheets_add_rows, sheets_add_columns, sheets_create_sheet, sheets_rename_sheet, sheets_copy_sheet, sheets_search_spreadsheets, sheets_find_in_spreadsheet, sheets_get_multiple_sheet_data, sheets_get_multiple_spreadsheet_summary, sheets_share_spreadsheet, sheets_add_chart
    Legacy unprefixed sheets tool names are still registered for compatibility.
  • Docs
    docs_list_documents, docs_search_documents, docs_create_document, docs_get_document, docs_batch_update, docs_insert_text, docs_replace_all_text, docs_share_document, docs_get_multiple_document_summary
  • Slides
    slides_list_presentations, slides_search_presentations, slides_create_presentation, slides_get_presentation, slides_batch_update, slides_create_slide, slides_insert_text, slides_replace_all_text, slides_share_presentation, slides_get_multiple_presentation_summary

Notes

  • Tool schemas no longer require session_token; user context is resolved from MCP auth.
  • Google access tokens are refreshed automatically when refresh tokens are available.
  • Ensure OAuth consent screen + redirect URI are configured exactly in Google Cloud.
  • OAuth consent should include scopes for Sheets, Docs, Slides, and Drive access.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured