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 "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-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/<user>/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-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, copy từvivian/credentials.json)GOOGLE_OAUTH_TOKEN— đường dẫn file token (mặc định:./token.json)
This 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.
Related MCP Servers
- Alicense-qualityFmaintenanceMCP server that enables Claude to interact with Google Workspace services including Drive, Docs, Sheets, Slides, Calendar, Gmail, and Contacts.85238MIT
- Alicense-qualityBmaintenanceMCP 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).651MIT
- Alicense-qualityFmaintenanceA comprehensive MCP server for Google Sheets integration with Claude, enabling spreadsheet discovery, data manipulation, and formatting through natural language commands and slash commands.19MIT
- Flicense-qualityDmaintenanceMCP server for Claude Desktop providing access to Google Sheets, Gmail, and Google Calendar.
Related MCP Connectors
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
MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/haule2901/google-workspace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server