
xing5/mcp-google-sheets
Deployment & DevOpsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
このMCPサーバーはGoogleドライブやGoogleスプレッドシートと連携し、スプレッドシートの作成や編集を可能にします。
概要
あなたのAIアシスタントのGoogle Sheetsへのゲートウェイ!📊 mcp-google-sheetsはPythonベースのMCPサーバーで、Claude DesktopのようなMCP互換クライアントとGoogle Sheets APIの間の橋渡し役を果たします。定義されたツールセットを使ってGoogleスプレッドシートとやり取りでき、AIによる強力な自動化およびデータ操作ワークフローを可能にします。 基本的にサーバーは一行で動作します:uvx mcp-google-sheets@latest。 このコマンドは自動的に最新のコードをダウンロードし実行します。最新機能やバグ修正を含む最新バージョンを確実に利用するためです。 以下のIDの詳細については、IDリファレンスガイドをご参照ください。 1. * まずGoogle Cloud Platformの認証情報を設定し、必要なAPIを有効にしてください。私たちは強く推奨します。* ➡️ 以下のガイドへジャンプしてください。 2. * uvxはuvの一部であり、高速なPythonパッケージのインストーラー兼リゾルバです。まだインストールしていなければ、インストーラー出力の指示に従って必要に応じてPATHにuvを追加してください。
概要(AI 翻訳)
MCP-Google-Sheets
あなたのAIアシスタントのGoogle Sheetsへのゲートウェイ!📊
🤔 これは何だ?
mcp-google-sheetsはPythonベースのMCPサーバーで、Claude DesktopのようなMCP互換クライアントとGoogle Sheets APIの間の橋渡し役を務めます。定義されたツールセットを使ってGoogleスプレッドシートとやり取りでき、AIによる強力な自動化およびデータ操作ワークフローを可能にします。
🚀 クイックスタート(uvxを使用)
基本的にサーバーは一列で動作します:uvx mcp-google-sheets@latest。
このコマンドは最新のコードを自動的にダウンロードし実行します。**@latest**を必ず使用し、最新の機能やバグ修正が入ったバージョンを確実に利用することを推奨します。
使用されたIDの詳細については、IDリファレンスガイド_Refer below._
- ** ☁️ 前提条件:Google Cloud Setup**
- まず**Google Cloud Platformの認証情報を設定し、必要なAPIを有効にしてください。サービスアカウントの利用を強くお勧めします。
- ➡️ 以下に詳細なGoogle Cloudプラットフォーム設定ガイドへジャンプしてください。
- ** 🐍 インストール
uv**
uvxは高速Pythonパッケージのインストーラー兼リゾルバであるuvの一部です。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
🤔 What is this?
mcp-google-sheets is a Python-based MCP server that acts as a bridge between any MCP-compatible client (like Claude Desktop) and the Google Sheets API. It allows you to interact with your Google Spreadsheets using a defined set of tools, enabling powerful automation and data manipulation workflows driven by AI.
🚀 Quick Start (Using uvx)
Essentially the server runs in one line: uvx mcp-google-sheets@latest.
This command will automatically download the latest code and run it. We recommend always using @latest to ensure you have the newest version with the latest features and bug fixes.
Refer to the ID Reference Guide for more information about the IDs used below.
-
☁️ Prerequisite: Google Cloud Setup
- You must configure Google Cloud Platform credentials and enable the necessary APIs first. We strongly recommend using a Service Account.
- ➡️ Jump to the Detailed Google Cloud Platform Setup guide below.
-
🐍 Install
uvuvxis part ofuv, a fast Python package installer and resolver. Install it if you haven’t already:
Follow instructions in the installer output to add# macOS / Linux curl -LsSf https://astral.sh/uv/install.sh | sh # Windows powershell -c "irm https://astral.sh/uv/install.ps1 | iex" # Or using pip: # pip install uvuvto your PATH if needed.
-
🔑 Set Essential Environment Variables (Service Account Recommended)
- You need to tell the server how to authenticate. Set these variables in your terminal:
- (Linux/macOS)
# Replace with YOUR actual path and folder ID from the Google Setup step export SERVICE_ACCOUNT_PATH="/path/to/your/service-account-key.json" export DRIVE_FOLDER_ID="YOUR_DRIVE_FOLDER_ID" - (Windows CMD)
set SERVICE_ACCOUNT_PATH="C:\path\to\your\service-account-key.json" set DRIVE_FOLDER_ID="YOUR_DRIVE_FOLDER_ID" - (Windows PowerShell)
$env:SERVICE_ACCOUNT_PATH = "C:\path\to\your\service-account-key.json" $env:DRIVE_FOLDER_ID = "YOUR_DRIVE_FOLDER_ID"
インストール
uvx mcp-google-sheets@latest --include-tools get_sheet_data update_cells list_spreadsheets list_sheets設定
{
"mcpServers": {
"google-sheets": {
"command": "uvx",
"args": [
"mcp-google-sheets@latest",
"--include-tools",
"get_sheet_data,update_cells,list_spreadsheets,list_sheets"
],
"env": {
"SERVICE_ACCOUNT_PATH": "/path/to/credentials.json"
}
}
}
}