Skip to main content
Glama
mkummer225

Google Sheets MCP

by mkummer225

Google 表格 MCP

Google Sheets 的模型上下文协议 (MCP) 连接器允许 AI 代理直接与电子表格交互。

演示

https://github.com/user-attachments/assets/cc4729d9-4e6e-437b-848b-6da9a09418c3

Related MCP server: Google Sheets MCP

设置

  1. 克隆此存储库:

git clone https://github.com/mkummer225/google-sheets-mcp
cd google-sheets-mcp
  1. 安装依赖项: npm install

  2. 构建: npm run build

  3. 在 Google Cloud Platform 中创建 OAuth 凭据:

  4. 启动 MCP 服务器(必要时会自动提示您验证/重新验证您的 Google 帐户): npm run start

用法

示例配置:

{
    "mcpServers": {
    "google-sheets-mcp": {
      "command": "node",
      "args": [
        "/{path_to_dir}/google-sheets-mcp/dist/index.js"
      ]
    }
  }
}

然后您应该能够简单地指定您的电子表格 ID 或让您的代理为您创建一个新的电子表格 ID。

可用操作

行动

描述

refresh_auth

凭据过期时重新验证您的 Google 帐户

list_sheets

列出 Google 电子表格中的所有工作表/标签

create_sheet

在 Google 电子表格中创建新的工作表/标签

create_spreadsheet

创建新的 Google 电子表格

read_all_from_sheet

读取指定工作表中的所有数据

read_headings

读取工作表中的列标题

read_rows

从工作表中读取特定行

read_columns

读取工作表中的特定列

edit_cell

编辑工作表中的单个单元格

edit_row

编辑工作表中的整行

edit_column

编辑工作表中的整列

insert_row

在指定位置插入新行

insert_column

在指定位置插入新列

rename_sheet

重命名电子表格中的工作表/标签

rename_doc

重命名 Google 电子表格

执照

麻省理工学院

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that integrates with Google Drive and Google Sheets, enabling users to create, read, update, and manage spreadsheets through natural language commands.
    24,952 PyPI
    1,011
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to interact directly with Google Sheets to create, read, and edit spreadsheets through the Model Context Protocol. It supports a wide range of actions including cell manipulation, row and column management, and sheet organization.
    578 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to read, write, and manage Google Sheets spreadsheets through natural language commands, providing a bridge between MCP clients and the Google Sheets API.
    424 npm
    1
    MIT