Google Sheets MCP Server

Productivitystdiov0.3.0
代码仓库

MCP server for Google Sheets. Lets AI agents read and write cell ranges, create and update spreadsheets and tabs, append rows, and apply formatting via the Sheets API with OAuth. Useful for lightweight data entry, reporting, dashboards, and automating spreadsheet-driven workflows.

连接

将此配置添加到 .claude/mcp.json

{
  "mcpServers": {
    "google-sheets": {
      "command": "uvx",
      "args": [
        "mcp-google-sheets"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>"
      }
    }
  }
}

工具 (2)

read_range

Read values from a range in a Google spreadsheet.

{
  "type": "object",
  "required": [
    "spreadsheet_id",
    "range"
  ],
  "properties": {
    "range": {
      "type": "string",
      "description": "A1 notation range (e.g., Sheet1!A1:C10)"
    },
    "spreadsheet_id": {
      "type": "string",
      "description": "The spreadsheet ID"
    }
  }
}

update_range

Write values to a range in a Google spreadsheet.

{
  "type": "object",
  "required": [
    "spreadsheet_id",
    "range",
    "values"
  ],
  "properties": {
    "range": {
      "type": "string",
      "description": "A1 notation range to write"
    },
    "values": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {}
      },
      "description": "2D array of cell values"
    },
    "spreadsheet_id": {
      "type": "string",
      "description": "The spreadsheet ID"
    }
  }
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
Xing Xing (@xing5)
代码仓库
https://github.com/xing5/mcp-google-sheets
许可证
MIT
版本
0.3.0
星标
680
最后更新
2026年7月9日