Skip to main content

Google Sheets MCP Server for managing spreadsheets via the Model Context Protocol

Project description

Barie Google Sheets MCP Server

A Model Context Protocol (MCP) server for managing Google Sheets — list spreadsheets, create spreadsheets, read cell ranges, update values, and append rows.

Installation

# Using uvx (recommended)
uvx --from . barie-google-sheets-mcp

# Or install locally
pip install -e .

Usage

barie-google-sheets-mcp \
  --access-token "YOUR_ACCESS_TOKEN" \
  --refresh-token "YOUR_REFRESH_TOKEN" \
  --client-id "YOUR_CLIENT_ID" \
  --client-secret "YOUR_CLIENT_SECRET" \
  --expiry "2024-12-31T23:59:59Z" \
  --scopes '["https://www.googleapis.com/auth/spreadsheets","https://www.googleapis.com/auth/drive.file"]'

Required Arguments

  • --access-token - Google OAuth2 access token
  • --refresh-token - Google OAuth2 refresh token
  • --client-id - Google OAuth2 client ID
  • --client-secret - Google OAuth2 client secret

Optional Arguments

  • --expiry - Token expiry timestamp (ISO format)
  • --scopes - OAuth2 scopes as JSON array string

Tools

Tool Description
list-spreadsheets List Google Sheets files from Drive
get-spreadsheet Get spreadsheet metadata (optionally ranges/gridData)
create-spreadsheet Create a new spreadsheet
get-values Read cell values (A1 range)
update-values Write values to a range
append-values Append rows to a range

Development

python server.py --help

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.0.tar.gz (9.3 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.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: barie_google_sheets_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 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.0.tar.gz
Algorithm Hash digest
SHA256 66db42cf53e6de0f60ebd3da16a431f5ad249e8189e3adb92d2c7e74071d21fd
MD5 6f050877411cdcc2e499fc2a6c09db2b
BLAKE2b-256 6d7140ec07b86845e559c0d46c7c82e6802f4a8e98d56ab67b5f71a2a96b1f61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for barie_google_sheets_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e5c43bc519081dc8c4ac4364707f937921ec1f37c7eccf00b3178070b38c03c
MD5 77d28e1f04da6381354665a5224a33f0
BLAKE2b-256 fc0effe8fca4a460053d775916a20af1f5e80f9c7e9d20625b497462d10679df

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