The Google Spreadsheet Integration for MCP is a tool that enables AI assistants to interact with Google Spreadsheets and Google Drive. Built as an MCP (Model Context Protocol) server, this tool provides a seamless way to manage and manipulate spreadsheet data programmatically.
go install github.com/kazz187/mcp-google-spreadsheet@latest
This will install the mcp-google-spreadsheet
binary in the $GOPATH/bin
directory.
Set the following environment variables:
MCPGS_CLIENT_SECRET_PATH
: Path to the Google API client secret file.MCPGS_TOKEN_PATH
: Path to the Google API token file (will be created if it doesn’t exist).MCPGS_FOLDER_ID
: Google Drive folder ID for the target directory.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
Ensure $GOPATH/bin
is in your PATH if installed via go install
.
To use with AI assistants like Claude or ChatGPT, add the following to your MCP configuration file:
{
"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"
}
}
}
}
../
) are prevented.This project is licensed under the MIT License.