Spreadsheet MCP Server
Enables interaction with Google Spreadsheets, allowing users to create, read, and manipulate sheet data, metadata, and formatting, as well as manage sheet structure and data validation.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Spreadsheet MCP Server
Google Spreadsheet 操作用の MCP (Model Context Protocol) サーバーです。 Cursor などの AI アシスタントから Google スプレッドシートを参照・操作できます。
機能
読み取り系ツール (Phase 1)
ツール | 説明 |
| シート一覧、列名、行数を取得 |
| 指定範囲のセルデータを取得 |
| 特定列の全値を取得 |
| ヘッダー、データ型推定、サンプルデータを取得 |
| 特定文字列を検索 |
| セルエラー(#REF!, #VALUE! 等)を検出 |
書き込み系ツール (Phase 2)
ツール | 説明 |
| 新規スプレッドシートを作成 |
| 既存スプレッドシートにシートを追加 |
| ヘッダー行を設定 |
| データ行を追加 |
書式設定ツール (Phase 3)
ツール | 説明 |
| ヘッダースタイル、列幅、交互行カラーを設定 |
| ドロップダウン、数値範囲などの入力規則を設定 |
Related MCP server: Google Sheets MCP Server
セットアップ
1. 依存関係のインストール
cd spreadsheet-mcp
npm install2. ビルド
npm run build3. 認証情報の設定
このサーバーは以下の認証情報ファイルを使用します:
Credential Store:
./config/credentials.json(自動作成)
初回実行時、ブラウザが開いて認証フローが始まります。個人の Google アカウントでログインして権限を許可してください。
4. Cursor への設定追加
Cursor の MCP 設定ファイル (~/.cursor/mcp.json または プロジェクトの .cursor/mcp.json) に以下を追加:
{
"mcpServers": {
"spreadsheet": {
"command": "node",
"args": ["~/spreadsheet-mcp/dist/index.js"]
}
}
}使用例
シートの構造を確認
「このスプレッドシートの構造を見せて」
→ get_sheet_structure を使用特定範囲のデータを取得
「Sheet1 の A1:D10 のデータを取得して」
→ get_sheet_data を使用列の値パターンを確認
「D列の値のパターンを教えて」
→ get_column_values を使用新規スプレッドシートを作成
「新しいスプレッドシートを作成して」
→ create_spreadsheet を使用プロンプトテンプレート
設定シートを作成する際のプロンプトテンプレートを用意しています:
📄 prompts/create-config-sheet.md
既存シートを参考にして新機能用シートを作成
ゼロから設定シートを作成
具体的な使用例
安全性
書き込み系ツールには dry_run オプションがあります。
dry_run: true を指定すると、実際の変更は行わずにプレビューのみを表示します。
開発
# ビルド
npm run build
# 実行
npm start
# 開発(ビルド + 実行)
npm run devライセンス
MIT
spreadsheet-mcp
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to Google Sheets through controlled tools for reading and updating rows.
Create and manage documents, spreadsheets, and presentations from your AI assistant.
AI access to Quadratic spreadsheets: open files, run Python/SQL, query connected databases.
Google Sheets via Apify: write Apify datasets or JSON rows to a sheet, or read a sheet as JSON.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to access, search, and analyze Google Spreadsheets through the Model Context Protocol. Supports both OAuth 2.0 for private sheets and API key authentication for public sheets, with tools for listing, reading, and searching spreadsheet data.51MIT
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive Google Sheets integration for creating, reading, updating, and managing spreadsheets programmatically via tools like batch updates and range operations. It enables automated workflows for data analysis, project management, and synchronization within the Model Context Protocol.-
- AlicenseNot gradedqualityDmaintenanceEnables 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.633 npmMIT
- AlicenseAqualityDmaintenanceEnables AI coding agents to read, write, and query Google Sheets as a database through the Model Context Protocol.6111 npmMIT