- MCP Google Spreadsheet
MCP Google Spreadsheet
MCP Server for Google Spreadsheet
Content
MCP Google Spreadsheet
MCP (Model Context Protocol) サーバーとして実装された Google Spreadsheet および Google Drive 操作ツールです。このツールを使用することで、AI アシスタントが Google Spreadsheet や Google Drive のファイルを操作できるようになります。
機能
Google Drive 操作
- list_files: Google Drive のファイル一覧を取得
- copy_file: Google Drive のファイルをコピー
- rename_file: Google Drive のファイル名を変更
Google Spreadsheet 操作
- list_sheets: スプレッドシート内のシート一覧を取得
- copy_sheet: スプレッドシート内のシートをコピー
- rename_sheet: スプレッドシート内のシート名を変更
- get_sheet_data: シートのデータを取得
- add_rows: シートに行を追加
- add_columns: シートに列を追加
- update_cells: 単一範囲のセルを更新
- batch_update_cells: 複数範囲のセルを一括更新
前提条件
- Go 1.24 以上
- Google Cloud Platform のプロジェクトと API 有効化
- Google Drive API
- Google Sheets API
インストール
go install github.com/prudentmean/mcp-google-spreadsheet@latest
これにより、$GOPATH/bin ディレクトリに mcp-google-spreadsheet バイナリがインストールされます。
設定
以下の環境変数を設定する必要があります:
MCPGS_CLIENT_SECRET_PATH: Google API のクライアントシークレットファイルのパス (https://developers.google.com/identity/protocols/oauth2/native-app?hl=ja)MCPGS_TOKEN_PATH: Google API のトークンファイルのパス(存在しない場合は自動的に作成されます)MCPGS_FOLDER_ID: 操作対象とする Google Drive のフォルダ ID
Google API の設定手順
- Google Cloud Console にアクセス
- プロジェクトを作成
- Google Drive API と Google Sheets API を有効化
- 認証情報を作成(OAuth クライアント ID)
- クライアントシークレットをダウンロード
使用方法
起動
export MCPGS_CLIENT_SECRET_PATH=/path/to/client_secret.json
export MCPGS_TOKEN_PATH=/path/to/token.json
export MCPGS_FOLDER_ID=your_folder_id
mcp-google-spreadsheet
go install でインストールした場合は、$GOPATH/bin が PATH に含まれていることを確認してください。
初回起動時は認証が必要です。ブラウザが自動的に開き、Google アカウントでの認証画面が表示されます。認証が完了すると自動的にアプリケーションに戻ります。ブラウザが自動的に開かない場合は、コンソールに表示される URL をブラウザで開いてください。
MCP 設定
Claude や ChatGPT などの AI アシスタントで使用するには、MCP の設定ファイルに以下のように追加します:
{
"mcpServers": {
"mcp_google_spreadsheet": {
"command": "mcp-google-spreadsheet",
"args": [],
"env": {
"MCPGS_CLIENT_SECRET_PATH": "/path/to/client_secret.json",
"MCPGS_TOKEN_PATH": "/path/to/token.json",
"MCPGS_FOLDER_ID": "your_folder_id"
}
}
}
}
go install でインストールした場合は、command に絶対パスを指定する代わりに、上記のように実行ファイル名のみを指定することもできます。その場合は、MCP サーバーを実行するユーザーの PATH に $GOPATH/bin が含まれていることを確認してください。
セキュリティ
- 指定されたフォルダ ID 内のファイルのみにアクセスが制限されます
- ディレクトリトラバーサル攻撃(
../などを使用したパス指定)は防止されます - ユーザーから指定されたファイルが指定フォルダ内に存在するかが検証されます
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
Playwright McpPlaywright MCP server
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.