Google Workspace MCP
Allows reading document content, creating new documents, appending text, and listing document tabs in Google Docs.
Allows searching and listing files in Google Drive.
Allows reading values from a range in Google Sheets.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Workspace MCPlist my recent Google Drive files"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Workspace MCP on Cloudflare Workers
This is a Model Context Protocol (MCP) server that runs on Cloudflare Workers and interacts with Google Docs, Sheets, and Drive. It allows AI assistants like Claude Desktop, Cursor, and others to securely access and manage your Google Workspace documents.
Features
Google Drive: Search and list files with
listDriveFiles.Google Docs:
Read document content with
readDocument.Create new documents with
createDocument.Append text to documents with
appendDocumentText.List document tabs with
listDocumentTabs.
Google Sheets: Read values from a range with
readSheet.
Related MCP server: google-connections-mcp
Setup
1. Google Cloud Console Configuration
Go to the Google Cloud Console.
Create a new project.
Enable the following APIs:
Google Drive API
Google Docs API
Google Sheets API
Go to APIs & Services > Credentials.
Create an OAuth 2.0 Client ID (Web application).
Add
http://localhost:8787/oauth/callbackto the Authorized redirect URIs.Note down your Client ID and Client Secret.
2. Configuration & Secrets
Create a KV namespace:
npx wrangler kv:namespace create GOOGLE_AUTH_KVUpdate your
wrangler.jsoncwith the KV namespace ID.Set your Google OAuth secrets:
npx wrangler secret put GOOGLE_CLIENT_ID npx wrangler secret put GOOGLE_CLIENT_SECRET
3. Deployment
npm install
npm run deployAuthentication
Once deployed (or running locally with npm run dev), visit the following URL to authenticate with your Google account:
http://localhost:8787/oauth/login (or your deployed worker URL)
This will securely store your refresh token in Cloudflare KV.
MCP Configuration
Add the following to your MCP client configuration (e.g., claude_desktop_config.json):
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/sdk-server-sse", "http://localhost:8787/mcp"]
}
}
}Development
npm run devThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NolanFoster/google-workspace-mcp-cloudflare'
If you have feedback or need assistance with the MCP directory API, please join our Discord server