MCP Google 电子表格 logo

MCP Google 电子表格

Community
kazz187

MCP Server for Google Spreadsheet

Publisherkazz187
Repositorymcp-google-spreadsheet
LanguageGo
Forks
6
Stars
51
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    MCP Google 电子表格 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    51 stars and 6 forks from the linked repository.

MCP Google Spreadsheet

MCP (Model Context Protocol) サーバーとして実装された Google Spreadsheet および Google Drive 操作ツールです。このツールを使用することで、AI アシスタント(Claude Desktop など)が Google Spreadsheet や Google Drive のファイルを操作できるようになります。

機能

Google Drive 操作

  • google_drive_list_files: Google Drive 内のファイルとフォルダを一覧表示
  • google_drive_copy_file: ファイルまたはフォルダを別の場所にコピー
  • google_drive_rename_file: ファイルまたはフォルダの名前を変更

Google Spreadsheet 操作

  • google_sheets_list_sheets: スプレッドシート内のシート(タブ)一覧を取得
  • google_sheets_copy_sheet: シートを別のスプレッドシートにコピー
  • google_sheets_rename_sheet: シートの名前を変更
  • google_sheets_read_data: シートのデータを読み取り(スプレッドシートを「開く」操作)
  • google_sheets_add_rows: シートに空の行を挿入
  • google_sheets_add_columns: シートに空の列を挿入
  • google_sheets_update_cells: 指定範囲のセルの値を更新
  • google_sheets_batch_update_cells: 複数範囲のセルを一括更新
  • google_sheets_delete_rows: シートから行を削除
  • google_sheets_delete_columns: シートから列を削除

使用ワークフロー

  1. google_drive_list_files で Google Drive 内のファイルを探索し、スプレッドシートを見つける
  2. google_sheets_list_sheets で特定のスプレッドシート内のシート一覧を確認
  3. google_sheets_read_data でシートの内容を表示
  4. 必要に応じて他の google_sheets_* ツールでデータを編集

前提条件

  • Go 1.24 以上
  • Google Cloud Platform のプロジェクトと API 有効化
    • Google Drive API
    • Google Sheets API
  • Google OAuth 2.0 認証の設定

インストール

bash
go install github.com/kazz187/mcp-google-spreadsheet@latest

これにより、$GOPATH/bin ディレクトリに mcp-google-spreadsheet バイナリがインストールされます。

設定

以下の環境変数を設定する必要があります:

  • MCPGS_CLIENT_SECRET_PATH: Google API のクライアントシークレットファイルのパス (https://developers.google.com/identity/protocols/oauth2/native-app?hl=ja)
  • MCPGS_TOKEN_PATH: Google API のトークンファイルのパス(存在しない場合は自動的に作成されます)
  • MCPGS_FOLDER_ID: 操作対象とする Google Drive のフォルダ ID(フォルダを右クリック → リンクを取得 → URLの最後の部分)

Google API の設定手順

  1. Google Cloud Console にアクセス
  2. プロジェクトを作成
  3. Google Drive API と Google Sheets API を有効化
  4. 認証情報を作成(OAuth クライアント ID)
    • アプリケーションの種類:「デスクトップアプリケーション」を選択
  5. クライアントシークレット JSON をダウンロード

使用方法

起動

bash
export MCPGS_CLIENT_SECRET_PATH=/path/to/client_secret.json
export MCPGS_TOKEN_PATH=/path/to/token.json
export MCPGS_FOLDER_ID=your_folder_id
mcp-google-spreadsheet

go install でインストールした場合は、$GOPATH/bin が PATH に含まれていることを確認してください。

初回起動時は認証が必要です。ブラウザが自動的に開き、Google アカウントでの認証画面が表示されます。認証が完了すると自動的にアプリケーションに戻ります。ブラウザが自動的に開かない場合は、コンソールに表示される URL をブラウザで開いてください。

Claude Desktop での設定

Claude Desktop で使用する場合は、設定ファイル(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json)に以下のように追加します:

json
{
  "mcpServers": {
    "mcp_google_spreadsheet": {
      "command": "mcp-google-spreadsheet",
      "args": [],
      "env": {
        "MCPGS_CLIENT_SECRET_PATH": "/path/to/client_secret.json",
        "MCPGS_TOKEN_PATH": "/path/to/token.json",
        "MCPGS_FOLDER_ID": "your_folder_id"
      }
    }
  }
}

go install でインストールした場合は、command に絶対パスを指定する代わりに、上記のように実行ファイル名のみを指定することもできます。その場合は、MCP サーバーを実行するユーザーの PATH に $GOPATH/bin が含まれていることを確認してください。

セキュリティ

  • 指定されたフォルダ ID 内のファイルのみにアクセスが制限されます
  • ディレクトリトラバーサル攻撃(../ などを使用したパス指定)は防止されます
  • ユーザーから指定されたファイルが指定フォルダ内に存在するかが検証されます

Installation

TypingMind
{
  "mcpServers": {
    "mcp-google-spreadsheet": {
      "command": "mcp-google-spreadsheet",
      "args": [],
      "env": {
        "MCPGS_CLIENT_SECRET_PATH": "<MCPGS_CLIENT_SECRET_PATH>",
        "MCPGS_TOKEN_PATH": "<MCPGS_TOKEN_PATH>",
        "MCPGS_FOLDER_ID": "<MCPGS_FOLDER_ID>"
      }
    }
  }
}

Use MCP Google 电子表格 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MCP Google 电子表格 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add MCP Google 电子表格 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the MCP Google 电子表格 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mcp-google-spreadsheet": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the MCP Google 电子表格 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the MCP Google 电子表格 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MCP Google 电子表格 to help me with this task?
MCP Google 电子表格
Sure. I read it.
Here is what I found using MCP Google 电子表格.

Frequently asked questions

What is the MCP Google 电子表格 MCP server used for?

MCP Google 电子表格 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use MCP Google 电子表格 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MCP Google 电子表格 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use MCP Google 电子表格 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With MCP Google 电子表格 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MCP Google 电子表格 MCP to TypingMind?

MCP Google 电子表格 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does MCP Google 电子表格 MCP provide in TypingMind?

MCP Google 电子表格 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use MCP Google 电子表格 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MCP Google 电子表格 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇