Skip to main content

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_spreadsheets
  • get_spreadsheet
  • create_spreadsheet
  • get_sheet_data
  • update_cells
  • append_values
  • add_columns
  • add_rows
  • batch_update
  • batch_update_cells
  • copy_sheet
  • create_sheet
  • find_in_spreadsheet
  • get_multiple_sheet_data
  • get_multiple_spreadsheet_summary
  • get_sheet_formulas
  • list_folders
  • list_sheets
  • rename_sheet
  • search_spreadsheets
  • share_spreadsheet

File Format Behavior

  • list_spreadsheets can 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

barie_google_sheets_mcp-0.1.1.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barie_google_sheets_mcp-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for barie_google_sheets_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4491bee6faa5e8b6f57eaae22607064522f332ee438cc1855936c2a0a2c9056e
MD5 44da6ab6e1e79d8bfd067dbb2417acc9
BLAKE2b-256 8d5d8963fe6924255c8489fb758d8e3d6c843bb1776371902c70f8a60710f1af

See more details on using hashes here.

File details

Details for the file barie_google_sheets_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for barie_google_sheets_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ec8e79de3e554a8463fdeed3b1a0d8afc19640fdc68463e8eaf73ce72fad869
MD5 f3430e0b33117d3dadf10592a947d9da
BLAKE2b-256 01271a4d381008b60903d8df7fdd3b1c4067c39fba39471042e00c0d04b163d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page