spreadsheet-mcp-server
Provides tools for inspecting and querying spreadsheet data, including listing worksheets, showing sheets, reading and finding cells, and filtering rows by columns. Includes connectivity to Google Sheets via gspread using service account or OAuth credentials.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Spreadsheet MCP🛠️
Tools:
list_worksheetsshow_sheetread_cellfind_cellfilter_rows_by_columns
Call from Claude


Setup:
C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"spreadsheet-mcp-server": {
"command": "uvx",
"args": [
"--with-requirements=\\path\\to\\requirements.txt",
"python",
"\\path\\to\\main.py"
]
}
}
}Related MCP server: Google Sheets and Drive MCP
Call from VSCode
https://github.com/user-attachments/assets/b640f1de-a97f-4d50-bd0e-3c3ad2baaa46
Command:
uvx --with-requirements=requirements.txt python main.py
This will generate the following file in .vscode/ is you setup the MCP server for your workspace:
mcp.json:
{
"servers": {
"spreadsheet-mcp-server": {
"type": "stdio",
"command": "uvx",
"cwd": "C:\\path\\to\\spreadsheet-MCP", // C:\\Users\\ydebray\\Downloads\\magic-spread
"args": [
"--with-requirements=requirements.txt",
"python",
"main.py"
]
}
},
"inputs": []
}Connect to Google Sheets with gspread
This small helper shows how to connect to a private spreadsheet using gspread and a service account (or user OAuth).
Service account:

Files added:
connect_gspread.py— script to authorize and print a small preview of the spreadsheet.requirements.txt— minimal Python dependencies..gitignore— ignores credential files.
Quick steps (Windows cmd.exe):
Activate the virtualenv in this repo (if you use the provided
env):
call env\Scripts\activate.batInstall dependencies:
pip install -r requirements.txtProvide credentials (one of the service-account options below):
Recommended: create a service account in Google Cloud, grant it at least Viewer access to the spreadsheet, then download the JSON key file and set:
set GOOGLE_APPLICATION_CREDENTIALS=C:\path\to\service-account.jsonAlternative: set the JSON contents into an environment variable (not recommended for large JSONs):
set GSPREAD_SERVICE_ACCOUNT_JSON={...JSON contents...}Run the script (the default sheet id is already set in the script):
python connect_gspread.py --sheet-id <your-spreadsheet-id>Notes:
If you prefer OAuth with a user account, ensure
gspread.oauth()is configured (the script falls back to it but you need local OAuth config).Keep credential JSON files out of source control.
.gitignorewas added to help with that.
If you want, I can run a quick local test in your environment — but I cannot access your credentials. If you paste a sanitized path to a service-account JSON that is already in the workspace (or set the env var), I can run the script here.
Debug the MCP Server
https://modelcontextprotocol.io/docs/tools/inspector
npx @modelcontextprotocol/inspector python main.py
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your Google Sheets as structured JSON: list sheets and tabs, read schemas, filter rows.
Google Sheets via Apify: write Apify datasets or JSON rows to a sheet, or read a sheet as JSON.
Read and write Google Sheets with your own service account: list tabs, read, append, update, export.
Write rows to Google Sheets (append, replace, update by key) or read a tab. No OAuth needed.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables reading and writing Google Sheets using API key or service account, with support for public and authenticated access.-
- AlicenseBqualityDmaintenanceProvides tools for reading, modifying, and analyzing Google Sheets, as well as searching and managing Google Drive spreadsheets with access control.25MIT
- AlicenseNot gradedqualityDmaintenanceEnables full CRUD over Google Sheets through a service account, including reading tabs and rows, finding rows by column value, appending, updating, deleting rows, and managing tabs.MIT
- AlicenseNot gradedqualityCmaintenanceEnables reading and writing Google Sheets, with server-side filtering and update-by-query, supporting credential-less reads for link-shared sheets and service-account writes.MIT