Skip to main content

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/*

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.2.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.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file barie_google_sheets_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: barie_google_sheets_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for barie_google_sheets_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f92e335dd6c9a0a228d64e4a9219fa735c8f383b4cbb08e9043519150379bd32
MD5 2555fb385e64532b8a81a1a2ea279920
BLAKE2b-256 c4a1177729d01ae24751b9aaedc0ae3f6de43f8ec42e6501ce123982f1f36632

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for barie_google_sheets_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dba4ef9a195f63c730fd3180f6167814669433912623ed50831cd51ca366d42e
MD5 fcc5228ea480013edeb8200abb33816c
BLAKE2b-256 209a65f03f4968ee6f678b0b1393f8e52259e15aad83747bb0db76f4e0e7646a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page