simple-qqdocs-mcp
Operates Tencent Docs spreadsheet cells by reading boundaries, clicking, and inputting text via Playwright MCP, with caching options for efficiency.
README
simple-qqdocs-mcp
配合 Playwright MCP 操作腾讯文档表格(.excel-container>canvas)的简易 MCP 服务。
前置条件
- 用 Playwright MCP 打开
docs.qq.com/sheet表格页 - 浏览器开启 CDP,默认
http://127.0.0.1:9222 - 若遇代理报错,在 MCP 配置中设置
ALL_PROXY=""
安装与配置
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": ""
}
}
}
}
使用流程
- Playwright 打开腾讯文档表格
- 调用
refresh_grid_boundaries或直接使用默认工具(会自动重新识别网格) - 页面滚动/缩放后,优先用非
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 地址 |
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.