Skip to main content
Glama

Google Sheets MCP

by mkummer225

Google スプレッドシート MCP

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

デモ

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

設定

  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スプレッドシートの名前を変更する

ライセンス

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

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

AI エージェントが Google スプレッドシートと直接対話し、自然言語によるスプレッドシートの作成、読み取り、変更を可能にするモデル コンテキスト プロトコル (MCP) コネクタ。

  1. デモ
    1. 設定
      1. 使用法
        1. 利用可能なアクション
          1. ライセンス

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              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.
              Last updated -
              400
              MIT License
              • Linux
              • Apple
            • A
              security
              F
              license
              A
              quality
              Provides a Model Context Protocol (MCP) server that enables LLMs to directly access and interact with Google Spreadsheet data.
              Last updated -
              2
              1
              • Apple
            • -
              security
              F
              license
              -
              quality
              An MCP server that enables interaction with Google Sheets through natural language, allowing users to create, read, update, and manage spreadsheet data via the Google Sheets API v4.
              Last updated -
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server designed for AI assistants to directly process spreadsheet files, enabling them to read, display, modify, and save various table formats like CSV and Excel.
              Last updated -
              3
              3
              MIT License
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/mkummer225/google-sheets-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server