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 分

    請在儲存庫或註冊中心條目中宣告授權條款。