
Google Sheets Mcp
io.github.henilcalagiya由 GitHub 账号 henilcalagiya 发布v0.1.6更新于 Oct 24, 2026
Powerful tools for automating Google Sheets using Model Context Protocol (MCP)
概览
让助手通过 Google 服务账号创建、读取、更新和删除 Google Sheets 电子表格与表格。
- 可以做什么
- 这个本地 MCP 服务器把兼容 MCP 的客户端连接到 Google Sheets,使助手能够自动化处理电子表格。它宣称对电子表格和表格提供完整的增删改查支持,即可创建、读取、更新和删除工作表。它以本地进程方式运行,从 PyPI 安装并通过 uvx 启动,使用服务账号而非用户登录来向 Google 进行身份验证。
- 适用场景
- 当你希望助手直接处理 Google Sheets 数据时使用,例如创建或维护电子表格、读取表格数据,或在工作流中更新单元格。它适合已经拥有 Google Cloud 项目、并且愿意创建服务账号的用户。
- 运行要求
- 需要 Python 3.10+ 以及用于 uvx 命令的 uv 包管理器。需要一个启用了 Google Sheets API 和 Google Drive API 的 Google Cloud 项目,以及服务账号 JSON 密钥。客户端配置通过环境变量提供 project_id、private_key_id、private_key、client_email、client_id 和 client_x509_cert_url;也兼容旧的 GOOGLE_ 前缀变量名。目标电子表格必须共享给服务账号邮箱并授予编辑者权限。
安装
在 SourceWeft 中
- 打开 控制台中的 Google Sheets Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Google Sheets MCP Server
Powerful tools for automating Google Sheets using Model Context Protocol (MCP)
mcp-name: io.github.henilcalagiya/google-sheets-mcp
Overview
Google Sheets MCP Server provides seamless integration of Google Sheets with any MCP-compatible client. It enables full spreadsheet automation — including creating, reading, updating, and deleting sheets — through a simple and secure API layer.
Features
- Full CRUD support for Google Sheets and tables
- Works with Continue.dev, Claude Desktop, Perplexity, and other MCP clients
- Secure authentication via Google Service Account
- Comprehensive tools for Google Sheets automation
- Automatic installation via
uvx
Requirements
- Python 3.10+
uvpackage manager (foruvxcommand)- A Google Cloud project with a Service Account
- MCP-compatible client (e.g., Continue.dev)
Install uv:
Quick Start
1. Set Up Google Service Account
Step 1: Create a Google Cloud Project
- Go to Google Cloud Console
- Click "Select a project" → "New Project"
- Enter a project name (e.g., "my-sheets-automation")
- Click "Create"
Step 2: Enable Required APIs
- In your project, go to "APIs & Services" → "Library"
- Search for "Google Sheets API" → Click → "Enable"
- Search for "Google Drive API" → Click → "Enable"
Step 3: Create Service Account
- Go to "IAM & Admin" → "Service Accounts"
- Click "Create Service Account"
- Enter service account name (e.g., "sheets-mcp-service")
- Click "Create and Continue"
- Skip role assignment → Click "Continue"
- Click "Done"
Step 4: Generate JSON Key
- Click on your new service account email
- Go to "Keys" tab → "Add Key" → "Create new key"
- Choose "JSON" format → Click "Create"
- The JSON file will download automatically
Step 5: Extract Required Values Open the downloaded JSON file and note these values:
project_id(e.g., "my-sheets-automation-123456")private_key_id(e.g., "a4ae73111b11b2c3b07cc01006e71eb8230dfa29")private_key(the long private key starting with "-----BEGIN PRIVATE KEY-----")client_email(e.g., "sheets-mcp-service@my-sheets-automation-123456.iam.gserviceaccount.com")client_id(e.g., "113227823918217958816")client_x509_cert_url(e.g., "https://www.googleapis.com/robot/v1/metadata/x509/sheets-mcp-service%40my-sheets-automation-123456.iam.gserviceaccount.com")
Example Google service account JSON structure:
2. Configure MCP Client
💡 Pro Tip: You can copy the values directly from your Google service account JSON file. The field names in the JSON file are used exactly as they are - no changes needed!
🔄 Backward Compatibility: The server also supports the old GOOGLE_ prefixed variable names (e.g., GOOGLE_PROJECT_ID) for existing configurations.
3. Share Your Google Sheet with the Service Account
- Open your target Google Spreadsheet in your web browser.
- Click the Share button.
- Enter the service account email (e.g.,
[email protected]) and assign Editor access. - Click Send to provide editor permissions.
🎉 You're all set! Your MCP client will automatically install and run the package when needed.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Henil C Alagiya
- GitHub: @henilcalagiya
- LinkedIn: Henil C Alagiya
Support & Contributions:
- 🐛 Report Issues: GitHub Issues
- 💬 Questions: Reach out on LinkedIn
- 🤝 Contributions: Pull requests welcome!
来源:README.md,提交 fa4bc1f
工具
0版本历史
1- v0.1.6最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。