Google Sheets MCP Server
Google Sheets MCP server for AI agents
Visit Google Sheets Zapier Docs1234567891011121314151617181920212223const mcpConfig = new MCPConfiguration({ servers: { // Example 1: HTTP-based server (e.g., external web service or API gateway) server: { type: "http", url: "https://actions.zapier.com/mcp/YOUR_MCP_KEY/sse", }, }, }); // Fetch all tools from all configured MCP servers into a flat array const allTools = await mcpConfig.getTools(); const agent = new Agent({ name: "MCP Agent", instructions: "An assistant that can use MCP tools configured at startup", llm: new VercelAIProvider(), model: openai("gpt-4o"), tools: allTools, // Add MCP tools during initialization }); // Remember to disconnect later // await mcpConfig.disconnect();
Google Sheets MCP Tools
The Google Sheets MCP server connects your AI agents to Google's spreadsheet applications directly. Your agents can add sheets, update data, perform lookups, and even format cells - all automatically. Review the features listed below to see how you can harness these capabilities to speed up your data management and analysis processes.
How to Create New Google Spreadsheets with MCP?
Let your AI assistants prepare new spreadsheets for you whenever you need them. They will set up neat tables to receive and interpret your data, saving you the hassle of manual preparation.
Create Spreadsheet
create_spreadsheet
composio: google_sheet1
Update Spreadsheet Data in Batch Operations
Your AI can update hundreds of pieces of information at a time! Instead of painstakingly entering cells one by one, your assistant can update rows or cells in bulk. Perfect for maintaining your sheets without the tedium.
Update Spreadsheet
update_spreadsheet_rows
composio: update
Update Individual Spreadsheet Rows
Need to make a minor tweak to just one record? Your AI will precisely update a single row without ever laying a finger on anything else in your sheet. It's having an assistant that knows the exact line to edit without ruining your other data.
Update Spreadsheet Row
update_spreadsheet_row
How to Find Specific Data Rows in Google Sheets with MCP?
Let your AI do the searching for you! It can instantly find just what you're looking for within your spreadsheets by any value. No more CTRL+F and scrolling through rows and rows - just ask and get the exact data you need.
Lookup Google Spreadsheet Row
lookup_spreadsheet_row
composio: spreadsheet_row
How to Search and Retrieve Multiple Matching Records in Google Sheets?
Your AI can capture all the corresponding entries at once - 500 rows at a time that fit your criteria! It's like having a research aide who can gather all analogous information so that you can spot trends or batch process identical objects.
Lookup Spreadsheet Rows (Advanced)
lookup_spreadsheet_rows_advanced
Clear Data While Preserving Structure
Your AI can restart clean without breaking your sheet's foundation. It'll clear out outdated data without touching your carefully crafted formulas and formatting - perfect for month-end cleanups or preparing templates for fresh inputs.
Clear Google Sheets Values
clear_spreadsheet_rows
composio: values
How to Apply Professional Formatting to Spreadsheet Data with MCP?
Your AI can make your data beautiful! It'll take care of all the formatting - colors, fonts, borders - to produce visually appealing reports that bring attention where it counts. No more headaches from manual formatting, just professional-looking clean sheets.
Format Spreadsheet Cells
format_spreadsheet_row
composio: cell
Retrieve Batch Data from Google Spreadsheets
Give your AI agents the ability to pull huge amounts of data out of Google Sheets. This feature allows for data analysis, reporting, and leveraging spreadsheet data to drive other AI workflows and decision-making processes.
Get Spreadsheet Data
get_many_spreadsheet_rows
composio: get
Retrieve Available Worksheet Names
Enable your AI agents to discover all available worksheets within a Google Sheets document. This allows for better navigation, targeted operations, and understanding the structure of complex spreadsheets with multiple tabs.
Get Worksheet Names
sheet_names
Access Spreadsheet Metadata and Properties
Allow your AI agents to gather essential metadata about Google Sheets documents, including ownership, sharing settings, and structure. This gives AI agents context about the document they're working with for more informed operations.
Spreadsheet Information
spreadsheet_info
Convert JSON Data to Structured Spreadsheets
Empower your AI agents to transform JSON data into well-structured Google Sheets. This enables automated creation of spreadsheets from API responses, database exports, or other structured data sources.
Create Spreadsheet from JSON
from_json
How to Add New Data Columns to Google Sheets with MCP?
Enable your AI agents to expand spreadsheet structures by adding new columns. This allows for dynamic data model expansion, adding calculated fields, or introducing new categories of information to existing datasets.
Create Spreadsheet Column
create_spreadsheet_column
Add New Data Entries to Spreadsheets
Allow your AI agents to insert new rows of data into Google Sheets. This essential capability enables data collection, record keeping, and automated logging of information in structured tabular format.
Create Spreadsheet Row
create_spreadsheet_row
How to Insert Multiple Data Records Efficiently with MCP?
Empower your AI agents to add multiple rows of data in a single operation. This batch insertion capability allows for efficient data imports, logging multiple events, and creating initial datasets with line item support for complex data.
Create Multiple Spreadsheet Rows
create_multiple_spreadsheet_rows
Prioritize New Data at Spreadsheet Top
Give your AI agents the ability to insert new data at the beginning of spreadsheets. This is ideal for time-sensitive information, prioritizing recent entries, and maintaining reverse-chronological logs with newest data always visible.
Create Google sheet Row at Top
create_spreadsheet_row_at_top
Duplicate Worksheets for Templates or Backups
Enable your AI agents to create copies of entire worksheets, preserving structure, formulas, and formatting. This facilitates template usage, versioning, and creating backup snapshots of important data.
Copy Worksheet
copy_worksheet
How to Add New Worksheet Tabs to Google Sheets with MCP?
Allow your AI agents to create new worksheets within existing spreadsheets. This helps organize data into logical sections, separate different data categories, and maintain clean information architecture in complex documents.
Create Worksheet
create_worksheet
Remove Unwanted Data from Spreadsheets
Empower your AI agents to clean up spreadsheets by removing rows. This capability is essential for data maintenance, purging outdated information, and automating cleanup processes for more efficient data management.
Delete Spreadsheet Row(s)
delete_spreadsheet_rows
Access Advanced Google Sheets API Features
Make it possible for your AI agents to directly invoke APIs on Google Sheets with full authentication. This advanced feature unleashes the entire Google Sheets API to customizations, add-ons, and specialized operations beyond standard actions.
API Request (Beta)
api_request_beta
Locate Specific Worksheets by Name
Give your AI agents the ability to find a specific worksheet within spreadsheets. This find feature ensures there are operations being done on the correct data tabs and helps in navigation with complex multi-sheet documents.
Find Worksheet
find_worksheet
Ensure Google Sheets Worksheets Exist Before Operations
Give your AI agents a reliable way to manage spreadsheets without repeating the same actions. This tool checks for the existence of a worksheet and creates it otherwise, preventing errors and a smooth flow despite pre-existing structure.
Find or Create Worksheet
find_or_create_worksheet
How to Ensure Data Records Exist or Create Them
Allow your AI agents to check for the existence of certain data and add it where not present. This upsert-like functionality ensures data integrity, prevents duplicates, and streamlines processes that depend on certain records being present.
Find or Create Row
find_or_create_row
Google Sheets MCP server for AI agents
Visit Google Sheets Zapier Docs