Google Sheets MCP Server

Google Sheets MCP Server

mcp-sever-google-sheets•byaryan1718

An MCP server providing tools to read, write, update, and generate data in Google Sheets spreadsheets.

License: Not specified•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Lists all spreadsheets shared with the configured service account.
  • •Retrieves spreadsheet information and sheet content by spreadsheet ID.
  • •Generates realistic data based on a sheet's attributes and adds it to the sheet.
  • •Updates a record in a sheet by matching an id or name and applying column-value changes.

BEST FOR

  • •Using an AI client such as Cursor to inspect and modify Google Sheets data through MCP tools.
  • •Populating spreadsheets with generated sample data or appending prepared data via lists or CSV.
  • •Updating existing spreadsheet records by matching an identifier such as id or name.

ABOUT MCP-SEVER-GOOGLE-SHEETS

Google Sheets MCP Server is cataloged as an MCP server attributed to aryan1718. An MCP server providing tools to read, write, update, and generate data in Google Sheets spreadsheets. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Google Sheets MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

Upstream README

View this exact version on GitHub

README.md · eb4af4a0a872 · Fetched 2026-11-13 13:21:22 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Google Sheets MCP Server

This MCP server provides tools to interact with Google Sheets, allowing you to read, write, and update data in your spreadsheets.

Prerequisites

  • Python 3.8 or higher
  • Google Cloud Platform account
  • A Google Sheet that you want to interact with

Installation

  1. Clone this repository:
git clone <your-repository-url>
cd mcp-server-demo
  1. Install the required packages:
pip install google-auth-oauthlib google-auth-httplib2 google-api-python-client
  1. Download and place credentials.json:
    • Download the credentials.json file from your Google Cloud Console
    • Place the credentials.json file in the same directory as main.py
    • Make sure the file is named exactly credentials.json

Setting up Google Cloud Platform Credentials

  1. Go to the Google Cloud Console

  2. Create a new project or select an existing one

  3. Enable the Google Sheets API:

    • Go to "APIs & Services" > "Library"
    • Search for "Google Sheets API"
    • Click "Enable"
  4. Create credentials:

    • Go to "APIs & Services" > "Credentials"
    • Click "Create Credentials" > "Service Account"
    • Fill in the service account details:
      • Name: Choose a descriptive name
      • ID: Will be auto-generated
      • Description: Optional description
    • Click "Create and Continue"
    • For Role, select "Editor" (or appropriate role for your needs)
    • Click "Continue" and then "Done"
  5. Create and download the key:

    • In the service account list, click on your newly created account
    • Go to the "Keys" tab
    • Click "Add Key" > "Create new key"
    • Choose "JSON" format
    • Click "Create"
    • The JSON file will be downloaded automatically
  6. Save the credentials:

    • Rename the downloaded JSON file to credentials.json
    • Place it in the mcp-server-demo directory
  7. Share your Google Sheet:

    • Open your Google Sheet
    • Click the "Share" button
    • Add the service account email (found in the client_email field of your credentials.json)
    • Give it "Editor" access

Running the Server

  1. Install the MCP server:
uv run mcp install main.py
  1. The server will start and be ready to accept commands.

Adding to Cursor

To add this MCP server to Cursor, follow these steps:

  1. Open Cursor
  2. Go to Cursor -> Preferences -> Cursor Settings -> MCP -> Add new global MCP Server
  3. Add the following configuration to your Cursor config file:
{
  "mcpServers": {
    "GoogleSheets": {
      "command": "python",
      "args": [
        "main.py"
      ]
    }
  }
}
  1. Restart Cursor for the changes to take effect

Screenshots

image

image

image

image

image

Available Tools

List Spreadsheets

/tool list_spreadsheets

Lists all spreadsheets shared with the service account.

Get Spreadsheet Info

/tool get_spreadsheet_info "spreadsheet_id"

Gets information about a specific spreadsheet.

Get Sheet Content

/tool get_sheet_content "spreadsheet_id"

Retrieves the content of a specific sheet.

Generate Sheet Data

/tool generate_sheet_data "spreadsheet_id"  number_of_records

Generates realistic data based on the sheet's attributes.

Add Data to Sheet

/tool add_data_to_sheet "spreadsheet_id"  "data_string"

Adds pre-generated data to a sheet.

Update Sheet Record

/tool update_sheet_record "spreadsheet_id"  "identifier" "updates"

Updates a record in the sheet based on id or name matching.

Data Formats

For Adding Data

The data string can be in one of these formats:

  1. List of lists format: [["value1", "value2"], ["value3", "value4"]]
  2. CSV format:
value1,value2
value3,value4

For Updates

Provide the changes in format: column1=value1 column2=value2 Example: age=25 email=xyz@example.com phone=1234567890

Security Notes

  1. Never commit credentials.json to version control
  2. Keep your credentials secure
  3. Only share your Google Sheet with necessary service accounts
  4. Regularly rotate your credentials

Troubleshooting

Common Issues

  1. Authentication Errors

    • Ensure the service account email has been added as an editor to the spreadsheet
    • Verify that the credentials.json file is valid and not corrupted
    • Check if the Google Sheets API is enabled in your Google Cloud project
  2. Permission Errors

    • Make sure the service account has the correct permissions
    • Verify the spreadsheet is shared with the service account email
    • Check if the spreadsheet ID is correct
  3. Data Format Errors

    • Ensure the data format matches the expected structure
    • Check if the sheet has the required columns (id or name)
    • Verify the number of columns in the data matches the sheet

Support

If you encounter any issues or have questions, please:

  1. Check the error messages in the logs
  2. Verify your setup following the instructions above
  3. Ensure all prerequisites are met
  4. Contact aryanpandit17032002@gmail.com

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Google Sheets MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-sever-google-sheets)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops