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)

已验证STDIO仅桌面效率与工作流数据与分析

概览

AI 生成的概览

让助手通过 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_ 前缀变量名。目标电子表格必须共享给服务账号邮箱并授予编辑者权限。
安装前请注意
配置需要服务账号私钥(private_key)及相关凭据,这些属于机密,应妥善保管。服务账号会被授予目标电子表格的编辑者权限,因此助手可以修改或删除表格内容。只共享你确实希望助手改动的电子表格,并在密钥泄露时撤销该服务账号密钥。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Google Sheets Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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+
  • uv package manager (for uvx command)
  • A Google Cloud project with a Service Account
  • MCP-compatible client (e.g., Continue.dev)

Install uv:

bash
# macOS/Linuxcurl -LsSf https://astral.sh/uv/install.sh | sh
# Windows PowerShellirm https://astral.sh/uv/install.ps1 | iex

Quick Start

1. Set Up Google Service Account

Step 1: Create a Google Cloud Project

  1. Go to Google Cloud Console
  2. Click "Select a project" → "New Project"
  3. Enter a project name (e.g., "my-sheets-automation")
  4. Click "Create"

Step 2: Enable Required APIs

  1. In your project, go to "APIs & Services" → "Library"
  2. Search for "Google Sheets API" → Click → "Enable"
  3. Search for "Google Drive API" → Click → "Enable"

Step 3: Create Service Account

  1. Go to "IAM & Admin" → "Service Accounts"
  2. Click "Create Service Account"
  3. Enter service account name (e.g., "sheets-mcp-service")
  4. Click "Create and Continue"
  5. Skip role assignment → Click "Continue"
  6. Click "Done"

Step 4: Generate JSON Key

  1. Click on your new service account email
  2. Go to "Keys" tab → "Add Key" → "Create new key"
  3. Choose "JSON" format → Click "Create"
  4. The JSON file will download automatically

Step 5: Extract Required Values Open the downloaded JSON file and note these values:

Example Google service account JSON structure:

json
{  "type": "service_account",  "project_id": "your-project-id",  "private_key_id": "your-private-key-id",  "private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",  "client_email": "[email protected]",  "client_id": "your-client-id",  "auth_uri": "https://accounts.google.com/o/oauth2/auth",  "token_uri": "https://oauth2.googleapis.com/token",  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/your-service%40your-project.iam.gserviceaccount.com"}

Follow this guide if needed

2. Configure MCP Client

json
{  "mcpServers": {    "google-sheets-mcp": {      "command": "uvx",      "args": ["google-sheets-mcp@latest"],      "env": {        "project_id": "your-project-id",        "private_key_id": "your-private-key-id",        "private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",        "client_email": "[email protected]",        "client_id": "your-client-id",        "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/your-service%40your-project.iam.gserviceaccount.com"      }    }  }}

💡 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

Support & Contributions:

  • 🐛 Report Issues: GitHub Issues
  • 💬 Questions: Reach out on LinkedIn
  • 🤝 Contributions: Pull requests welcome!

来源:README.md,提交 fa4bc1f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.6最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。