MCP Google Spreadsheet 工具
用于操作 Google Spreadsheet 和 Google Drive 的 MCP 服务器工具。
快速入门
功能简介
支持 Google Drive 和 Google Spreadsheet 操作,包括文件管理、工作表编辑等。
安装
确保已安装 Go 1.24+,然后运行以下命令: go install github.com/kazz187/mcp-google-spreadsheet@latest
配置
设置以下环境变量:
MCPGS_CLIENT_SECRET_PATH
:Google API 客户端密钥路径。MCPGS_TOKEN_PATH
:Google API 访问令牌路径。MCPGS_FOLDER_ID
:目标 Google Drive 文件夹 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
首次启动时需要通过浏览器完成 Google 账户授权。