Back to Home
domdomegg icon

google-sheets-mcp

Verified Safe

by domdomegg

Overview

The server allows AI systems to perform read, write, and query operations on Google Sheets spreadsheets, facilitating data automation, analysis, and entry workflows.

Installation

Run Command
GOOGLE_CLIENT_ID='<your-client-id>' GOOGLE_CLIENT_SECRET='<your-client-secret>' MCP_TRANSPORT=http npm start

Environment Variables

  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • MCP_TRANSPORT
  • GOOGLE_ACCESS_TOKEN
  • PORT
  • MCP_BASE_URL

Security Notes

The server functions as an OAuth proxy, transparently handling Google authentication and API calls. It uses Zod for robust input and output validation (via `strictSchemaWithAliases`), mitigating risks from malformed requests. A notable security feature is the proactive token validation cache (`isTokenValid`), which checks Google access token validity before processing MCP requests. This ensures that only valid tokens are used for Google API calls and allows MCP clients to properly handle expired tokens by triggering a refresh. No hardcoded secrets, `eval` usage, or obfuscation were found in the provided source code. All sensitive credentials (`GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`, `GOOGLE_ACCESS_TOKEN`) are loaded from environment variables.

Similar Servers

Stats

Interest Score16
Security Score9
Cost ClassLow
Stars1
Forks0
Last Update2025-12-28

Tags

Google SheetsSpreadsheet AutomationData ManagementAPI ProxyOAuth