A Model Context Protocol (MCP) server for Google Sheets that enables Claude Desktop to interact with Google Sheets directly. This server provides tools for creating, reading, writing, and managing Google Sheets through Claude Desktop.
uv
package manager (recommended)git clone https://github.com/yourusername/google-sheets-mcp-server.git
cd google-sheets-mcp-server
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv
:uv pip install -e .
~/.config/google_sheets_mcp/google-sheets-mcp.json
claude_desktop_config.json
:{
"mcpServers": {
"google_sheets": {
"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"
]
}
}
}
python google_sheets.py --credentials-path ~/.config/google_sheets_mcp/google-sheets-mcp.json
After setup, you can use the following commands in Claude Desktop:
create_sheet(title: str)
format_range(file_id: str, range: str, format: dict)
write_formula(file_id: str, range: str, formula: str)
add_sheet(file_id: str, title: str)
delete_sheet(file_id: str, sheet_id: int)
get_sheet_properties(file_id: str)
google-sheets-mcp-server/
├── .venv/ # Virtual environment
├── google_sheets.py # Main server implementation
├── pyproject.toml # Project configuration and dependencies
├── tests/ # Test files
└── README.md # This file
GoogleSheetsMCP
class@mcp.tool()
pytest
Server Connection Issues
Authentication Issues
API Errors
This project is licensed under the MIT License - see the LICENSE file for details.
{
"mcpServers": {
"google_sheets": {
"env": {},
"args": [
"/path/to/your/google_sheets.py",
"--credentials-path",
"/Users/yourusername/.config/google_sheets_mcp/google-sheets-mcp.json",
"--log-level",
"DEBUG"
],
"command": "python"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.