MCP Google Docs
Provides tools to read Google Docs documents, insert or append text, and perform find-and-replace operations.
Provides tools to list, search, and inspect files and documents stored in Google Drive.
Provides tools to inspect spreadsheets, read sheet data, update cells, batch update ranges, append single or multiple rows, and insert empty rows at a position.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Google Docs
English
Lightweight MCP Server for querying, reading, and modifying Google Drive documents and spreadsheets.
Setup
1. Create Google Cloud Project
Go to Google Cloud Console
Create a new project
Enable Google Drive API, Google Docs API, Google Sheets API
Create OAuth 2.0 credentials (Desktop app type)
Save your Client ID and Client Secret
2. Configure MCP Client
Add to your Claude Desktop config:
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "mcp-google-docs"],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id",
"GOOGLE_CLIENT_SECRET": "your_client_secret"
}
}
}
}3. First Use
Call auth_login tool, browser will open Google authorization page.
Tools
Tool | Description |
| OAuth login |
| Check auth status |
| List files |
| Search files |
| Get file info |
| Read document |
| Insert text |
| Append text |
| Find and replace |
| Get spreadsheet info |
| Read sheet |
| Update cells |
| Batch update |
| Append row |
| Append multiple rows at once |
| Insert empty rows at position |
Prompt Template
## Google Docs MCP Rules
### Workflow
1. Run auth_login first if not authenticated
2. Use gdrive_search or gdrive_list to find files
3. Use read/update tools to operate
### Required
- Always read before modifying
- Use batch_update for bulk operations
### Forbidden
- Never guess file IDs, always search first
- Never update more than 100 cells at onceRelated MCP server: Google Drive MCP Server
中文
轻量级 MCP Server,支持查询、阅读、修改 Google Drive 中的文档和表格。
安装配置
1. 创建 Google Cloud 项目
创建新项目
启用 Google Drive API、Google Docs API、Google Sheets API
创建 OAuth 2.0 凭据(桌面应用类型)
记录 Client ID 和 Client Secret
2. 配置 MCP 客户端
在 Claude Desktop 配置文件中添加:
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "mcp-google-docs"],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id",
"GOOGLE_CLIENT_SECRET": "your_client_secret"
}
}
}
}3. 首次使用
调用 auth_login 工具,浏览器会弹出 Google 授权页面,授权后即可使用。
工具列表
工具 | 说明 |
| OAuth 授权登录 |
| 检查授权状态 |
| 列出文件 |
| 搜索文件 |
| 获取文件信息 |
| 读取文档 |
| 插入文本 |
| 追加文本 |
| 查找替换 |
| 获取表格信息 |
| 读取表格 |
| 更新单元格 |
| 批量更新 |
| 追加行 |
| 批量追加多行 |
| 在指定位置插入空行 |
使用提示词
## Google Docs MCP 使用规则
### 流程
1. 首次使用先调用 auth_login 授权
2. 用 gdrive_search 或 gdrive_list 找到目标文件
3. 用对应的 read/update 工具操作
### 强制
- 修改前必须先读取确认内容
- 批量操作使用 batch_update
### 禁止
- 不要猜测文件ID,必须先搜索
- 不要一次修改超过100个单元格License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Search, read and cite documents. Add, replace and delete files with write access. OAuth required.
Google Docs MCP Pack — read, create, and edit Google Docs via OAuth. Reuses the google_sheets…
Search, read, preview, create, update, rename, arrange and trash sketches in your Google Drive.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates with Google Drive to enable listing, searching, and reading files, plus reading and writing to Google Sheets.490 npm283MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Drive files and Google Sheets through search, read, and write operations. Supports automatic conversion of Google Workspace files to readable formats and direct spreadsheet cell updates.MIT
- AlicenseNot gradedqualityDmaintenanceEnables listing, searching, reading, writing, creating, and uploading files on Google Drive.ISC
- AlicenseNot gradedqualityCmaintenanceEnables querying and managing files in Google Drive, including listing, searching, creating, and downloading files with metadata.66 npmMIT