Google Sheets MCP Server
Provides tools for reading and writing Google Sheets data, including reading cell ranges, writing data to specific ranges, appending rows, retrieving spreadsheet information, and creating new sheets within a spreadsheet.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Sheets MCP Serverappend a new row to the budget spreadsheet with 'Marketing' and 5000"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Sheets MCP Server
Googleスプレッドシートと連携するMCP(Model Context Protocol)サーバーです。 ローカル用です。
機能
スプレッドシートの読み取り
スプレッドシートへの書き込み
行の追加
スプレッドシート情報の取得
新しいシートの作成
Related MCP server: Google Sheets MCP Server
前提
node -v
v24.8.0セットアップ
1. 依存関係のインストール
npm install2. Google Cloud認証の設定
Google Cloud Consoleでプロジェクトを作成
Google Sheets APIを有効化
サービスアカウントを作成し、JSONキーファイルをダウンロード
ダウンロードしたキーファイルを
key/ディレクトリに配置(mkdir key)
3. ビルド
npm run build4. 起動
npm run start使用方法
Cursorでの使用
mcp.jsonを設定してCursorで使用できます:
{
"mcp": {
"servers": {
"google-sheets": {
"command": "node",
"args": ["プロジェクトまでの絶対パス/dist/index.js"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "プロジェクトまでの絶対パス/key/your-service-account-key.json"
}
}
}
}
}重要: GOOGLE_APPLICATION_CREDENTIALSのパスは、ダウンロードしたサービスアカウントキーファイルの実際のパスに変更してください。
重要: スプレットシートの右上にある「共有」からサービスアカウントのメールアドレスを追加
利用可能なツール
read_sheet: スプレッドシートの指定された範囲のデータを読み取るwrite_sheet: スプレッドシートの指定された範囲にデータを書き込むappend_row: スプレッドシートの最後に新しい行を追加するget_sheet_info: スプレッドシートの基本情報を取得するcreate_sheet: 新しいシートを作成する
注意事項
サービスアカウントのキーファイルは機密情報です。
.gitignoreに追加して、リポジトリにコミットしないでくださいスプレッドシートにアクセスするには、サービスアカウントのメールアドレスをスプレッドシートの共有設定に追加する必要があります
各利用者は自分のGoogle Cloudプロジェクトでサービスアカウントを作成し、キーファイルをダウンロードする必要があります
Available Tools
5 toolsappend_rowC
スプレッドシートの最後に新しい行を追加します
Inputs: spreadsheetId (required), sheetName (required), values (required).
create_sheetC
新しいシートを作成します
Inputs: spreadsheetId (required), sheetName (required).
get_sheet_infoC
スプレッドシートの基本情報を取得します
Inputs: spreadsheetId (required).
read_sheetC
スプレッドシートの指定された範囲のデータを読み取ります
Inputs: spreadsheetId (required), range (required).
write_sheetC
スプレッドシートの指定された範囲にデータを書き込みます
Inputs: spreadsheetId (required), range (required), values (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no overlap: append_row adds rows, create_sheet creates sheets, get_sheet_info retrieves metadata, read_sheet reads data, and write_sheet writes data. The descriptions clearly differentiate between operations on data versus structure.
All tools follow a consistent verb_noun pattern with snake_case naming (e.g., append_row, create_sheet, read_sheet). The verbs are action-oriented and predictable, making the set easy to navigate.
Five tools is reasonable for a Google Sheets server, covering core operations like reading, writing, appending, creating sheets, and getting info. It's slightly lean but functional; minor additions like update or delete operations could enhance it without being necessary.
The tools cover essential CRUD-like operations for Google Sheets: create (create_sheet), read (read_sheet, get_sheet_info), and write/append (write_sheet, append_row). A minor gap is the lack of explicit update or delete tools, but agents can work around this using write_sheet for updates.
Related MCP Connectors
Read and write Google Sheets with your own service account: list tabs, read, append, update, export.
Google Sheets via Apify: write Apify datasets or JSON rows to a sheet, or read a sheet as JSON.
Connect AI assistants to Google Sheets through controlled tools for reading and updating rows.
Query your Google Sheets as structured JSON: list sheets and tabs, read schemas, filter rows.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables reading, writing, and managing Google Sheets documents with support for batch operations, formatting, charts, and conditional formatting through the Model Context Protocol.4,206 npmMIT
- 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.648 npmMIT