home / mcp / google sheets mcp server
Provides an MCP server to create, read, write, format, and manage Google Sheets via Claude Desktop.
Configuration
View docs{
"mcpServers": {
"amaboh-google-sheets-mcp-server": {
"command": "/path/to/your/.venv/bin/python",
"args": [
"/path/to/your/google_sheets.py",
"--credentials-path",
"/Users/yourusername/.config/google_sheets_mcp/google-sheets-mcp.json",
"--log-level",
"DEBUG"
]
}
}
}You run an MCP server that lets Claude Desktop interact with Google Sheets directly. It enables you to create, read, write, format, and manage sheets through a local Python-based service, streamlining automation and workflows without leaving your editor or Claude environment.
Once you have the Google Sheets MCP Server running, you connect Claude Desktop to it as a local MCP server. You can perform common sheet operations by calling the exposed tools from Claude Desktop and passing the required identifiers (sheet IDs) and parameters. The available actions include creating new sheets, reading and writing data, applying cell formats, adding or deleting sheets, writing formulas, and getting sheet properties. Each tool takes straightforward arguments such as file_id (sheet ID) and ranges (e.g., A1:B10), returning results or confirmations that you can use in your workflows.
- Create a new sheet: use create_sheet(title) to add a sheet with the given title to a Google Sheets file.
- Read and write data: use read_range and write_range (or the equivalent tools) to fetch and update cell values within a specified range.
- Format cells: use format_range(file_id, range, format) to apply styling or number formats to a cell range.
- Add or delete sheets: use add_sheet(file_id, title) to create a new sheet and delete_sheet(file_id, sheet_id) to remove one by its identifier.
- Write formulas: use write_formula(file_id, range, formula) to insert spreadsheet formulas into a range.
- Retrieve sheet properties: use get_sheet_properties(file_id) to obtain metadata about the sheets in a file.
Set up OAuth 2.0 credentials in Google Cloud Console and download them to your local machine. The first-time start will open a browser window to complete the OAuth flow and save a token for subsequent runs.
If you encounter issues, verify that Claude Desktop is connected to the correct local MCP server, ensure the Google Sheets API is enabled for your project, and confirm that the saved credentials token is present at the expected path.
Operations against Google Sheets are subject to Google API quotas and rate limits. If you hit quota errors, review your Google Cloud Console quotas and consider batching requests where possible.
Create a new sheet within a Google Sheets file using a specified title.
Read data from a specific cell range within a sheet.
Write data to a specific cell range within a sheet.
Apply formatting to a cell range, such as font, color, or number formats.
Add a new sheet to a Google Sheets file with a given title.
Delete a sheet by its sheet_id from a Google Sheets file.
Insert a spreadsheet formula into a specified range.
Retrieve properties and metadata for sheets within a Google Sheets file.