MCP Google Workspace Server
A Model Context Protocol (MCP) server enabling AI agents to interact with Google Workspace (Drive, Docs, and Sheets) services.
🌟 Features
- Google Drive: Search files, create folders
- Google Docs: Create, read, update documents
- Google Sheets: Create spreadsheets, read/write cell values
- Multiple transport modes: stdio (default), SSE, WebSocket
- MCP-compatible client support (Cursor, etc.)
📋 Installation
Using uv (recommended)
Using pip
Development setup
🔧 Configuration
Configure for MCP Clients
Add to your client settings (e.g. Cursor, Claude):
Using uvx (recommended):
Using pip installation:
Google OAuth Setup
- Visit Google Cloud Console
- Enable Drive, Docs, and Sheets APIs
- Create OAuth 2.0 credentials
- Save as
~/.google/oauth.keys.json
- Run
mcp-google auth
to authenticate
Available Tools
Drive Operations
drive_search_files
: Search files in Google Drivequery
(string, required): Search querypage_size
(integer, optional): Number of results to return
drive_create_folder
: Create a new foldername
(string, required): Folder nameparent_id
(string, optional): Parent folder ID
Docs Operations
docs_create
: Create a new documenttitle
(string, required): Document titlecontent
(string, optional): Initial content
docs_get_content
: Get document contentdocument_id
(string, required): Document ID
docs_update_content
: Update document contentdocument_id
(string, required): Document IDcontent
(string, required): New content
Sheets Operations
sheets_create
: Create a new spreadsheettitle
(string, required): Spreadsheet titlesheets
(array, optional): Sheet names
sheets_get_values
: Get cell valuesspreadsheet_id
(string, required): Spreadsheet IDrange
(string, required): A1 notation range
sheets_update_values
: Update cell valuesspreadsheet_id
(string, required): Spreadsheet IDrange
(string, required): A1 notation rangevalues
(array, required): 2D array of values
🛠️ Development
🔍 Debugging
Use the MCP Inspector for interactive testing:
📚 Resources
🤝 Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
🔒 Security
See SECURITY.md for reporting vulnerabilities and best practices.
📄 License
MIT License - See LICENSE file for details.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
模型上下文协议服务器,使 AI 代理能够通过自然语言命令与 Google Workspace 服务(包括 Drive、Docs 和 Sheets)进行交互。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to interact with Gmail services, supporting email operations, draft management, and calendar functionality through Google API integration.Last updated -1,0101TypeScript
- -securityAlicense-qualityA Model Context Protocol server that integrates with Google Drive and Google Sheets, enabling users to create, read, update, and manage spreadsheets through natural language commands.Last updated -343PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides seamless integration with Google Workspace, allowing operations with Google Drive, Docs, and Sheets through secure OAuth2 authentication.Last updated -83PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to read from, append to, and format text in Google Documents programmatically.Last updated -80TypeScriptMIT License