MCP.so
ログイン

MCP Google Sheets Server

@shionhonda

基本情報

カテゴリ

その他

ライセンス

MIT license

トランスポート

stdio

作者

shionhonda

MCP Google Sheets Server について

Model Context Protocol (MCP) server that allows interaction with Google Sheets

MCP Google Sheets Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-gsheet": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

MCP Google Sheets Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Google Sheets Server?

MCP Google Sheets Server is a Model Context Protocol (MCP) server that enables interaction with Google Sheets. It is intended for AI agents or tools that need to list sheets, read cell ranges, and write data to spreadsheets, but it does not manage Google Drive files.

How to use MCP Google Sheets Server?

Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the absolute path of your service account JSON key, clone the repository, create a Python 3.11+ virtual environment with uv, install dependencies, then run mcp dev server.py (development) or mcp run server.py (production). The server communicates over standard input/output (stdio).

Key features of MCP Google Sheets Server?

  • List all sheet names (tabs) in a spreadsheet.
  • Read data from a specific cell range.
  • Write a 2D list of values to a specific cell range.
  • No Google Drive file management capabilities.
  • Authenticates via service account key.
  • Runs over stdio – suitable for MCP clients like Claude Desktop.

Use cases of MCP Google Sheets Server?

  • Extract data from Google Sheets for analysis or reporting.
  • Auto-populate spreadsheet cells from AI agent responses.
  • List sheets/tabs to discover spreadsheet structure.
  • Update cell values based on user queries or external inputs.

よくある質問

1

What tools does MCP Google Sheets Server provide?

It provides three tools: `list_sheets(spreadsheet_id)`, `read_cells(spreadsheet_id, range_name)`, and `write_cells(spreadsheet_id, range_name, values)`.

2

Can I manage Google Drive files (create/delete folders) with this server?

No. The server explicitly does **not** provide tools for managing Google Drive files. Access is restricted to spreadsheet content only.

3

What are the runtime requirements?

Python 3.11+, a Google Cloud Project with the Google Sheets API enabled, and a downloaded service account key file (JSON). Dependencies are managed via `uv`.

4

How do I authenticate?

Set the environment variable `GOOGLE_APPLICATION_CREDENTIALS` to the absolute path of your service account JSON key file. The service account must have the "Editor" role on the target Google Sheets.

5

How do I run the server?

Use `mcp dev server.py` for development with MCP Inspector, or `mcp run server.py` for production. For Claude Desktop, add a JSON configuration block pointing to `uv` and the server path.

コメント

「その他」の他のコンテンツ