Skip to main content
Glama
mkummer225

Google Sheets MCP

by mkummer225

Google スプレッドシート MCP

AI エージェントがスプレッドシートと直接対話できるようにする、Google スプレッドシート用のモデル コンテキスト プロトコル (MCP) コネクタ。

デモ

https://github.com/user-attachments/assets/cc4729d9-4e6e-437b-848b-6da9a09418c3

Related MCP server: Google Sheets MCP

設定

  1. このリポジトリをクローンします:

git clone https://github.com/mkummer225/google-sheets-mcp
cd google-sheets-mcp
  1. 依存関係をインストール: npm install

  2. ビルド: npm run build

  3. Google Cloud Platform で OAuth 認証情報を作成します。

    • Google Cloud Consoleで新しいプロジェクトを作成する

    • Google Sheets APIを有効にする

    • OAuth同意画面を設定する

    • 適切なリダイレクト URI (例: http://localhost:3000/oauth2callback ) を使用して OAuth クライアント ID 資格情報 (デスクトップ アプリケーション) を作成します。

    • 認証情報をダウンロードし、 distディレクトリにgcp-oauth.keys.jsonとして保存します。

  4. MCP サーバーを起動します (必要に応じて、Google アカウントの認証/再認証が自動的に求められます): npm run start

使用法

サンプル設定:

{
    "mcpServers": {
    "google-sheets-mcp": {
      "command": "node",
      "args": [
        "/{path_to_dir}/google-sheets-mcp/dist/index.js"
      ]
    }
  }
}

その後、スプレッドシート ID を指定するか、エージェントに新しい ID を作成するよう依頼するだけで済みます。

利用可能なアクション

アクション

説明

refresh_auth

認証情報の有効期限が切れたら、Google アカウントを再認証してください

list_sheets

Google スプレッドシート内のすべてのシート/タブを一覧表示する

create_sheet

Google スプレッドシートに新しいシート/タブを作成する

create_spreadsheet

新しいGoogleスプレッドシートを作成する

read_all_from_sheet

指定されたシートからすべてのデータを読み取る

read_headings

シートから列見出しを読み取る

read_rows

シートから特定の行を読み取る

read_columns

シートから特定の列を読み取る

edit_cell

シート内の単一のセルを編集する

edit_row

シート内の行全体を編集する

edit_column

シート内の列全体を編集する

insert_row

指定した位置に新しい行を挿入する

insert_column

指定した位置に新しい列を挿入します

rename_sheet

スプレッドシートのシート/タブの名前を変更する

rename_doc

Googleスプレッドシートの名前を変更する

ライセンス

マサチューセッツ工科大学

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that integrates with Google Drive and Google Sheets, enabling users to create, read, update, and manage spreadsheets through natural language commands.
    24,952 PyPI
    1,011
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to interact directly with Google Sheets to create, read, and edit spreadsheets through the Model Context Protocol. It supports a wide range of actions including cell manipulation, row and column management, and sheet organization.
    578 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to read, write, and manage Google Sheets spreadsheets through natural language commands, providing a bridge between MCP clients and the Google Sheets API.
    424 npm
    1
    MIT