Skip to main content
Glama
simple-qqdocs-mcp

simple-qqdocs-mcp

by thetime50

simple-qqdocs-mcp

配合 Playwright MCP 操作腾讯文档表格(.excel-container>canvas)的简易 MCP 服务。

前置条件

  1. 用 Playwright MCP 打开 docs.qq.com/sheet 表格页

  2. 浏览器开启 CDP,默认 http://127.0.0.1:9222

  3. 若遇代理报错,在 MCP 配置中设置 ALL_PROXY=""

Related MCP server: ExcelMCPAdvanced

安装与配置

pnpm install

在 Cursor / MCP 配置中注册(路径按实际修改):

{
  "mcpServers": {
    "simple-qqdocs": {
      "command": "node",
      "args": ["d:/1024/llm/simple-qqdocs-mcp/src/index.js"],
      "env": {
        "CDP_ENDPOINT": "http://127.0.0.1:9222",
        "ALL_PROXY": ""
      }
    }
  }
}

使用流程

  1. Playwright 打开腾讯文档表格

  2. 调用 refresh_grid_boundaries 或直接使用默认工具(会自动重新识别网格)

  3. 页面滚动/缩放后,优先用非 quick_* 工具,或先 refresh_grid_boundaries

工具选用

场景

推荐

常规操作

get_cell_bounds / click_cell / input_cell

用户明确要求 quick/快速/缓存

quick_get_cell_bounds / quick_click_cell / quick_input_cell

Tools

坐标与操作

Tool

说明

refresh_grid_boundaries

识别并刷新列标 ABCD、行标 1234 的边界缓存

get_cell_bounds

默认 获取单元格边界(每次重新识别)

quick_get_cell_bounds

用缓存快速获取边界

click_cell

默认 识别并点击单元格

quick_click_cell

用缓存快速点击

input_cell

默认 点击单元格并输入文本

quick_input_cell

用缓存快速输入

单元格引用:A1(单格)、A1:C2 或 A1C2(范围)

返回格式:

  • 单格 A1 → bounds: [[x1, x2], [y1, y2]]

  • 范围 A1:C2 → bounds: [[x1, x2, x3, x4], [y1, y2, y3]]

基础 / 调试

Tool

说明

get_canvas_snapshot

获取 canvas 截图(base64 PNG)

detect_grid

识别行标/列标区域与边界

recognize_cell_text

识别单元格文字,返回 { text, bcolor, fcolor }

环境变量

变量

默认

说明

CDP_ENDPOINT

http://127.0.0.1:9222

浏览器 CDP 地址

Available Tools

10 tools
click_cellA

【默认】识别单元格位置并点击(每次重新识别网格)

Inputs: ref (required).

detect_gridB

基础:识别行标/列标区域与 ABCD、1234 边界

Inputs: no named parameters.

get_canvas_snapshotA

获取 .excel-container>canvas 截图(base64 PNG)

Inputs: no named parameters.

get_cell_boundsA

【默认】获取单元格边界(每次重新识别网格)。单格 A1 返回 [[x1,x2],[y1,y2]];范围 A1C2 或 A1:C2 返回 [[x1,x2,...],[y1,y2,...]]

Inputs: ref (required).

input_cellA

【默认】点击单元格并输入文本(每次重新识别网格)

Inputs: ref (required), text (required).

quick_click_cellA

【仅用户明确要求 quick/快速时】使用缓存坐标点击单元格,不重新识别网格

Inputs: ref (required).

quick_get_cell_boundsA

【仅用户明确要求 quick/快速时】使用缓存坐标获取单元格边界,不重新识别网格

Inputs: ref (required).

quick_input_cellA

【仅用户明确要求 quick/快速时】使用缓存坐标点击并输入,不重新识别网格

Inputs: ref (required), text (required).

recognize_cell_textB

基础:识别单元格文字,返回 {text,bcolor,fcolor}(背景/反色不敏感)

Inputs: ref (required).

refresh_grid_boundariesB

识别并刷新表格 canvas 坐标边界缓存(列标 ABCD、行标 1234)

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose, with base tools and quick variants explicitly conditioned on user request. The descriptions precisely differentiate when to use each, eliminating ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case, with a uniform 'quick_' prefix for cached variants. No mixing of conventions.

    Tool Count5/5

    10 tools is well-scoped for interacting with a spreadsheet grid, covering detection, clicking, input, bounds, text recognition, and snapshot. Not too few nor too many.

    Completeness4/5

    Covers core cell operations (click, input, read text, grid detection) but lacks tools for range selection, formatting, or formula editing. Minor gap, but the set is functional for basic tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers