mcp-google-sheets-server
Click on "Install 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., "@mcp-google-sheets-serverCreate a chart from the sales data in range A1:F20"
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.
๐ MCP Google Sheets Server v2.1.0
Complete MCP Server for Google Sheets - 40+ tools for professional sheet management, advanced charts, and enterprise features!
โจ NEW in v2.1.0 - Complete Sheet Management & Enhanced Charts!
๐ Complete Sheet Management - Create, rename, hide/show, move, duplicate, delete sheets
๐ Advanced Chart Creation - Create charts with data, from tables, update chart data
๐ Sheet Information - Get detailed sheet properties, list all sheets
๐จ Professional Formatting - Colors, fonts, borders, conditional formatting
๐ Data Protection - Validation rules, range protection, access control
โก Performance Optimized - Batch operations, efficient API usage
๐ Enterprise Ready - 40+ tools for professional Google Sheets management
Related MCP server: Google Docs, Drive & Sheets MCP Server
๐ Quick Installation
Method 1: Install from npm (Recommended)
npm install -g mcp-google-sheets-serverMethod 2: Local installation
npm install mcp-google-sheets-serverMethod 3: Use npx (No installation needed)
npx mcp-google-sheets-server๐ Google Service Account Authentication
Detailed Guide
See GOOGLE_SERVICE_ACCOUNT_SETUP.md for step-by-step instructions on how to get Google Service Account Key.
Quick Configuration
{
"mcpServers": {
"mcp-google-sheets": {
"command": "npx",
"args": ["mcp-google-sheets-server"],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "your-service-account-json"
}
}
}
}๐ Complete Tool Collection (40+ Tools!)
๐ง Basic Operations
Tool | Description | Parameters |
| Get data with formatting options |
|
| Update data with input options |
|
| Create spreadsheet with theme |
|
๐จ Advanced Formatting
Tool | Description | Parameters |
| Apply professional formatting |
|
| Set conditional rules |
|
| Merge cells with options |
|
๐ Enhanced Charts & Visualization
Tool | Description | Parameters |
| Create basic charts |
|
| Create charts with data |
|
| Create charts from tables |
|
| Update existing charts |
|
| Update chart data |
|
| Delete charts |
|
| List all charts |
|
๐ Complete Sheet Management
Tool | Description | Parameters |
| Create new sheets |
|
| Duplicate existing sheets |
|
| Delete sheets |
|
| Rename sheets |
|
| Hide sheets from view |
|
| Show hidden sheets |
|
| Move sheets to new position |
|
| Get all sheet information |
|
| Get specific sheet properties |
|
๐ Data Validation & Protection
Tool | Description | Parameters |
| Set validation rules |
|
| Protect ranges from editing |
|
๐ Advanced Data Operations
Tool | Description | Parameters |
| Insert rows at position |
|
| Insert columns at position |
|
| Delete rows from position |
|
| Delete columns from position |
|
๐ Formula & Calculation
Tool | Description | Parameters |
| Set formulas in cells |
|
| Calculate formula results |
|
โก Batch Operations
Tool | Description | Parameters |
| Multiple operations in one request |
|
| Get data from multiple ranges |
|
๐ Search & Sharing
Tool | Description | Parameters |
| Search spreadsheets |
|
| Share with permissions |
|
| Get comprehensive metadata |
|
๐งน Utility Operations
Tool | Description | Parameters |
| Clear content and formatting |
|
| Copy sheets between spreadsheets |
|
๐ ๏ธ Advanced Setup Examples
Create Professional Spreadsheet with Multiple Sheets
{
"mcpServers": {
"mcp-google-sheets": {
"command": "npx",
"args": ["mcp-google-sheets-server"],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "your-service-account-json"
}
}
}
}๐ Advanced Usage Examples
Complete Sheet Management Workflow
// 1. Create spreadsheet
const spreadsheet = await mcp.callTool("sheets_create", {
title: "Business Dashboard 2024",
theme: "LIGHT",
});
// 2. Create multiple sheets
await mcp.callTool("sheets_create_sheet", {
spreadsheetId: spreadsheet.spreadsheetId,
title: "Sales Data",
index: 1,
});
await mcp.callTool("sheets_create_sheet", {
spreadsheetId: spreadsheet.spreadsheetId,
title: "Charts",
index: 2,
});
// 3. Add data to Sales Data sheet
await mcp.callTool("sheets_update_data", {
spreadsheetId: spreadsheet.spreadsheetId,
range: "Sales Data!A1:D6",
values: [
["Month", "Revenue", "Expenses", "Profit"],
["January", 50000, 30000, 20000],
["February", 55000, 32000, 23000],
["March", 60000, 35000, 25000],
["April", 65000, 38000, 27000],
["May", 70000, 40000, 30000],
],
});
// 4. Create professional chart
await mcp.callTool("sheets_create_chart_from_table", {
spreadsheetId: spreadsheet.spreadsheetId,
chartType: "COLUMN",
tableRange: "Sales Data!A1:D6",
title: "Monthly Financial Performance",
useFirstRowAsLabels: true,
});
// 5. Rename and organize sheets
await mcp.callTool("sheets_rename_sheet", {
spreadsheetId: spreadsheet.spreadsheetId,
sheetId: 0, // First sheet
newTitle: "Summary",
});
// 6. Move Charts sheet to the end
await mcp.callTool("sheets_move_sheet", {
spreadsheetId: spreadsheet.spreadsheetId,
sheetId: 2, // Charts sheet
newIndex: 3, // Move to end
});
// 7. Hide a temporary sheet if needed
await mcp.callTool("sheets_hide_sheet", {
spreadsheetId: spreadsheet.spreadsheetId,
sheetId: 1, // Hide Sales Data sheet
});Advanced Chart Management
// Create chart with custom options
await mcp.callTool("sheets_create_chart_with_data", {
spreadsheetId: "your-spreadsheet-id",
chartType: "LINE",
dataRange: "A1:C10",
title: "Trend Analysis",
chartOptions: {
colors: ["#4285F4", "#34A853"],
legendPosition: "RIGHT_LEGEND",
},
});
// Update chart data when source data changes
await mcp.callTool("sheets_update_chart_data", {
spreadsheetId: "your-spreadsheet-id",
chartId: 12345,
newDataRange: "A1:C15", // Extended range
updateTitle: "Updated Trend Analysis",
});
// List all charts in spreadsheet
const charts = await mcp.callTool("sheets_list_charts", {
spreadsheetId: "your-spreadsheet-id",
});
// Delete unwanted charts
await mcp.callTool("sheets_delete_chart", {
spreadsheetId: "your-spreadsheet-id",
chartId: 12345,
});Sheet Information and Properties
// Get information about all sheets
const sheetInfo = await mcp.callTool("sheets_get_sheet_info", {
spreadsheetId: "your-spreadsheet-id",
includeGridData: false,
});
// Get properties of specific sheet
const sheetProps = await mcp.callTool("sheets_get_sheet_properties", {
spreadsheetId: "your-spreadsheet-id",
sheetId: 0,
});
// Check if sheet is hidden
if (sheetProps.properties.hidden) {
// Show the sheet
await mcp.callTool("sheets_show_sheet", {
spreadsheetId: "your-spreadsheet-id",
sheetId: 0,
});
}๐ง Troubleshooting
Common errors:
Error | Solution |
"GOOGLE_SERVICE_ACCOUNT_KEY not found" | โข Check environment variable in mcp.jsonโข Ensure JSON is properly escaped |
"Permission denied" | โข Check service account access permissionsโข Ensure Google Sheets are shared with service account |
"Invalid credentials" | โข Check service account JSON fileโข Ensure Google Sheets API is enabled |
๐ Advantages Over Other Solutions
โ 40+ Advanced Tools - Most comprehensive Google Sheets MCP server
โ Complete Sheet Management - Full control over sheets (create, rename, hide, move, delete)
โ Enhanced Chart Creation - Create charts with data, from tables, update dynamically
โ Professional Formatting - Colors, fonts, borders, conditional formatting
โ Data Validation - Set rules and protect sensitive data
โ Batch Operations - High-performance multiple operations
โ Sheet Information - Get detailed properties and status of all sheets
โ Performance Optimized - Efficient API usage and batch processing
๐ License
MIT License - See LICENSE file for details.
๐ค Contributing
All contributions are welcome! Please:
๐ด Fork the project
๐ฟ Create a feature branch (
git checkout -b feature/AmazingFeature)๐พ Commit your changes (
git commit -m 'Add some AmazingFeature')๐ Push to the branch (
git push origin feature/AmazingFeature)๐ Open a Pull Request
๐ Support
If you encounter issues:
๐ Check Issues first
๐ Create a new issue if none exists
๐ Describe the problem in detail and how to reproduce it
โญ Star the Project
If this project is helpful, please give it a star! โญ
Made with โค๏ธ by Longtran2404
๐ Now with 40+ Tools for Complete Google Sheets Management! ๐
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Longtran2404/mcp-google-sheets'
If you have feedback or need assistance with the MCP directory API, please join our Discord server