Google Sheets MCP Server for managing spreadsheets via the Model Context Protocol
Project description
Barie Google Sheets MCP Server
Model Context Protocol (MCP) server for Google Sheets and Google Drive discovery.
It supports listing spreadsheet-like files from Drive, and full read/write operations on native Google Sheets.
Install
uvx barie-google-sheets-mcp --help
Run
barie-google-sheets-mcp \
--access-token "YOUR_ACCESS_TOKEN" \
--refresh-token "YOUR_REFRESH_TOKEN" \
--client-id "YOUR_CLIENT_ID" \
--client-secret "YOUR_CLIENT_SECRET"
Optional:
--expiry: token expiry timestamp in ISO format--scopes: JSON array string, for example:["https://www.googleapis.com/auth/drive","https://www.googleapis.com/auth/spreadsheets"]
MCP Client Config Example
{
"mcpServers": {
"google_sheets": {
"command": "uvx",
"args": [
"barie-google-sheets-mcp",
"--access-token",
"YOUR_ACCESS_TOKEN",
"--refresh-token",
"YOUR_REFRESH_TOKEN",
"--client-id",
"YOUR_CLIENT_ID",
"--client-secret",
"YOUR_CLIENT_SECRET"
]
}
}
}
If you need to force-refresh package resolution in long-lived environments, you can add --refresh and --reinstall before barie-google-sheets-mcp.
Tool Names
The server exposes these MCP tools:
list_spreadsheetsget_spreadsheetcreate_spreadsheetget_sheet_dataupdate_cellsappend_valuesadd_columnsadd_rowsbatch_updatebatch_update_cellscopy_sheetcreate_sheetfind_in_spreadsheetget_multiple_sheet_dataget_multiple_spreadsheet_summaryget_sheet_formulaslist_folderslist_sheetsrename_sheetsearch_spreadsheetsshare_spreadsheet
File Format Behavior
list_spreadsheetscan return Google Sheets and some spreadsheet-like Drive files.- Read/write tools (
get_sheet_data,update_cells,append_values, etc.) work only with native Google Sheets (application/vnd.google-apps.spreadsheet). - For
.xlsx,.xls, or.csv, convert to Google Sheets first, then use the converted file ID.
If a non-native spreadsheet is passed to a Sheets-only tool, the server returns a clear conversion-required error.
Publish
cd google_sheets
python -m build
python -m twine check dist/*
python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file barie_google_sheets_mcp-0.1.1.tar.gz.
File metadata
- Download URL: barie_google_sheets_mcp-0.1.1.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4491bee6faa5e8b6f57eaae22607064522f332ee438cc1855936c2a0a2c9056e
|
|
| MD5 |
44da6ab6e1e79d8bfd067dbb2417acc9
|
|
| BLAKE2b-256 |
8d5d8963fe6924255c8489fb758d8e3d6c843bb1776371902c70f8a60710f1af
|
File details
Details for the file barie_google_sheets_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: barie_google_sheets_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ec8e79de3e554a8463fdeed3b1a0d8afc19640fdc68463e8eaf73ce72fad869
|
|
| MD5 |
f3430e0b33117d3dadf10592a947d9da
|
|
| BLAKE2b-256 |
01271a4d381008b60903d8df7fdd3b1c4067c39fba39471042e00c0d04b163d0
|