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.
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
ConnectOAuth 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
- Cloudflare account + Wrangler configured.
- Google Cloud project with:
- Google Sheets API enabled
- Google Docs API enabled
- Google Slides API enabled
- Google Drive API enabled
- 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>/mcphttps://<worker-domain>/authorizehttps://<worker-domain>/oauth/tokenhttps://<worker-domain>/oauth/registerhttps://<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
- Add the MCP URL to Claude via
mcp-remote. - Claude shows
Connect. - User completes OAuth + Google consent in browser.
- Claude stores MCP auth token, and the worker stores Google refresh token by user identity.
- 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.