google-workspace-mcp
Provides tools for interacting with Google Docs, enabling reading document contents with heading and bullet structure, creating and appending content with markdown-style formatting, replacing text, formatting text, inserting tables and images, and performing batch updates for advanced needs.
Provides tools for interacting with Google Drive, enabling searching for files and folders, listing folder contents, creating folders, moving/copying/renaming files, trashing files, exporting files to various formats, uploading files with conversion to Google formats, and sharing files via email or public link.
Provides tools for interacting with Google Sheets, enabling reading and writing individual cells, applying formatting, managing tabs, inserting/deleting rows and columns, merging cells, sorting ranges, finding/replacing text, creating dropdowns, adding charts, and performing batch updates via the raw API.
Click on "Deploy 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-mcpAdd a dropdown to the status column in my project tracker"
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
MCP server kết nối Claude với Google Sheets, Google Docs và Google Drive.
Khác với connector Google Drive mặc định (chỉ đọc/ghi file), server này đọc & ghi được từng ô trong Google Sheets: viết công thức, định dạng, chèn/xoá hàng cột, tạo dropdown, biểu đồ, conditional format…
Chạy hoàn toàn trên máy bạn, bằng tài khoản Google Cloud của chính bạn. Không có máy chủ trung gian, dữ liệu không đi qua bên thứ ba.
Cài đặt
Cách 1 — Claude Desktop (dễ nhất)
Tải file .mcpb ở mục Releases → double-click → Install.
Rồi mở chat gõ "Hướng dẫn mình kết nối Google", Claude sẽ dẫn từng bước.
Cách 2 — Chạy từ mã nguồn
git clone https://github.com/haule2901/google-workspace-mcp.git
cd google-workspace-mcp
npm installTạo OAuth client của riêng bạn (miễn phí, ~10 phút, làm 1 lần):
Vào Google Cloud Console → tạo project mới.
APIs & Services → Library → Enable 3 API: Google Sheets API, Google Docs API, Google Drive API.
APIs & Services → OAuth consent screen → chọn External → điền tên app → ở mục Audience, thêm email của bạn vào Test users.
APIs & Services → Credentials → Create Credentials → OAuth client ID → chọn Desktop app → Create → Download JSON.
Đổi tên file vừa tải thành
credentials.json, đặt vào thư mục gốc của project (xem mẫu ởcredentials.example.json).
Đăng nhập:
npm run authTrình duyệt mở ra → đăng nhập tài khoản Google → token lưu vào token.json (tự refresh, không cần làm lại).
Google hiện "Google hasn't verified this app"? Bình thường — app này do chính bạn vừa tạo. Bấm Advanced → Go to … (unsafe) → Continue.
Khai báo server trong file cấu hình MCP của Claude:
{
"mcpServers": {
"google-workspace": {
"command": "node",
"args": ["/đường/dẫn/tới/google-workspace-mcp/index.js"]
}
}
}Related MCP server: Google Workspace MCP
Bảo mật
credentials.jsonvàtoken.jsonchứa bí mật của bạn — đã được.gitignore, đừng bao giờ commit hay chia sẻ.token.jsoncho phép truy cập Google account của bạn mà không cần mật khẩu. Coi nó như mật khẩu.Mỗi người dùng nên tạo OAuth client riêng, không dùng chung.
Tools
Drive (10)
Tool | Chức năng |
| Tìm file/thư mục theo tên → lấy id |
| Liệt kê nội dung thư mục |
| Tạo thư mục |
| Di chuyển / nhân bản / đổi tên |
| Chuyển vào thùng rác (khôi phục được, không xoá vĩnh viễn) |
| Tải về máy: Docs/Sheets → pdf/docx/xlsx/csv/pptx/txt/html |
| Upload file lên Drive, convert xlsx/csv → Sheets, docx → Docs |
| Chia sẻ cho email hoặc bật link công khai |
Sheets (18)
Tool | Chức năng |
| Danh sách tab, kích thước, freeze |
| Đọc 1 range hoặc nhiều |
| Ghi / thêm hàng / xoá giá trị |
| Đậm/nghiêng, font, cỡ chữ, màu chữ/nền, căn lề, định dạng số, wrap, border, freeze, độ rộng cột |
| Đổi tên / nhân bản / ẩn-hiện / màu tab / xoá tab |
| Chèn/xoá hàng, cột |
| Gộp/tách ô |
| Sắp xếp theo cột |
| Tìm & thay thế |
| Tô màu theo điều kiện (>, <, chứa chữ, công thức...) |
| Tạo dropdown chọn giá trị |
| Vẽ biểu đồ COLUMN/BAR/LINE/AREA/PIE |
| Copy tab sang spreadsheet khác |
| Tạo file / tab mới |
| Raw API cho nhu cầu nâng cao (pivot, protected range...) |
Docs (8)
Tool | Chức năng |
| Đọc TẤT CẢ tab (tabId + tiêu đề + nội dung; heading → #, bullet → -) |
| Tạo / thêm nội dung markdown (# heading, đậm, nghiêng, - bullet, 1. số), ghi được vào từng tab |
| Tìm & thay thế toàn bộ hoặc trong 1 tab (điền template) |
| Định dạng chuỗi tìm thấy: đậm, nghiêng, gạch chân, cỡ chữ, font, màu, highlight, gắn link |
| Chèn bảng kèm dữ liệu |
| Chèn ảnh từ URL |
| Raw API cho nhu cầu nâng cao (header/footer, page break...) |
Cấu hình (env, tuỳ chọn)
GOOGLE_OAUTH_CREDENTIALS— đường dẫn file client secret (mặc định:./credentials.json)GOOGLE_OAUTH_TOKEN— đường dẫn file token (mặc định:./token.json)
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Related MCP Servers
- AlicenseBqualityAmaintenanceMCP server for Google Sheets - Read, write and manipulate spreadsheets through Claude Desktop442,207 npm98MIT
- AlicenseNot gradedqualityFmaintenanceMCP server that enables Claude to interact with Google Workspace services including Drive, Docs, Sheets, Slides, Calendar, Gmail, and Contacts.564 npm38MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Google Drive, Docs, and Sheets — built for Claude Code. Gives Claude Code direct read/write access to Google Sheets (cell-level edits, formatting, structure), Google Docs (insert, replace, append), and Drive (search).43 npm1MIT
- AlicenseNot gradedqualityFmaintenanceA comprehensive MCP server for Google Sheets integration with Claude, enabling spreadsheet discovery, data manipulation, and formatting through natural language commands and slash commands.19MIT