Google Sheet MCP SERVER avatar
Google Sheet MCP SERVER

Pricing

Pay per event

Go to Apify Store
Google Sheet MCP SERVER

Google Sheet MCP SERVER

Developed by

bhansalisoft

bhansalisoft

Maintained by Community

Google Sheet MCP SERVER for unique tool for Google Sheet integration with all functionality on Any AI Tool

0.0 (0)

Pricing

Pay per event

0

2

1

Last modified

a day ago

πŸš€ Google Sheet MCP Server

Google Sheet MCP Server is a powerful integration tool designed to expose Google Sheets functionality to your AI workflows, automation pipelines, and Apify Actors using the Model Context Protocol (MCP).

It enables seamless interaction with Google Sheets β€” including authentication, reading, writing, creating, and deleting sheets β€” directly from your code or automation flow.

🧠 Key Features

FunctionDescription
βœ… get_credentials_toolInitiates Google OAuth authentication and provides an authorization URL for connecting your Google account.
βœ… save_auth_codeSaves the authorization code obtained from get_credentials_tool to securely enable access.
βœ… list_spreadsheetsLists all spreadsheets in your connected Google Drive.
βœ… list_sheetsRetrieves all sheet (tab) names from a specific spreadsheet.
βœ… read_rangeReads cell values from a specified range (e.g. Sheet1!A1:B2).
βœ… write_rangeWrites values to a defined range (e.g. Sheet1!A1:B2) using JSON arrays such as ["test","test@gmail.com","message"].
βœ… clear_rangeClears data from a specified range (e.g. Sheet1!A1:B2).
βœ… insert_rowAppends one or multiple rows to the end of a specific sheet.
Args:
spreadsheet_id β€” Spreadsheet ID
sheet_name β€” Tab name
row_values_json β€” JSON or 2D array (e.g. ["A","B","C"] or [["A","B"],["C","D"]]).
βœ… create_sheetCreates a new sheet/tab inside an existing spreadsheet.
βœ… delete_sheetDeletes a sheet/tab using its numeric sheet ID.
βœ… create_spreadsheetCreates a brand-new spreadsheet in Google Drive and returns its ID.
βœ… delete_spreadsheetDeletes a specified spreadsheet from your Google Drive.
βœ… read_all_contentReads all data from all sheets within a spreadsheet and returns JSON { "SheetName": [[...],[...]] }.
βœ… read_sheet_contentReads spreadsheet data selectively with filtering options for sheet names.
Args:
spreadsheet_id β€” Spreadsheet ID
sheet_filter β€” Single name or JSON array (e.g. "Sheet1" or ["Sheet1","Data"])
include_all β€” Boolean flag to read all sheets or only matches.

🧩 Ideal For

  • AI tool developers using MCP (Model Context Protocol) for LLM-driven automations.
  • Apify Actors that need to read/write structured data dynamically.
  • Automation systems connecting Google Sheets with Apify, ChatGPT, or custom APIs.
  • Data collection pipelines storing real-time results directly into Google Sheets.

πŸ” Authentication

Before running the server, you must authenticate your Google account:

  1. Run the get_credentials_tool to obtain your authorization URL.
  2. Visit the URL and approve access.
  3. Copy the generated auth code and pass it to save_auth_code.

This grants permission for all subsequent API actions (read/write/create/delete).


🧾 Example Output (JSON)

{
"sheet_name": "Sheet1",
"values": [
["Name", "Email", "Status"],
["Alice", "alice@example.com", "Active"],
["Bob", "bob@example.com", "Inactive"]
]
}

🧠 Best Practices

  • Always limit data ranges (Sheet1!A1:D1000) to improve performance.
  • Use insert_row instead of write_range for scalable appends.
  • Periodically refresh your credentials for long-running automations.
  • Combine this MCP Server with Apify Actors for full workflow orchestration.

πŸ“¦ Output Format

Each tool method returns structured JSON, ideal for:

  • AI agents,
  • Automation pipelines,
  • Data monitoring dashboards,
  • Google Sheet β†’ Apify β†’ AI feedback loops.

πŸ’‘ Example Integration

This Actor can be directly integrated in Apify + Gemini AI or Apify + ChatGPT pipelines:

graph TD
A[Apify Scraper] --> B[Gemini AI MCP Server]
B --> C[Google Sheet MCP Server]
C --> D[Google Sheets Data Storage]

🏁 Summary

Google Sheet MCP Server is the bridge between Google Sheets and AI-driven automations, providing ready-to-use methods for all essential operations β€” from authentication to spreadsheet management.

It’s the easiest way to bring Google Sheets I/O capabilities into your AI workflows, Apify Actors, or MCP pipelines.

Demo Videos

Check Demo video using TEST MCP Client

Check Demo using MCP inspector Tools