Google Sheets MCP Server
Provides tools to read, write, append, and create Google Sheets.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Sheets MCP ServerAppend the weekly sales data to the Sales sheet"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Sheets MCP Server
An MCP (Model Context Protocol) server that provides Google Sheets integration capabilities.
Features
read_sheet: Read data from a Google Sheet
write_sheet: Write data to a Google Sheet
append_sheet: Append data to a Google Sheet
create_sheet: Create a new Google Sheet
Related MCP server: MCP Google Sheets Server
Setup
Install dependencies:
npm installAuthentication Setup (Shared with gmail_mcp):
This server uses the same OAuth2 credentials as
gmail_mcpMake sure you have already set up
gmail_mcpwith Google OAuth2 credentialsThe server will automatically use
../gmail_mcp/credentials.jsonand../gmail_mcp/token.json
Google Cloud Setup (if not done for gmail_mcp):
Create a project in Google Cloud Console
Enable the Google Sheets API (in addition to Gmail API)
Create OAuth2 credentials (not service account) and download as
credentials.jsonPlace
credentials.jsonin thegmail_mcpfolder
Build the server:
npm run build
Usage
Running the server
npm startDevelopment
npm run devMCP Client Configuration
Add this server to your MCP client configuration:
{
"mcpServers": {
"gsheets": {
"command": "node",
"args": ["/path/to/gsheets_mcp/dist/index.js"]
}
}
}Tools
read_sheet
Read data from a Google Sheet.
Parameters:
spreadsheetId(string): The ID of the Google Sheetrange(string): The range to read (e.g., 'Sheet1!A1:C10')
write_sheet
Write data to a Google Sheet.
Parameters:
spreadsheetId(string): The ID of the Google Sheetrange(string): The range to write to (e.g., 'Sheet1!A1')values(array): 2D array of values to write
append_sheet
Append data to a Google Sheet.
Parameters:
spreadsheetId(string): The ID of the Google Sheetrange(string): The range to append to (e.g., 'Sheet1!A:C')values(array): 2D array of values to append
create_sheet
Create a new Google Sheet.
Parameters:
title(string): Title of the new spreadsheet
Authentication
This server uses OAuth2 authentication shared with the gmail_mcp server. The authentication is handled automatically using the credentials from the gmail_mcp folder.
Required Scopes:
https://www.googleapis.com/auth/spreadsheets(for Sheets access)
Make sure the Google Sheets API is enabled in your Google Cloud project alongside the Gmail API.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Google Docs MCP Pack — read, create, and edit Google Docs via OAuth.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceProvides read/write access to Google Sheets and Google Docs through MCP tools, enabling operations like reading sheets, appending rows, and editing documents.-
- AlicenseNot gradedqualityCmaintenanceProvides full programmatic access to Google Sheets, enabling CRUD operations, permission management, formatting, and spreadsheet discovery through a standardized MCP interface.298 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server to read, write, create, and format Google Sheets via OAuth2 authentication, providing tools for spreadsheet management.298 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables reading, writing, appending, and creating Google Sheets spreadsheets through MCP tools, with support for exploring spreadsheet structure and creating new sheets.5 npmMIT