Back to MCP Servers
Google Sheets MCP logo
mcp-server344

Google Sheets MCP

Google Sheets MCP 是一个基于 Python 的 MCP 服务器,可将 AI 代理和 LLMs(如 Claude Desktop)连接到 Google Sheets API,让您能够直接从 AI 工作流中,以自然语言创建、读取、更新和管理电子表格。

概述

Google Sheets MCP 是一个开源的 模型上下文协议(MCP) 服务器,充当大语言模型与 Google Sheets 之间的安全桥梁。它允许 AI 代理通过可发现的工具,以编程方式与您的 Google Drive 电子表格进行交互,并使用 OAuth 认证确保安全访问。

该工具已有多种语言的热门实现,例如 Python (xing5/mcp-google-sheets)、TypeScript 等,使其能够轻松与 Claude Desktop、Cursor 等客户端集成。

功能特性

  • 完整电子表格操作:创建新电子表格、添加/删除工作表、读取单元格范围、更新数据。
  • 数据操作:追加行、批量更新、格式化、排序及支持公式。
  • Google Drive 集成:在您的 Drive 中列出、搜索和管理电子表格。
  • 多工作表支持:可无缝跨多个标签页和工作表进行操作。
  • 分析与查询:部分变体支持通过对话进行数据分析(例如,“按收入排名的前10位客户是谁?”)。
  • MCP 标准兼容:暴露与任何 MCP 客户端兼容的工具和提示。
  • 安全认证:使用 Google OAuth2 凭据确保 API 访问安全。

使用场景

  • 自动化报告:让您的 AI 从各种来源提取数据,并在 Google Sheets 中填充动态仪表板。
  • 数据录入与管理:让 AI 直接在电子表格中处理表单回复、库存跟踪或 CRM 更新。
  • 对话式分析:用自然语言提问您的数据,获取洞察或更新后的工作表。
  • 工作流自动化:与其他 MCP 服务器(例如浏览器或数据库工具)结合,实现端到端的 AI 驱动流程。
  • 持久化存储:将 Sheets 用作多代理系统和 AI 助手的长期存储或记忆。
  • 无代码/低代码集成:为业务用户构建智能助手,无需编写复杂的脚本。

工作原理

该服务器可在本地或远程运行,并通过 OAuth 与您的 Google 账户进行认证。它暴露一组 MCP 工具(例如 create_spreadsheetread_rangeupdate_cells),AI 模型可以发现并调用这些工具。响应以适合 LLM 的结构化格式返回,确保敏感数据安全地保留在您的 Google 账户内。

快速开始

  1. 克隆热门仓库,例如 git clone https://github.com/xing5/mcp-google-sheets
  2. 设置 Google Cloud 凭据(为 Sheets 和 Drive APIs 配置 OAuth 客户端)。
  3. 安装依赖项(对于 Python 版本,运行 pip install -r requirements.txt)。
  4. 配置并运行 MCP 服务器
  5. 将服务器添加到您的 MCP 客户端(如 Claude Desktop、Cursor 等),使用提供的配置。

社区还有许多分支和变体版本,提供了额外的功能,如图表创建或高级分析。

相关资源

  • 其他实现方案:mkummer225/google-sheets-mcp、shionhonda/mcp-gsheet 等。
  • 商业/无代码方案:Pipedream、Merge.dev、Zapier MCP 和 CData 连接器。
  • 社区讨论(Reddit 上的 r/ClaudeAI、r/mcp 子版块)以及构建自定义变体的教程。

Google Sheets MCP 将您熟悉的电子表格转化为强大、AI 原生的数据工具,开启全新的生产力与自动化水平。

Tags

mcpmcp服务器google-sheetsgoogle-drivepythonai代理自动化电子表格数据api

Related Entries

Keep exploring similar tools and resources in this category.

Browse MCP Servers
TinyFish logo

TinyFish

MCP Servers

TinyFish 是一个面向AI代理的Web基础设施平台,集成了实时网络搜索、基于浏览器渲染的内容提取、基于目标的网页自动化以及云端浏览器会话管理。开发者可以通过API、SDK、CLI以及与代理框架和AI编程工具的集成来访问该平台。

DataForSEO MCP Server logo

DataForSEO MCP Server

MCP Servers

DataForSEO MCP Server is the official Model Context Protocol server for connecting AI clients to DataForSEO SEO, SERP, keyword, backlink, on-page, business, domain, content, merchant, and AI optimization data. It can be used as a hosted Streamable HTTP endpoint, a local npx package, a Docker container, or a source-built TypeScript server.

Ahrefs mcp logo

Ahrefs mcp

MCP Servers

Ahrefs MCP is the official hosted MCP server for connecting AI assistants to live Ahrefs SEO, backlink, keyword, rank tracking, site audit, and brand visibility data. It uses the remote Ahrefs MCP endpoint with OAuth or MCP-key authorization and is available on paid Ahrefs plans starting from Lite.

GitHub Copilot Coding Agent logo

GitHub Copilot Coding Agent

MCP Servers

GitHub Copilot Coding Agent, now documented as Copilot cloud agent, is GitHub's asynchronous software development agent for researching repositories, planning changes, editing code on branches, and opening pull requests for review. It runs in a GitHub Actions-powered environment and can be started from GitHub, supported IDEs, GitHub CLI, the REST API, integrations, or the GitHub MCP Server.

Agent Reach logo

Agent Reach

MCP Servers

Agent Reach is an open-source CLI and Agent Skill that installs, routes, and health-checks upstream tools for web, social, GitHub, video transcript, RSS, and search access. It is not documented as a standalone MCP server; some channels use MCP-backed upstream tools such as mcporter/Exa, xiaohongshu-mcp, and linkedin-scraper-mcp.

TinyFish logo

TinyFish

MCP Servers

TinyFish 为兼容 MCP 的 AI 助手提供网络自动化、网络搜索、内容提取和远程浏览器会话工具。托管的 MCP 服务器使用 OAuth 2.1,而可选的本地 @tiny-fish/mcp 代理支持仅本地、CI 和无头环境下的 API 密钥认证。