mcp-gsheets
mcp-gsheets
MCP server for Google Sheets API integration - read, write, and manage spreadsheets
mcp-gsheets
A Model Context Protocol (MCP) server for Google Sheets API integration. Enables reading, writing, and managing Google Sheets documents directly from your MCP client.
Features
- Complete Google Sheets Integration - Read, write, and manage spreadsheets
- Advanced Operations - Batch operations, formatting, charts, and conditional formatting
- Flexible Authentication - Support for file-based and JSON string credentials
- 27 Comprehensive Tools - Full spreadsheet automation capabilities
- Production Ready - Built with TypeScript and comprehensive error handling
Quick Start
Add the following config to your MCP client:
{
"mcpServers": {
"mcp-gsheets": {
"command": "npx",
"args": ["-y", "mcp-gsheets@latest"],
"env": {
"GOOGLE_PROJECT_ID": "your-project-id",
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account-key.json"
}
}
}
}Available Tools
Reading Data
sheets_get_values- Read from a rangesheets_batch_get_values- Read from multiple rangessheets_get_metadata- Get spreadsheet infosheets_check_access- Check access permissions
Writing Data
sheets_update_values- Write to a rangesheets_batch_update_values- Write to multiple rangessheets_append_values- Append rows to a tablesheets_clear_values- Clear cell contentssheets_insert_rows- Insert new rows
Sheet Management
sheets_insert_sheet- Add new sheetsheets_delete_sheet- Remove sheetsheets_duplicate_sheet- Copy sheetsheets_copy_to- Copy to another spreadsheetsheets_update_sheet_properties- Update sheet settingssheets_create_spreadsheet- Create new spreadsheet
Batch Operations
sheets_batch_delete_sheets- Delete multiple sheetssheets_batch_format_cells- Format multiple ranges
Cell Formatting
sheets_format_cells- Format cells (colors, fonts, alignment)sheets_update_borders- Add or modify cell borderssheets_merge_cells- Merge cells togethersheets_unmerge_cells- Unmerge cellssheets_add_conditional_formatting- Add conditional formatting
Charts
sheets_create_chart- Create chartssheets_update_chart- Modify chartssheets_delete_chart- Remove charts
Utility
sheets_insert_link- Insert hyperlinkssheets_insert_date- Insert date values