
Excel Mcp
io.github.wesseltl由 GitHub 账号 wesseltl 发布v0.1.2更新于 Oct 24, 2026
Read real, messy Excel files from an agent: multiple sheets, title rows, merged cells.
概览
本地 MCP 服务器,让助手以确定性的方式读取真实而杂乱的 Excel 工作簿(多工作表、标题行、合并单元格),得到精确数据。
- 可以做什么
- 列出工作簿中的每个工作表及其大小
- 以网格形式预览工作表顶部若干行,查看布局
- 把工作表的实际数据表读取为记录,并给出表头识别来源与置信度
- 把工作表的数据表导出为干净的 CSV 文本
- 适用场景
- 当助手需要回答关于用户本机 .xlsx 文件的问题时适用,尤其是表格并非从 A1 开始、表头上方有标题行或使用合并单元格、直接粘贴到提示词里会让模型靠猜的情况。
- 运行要求
- 作为本地 stdio 进程运行,从 PyPI 包 excel-agent-mcp(含 mcp 附加依赖)安装,并以 excel-agent-mcp 命令启动;需在 Claude Desktop、Cursor、VS Code/Copilot、Windsurf 或 Cline 等 MCP 客户端中配置。未声明账号或 API 密钥。可选设置 EXCEL_MCP_ALLOWED_DIR 将文件访问限制在某个文件夹内。
安装
在 SourceWeft 中
- 打开 控制台中的 Excel Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
excel-mcp
Let your AI agent read real, messy Excel files. An MCP server that handles the things LLMs choke on: multiple sheets, title rows sitting above the actual table, and merged cells.
If you paste a spreadsheet into a prompt, the model has to guess where the data starts and what the merged cells mean, and it often gets it wrong. This reads the file properly with deterministic code, so the values are exact and the model never invents cell contents.
The problem it solves
A real spreadsheet almost never starts cleanly at cell A1:
Ask an LLM to read that and it'll often treat the title as a column. read_table auto-detects that
the header is on row 4 and returns clean records. Merged cells (a value spanning several rows) get
forward-filled, so rows don't lose their category.
The tools it gives an agent
Getting started (Claude Desktop)
The fastest way to use this is with an MCP client like Claude Desktop. Three steps:
1. Install it
2. Add it to your client's config
Claude Desktop's config lives here:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server:
3. Restart Claude Desktop. You'll see a tools icon appear, meaning the server is connected.
That's it. Now ask about any .xlsx file on your machine:
The agent reads the real file instead of guessing, so the numbers are exact.
Restricting file access: to stop the agent reading anything outside one folder, set
EXCEL_MCP_ALLOWED_DIR. See SECURITY.md.
Use it with other MCP clients
The same server works in any MCP client, only the config differs. Use excel-agent-mcp as the command.
Cursor — ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Same shape as Claude
Desktop, and it hot-reloads (no restart):
VS Code / GitHub Copilot — .vscode/mcp.json. Note the different key (servers, not mcpServers)
and the required type. Tools only run in Copilot Agent mode:
Windsurf — ~/.codeium/windsurf/mcp_config.json (create it if missing). Same shape as Claude
Desktop:
Cline — add it from the extension's MCP settings panel in VS Code (command: excel-agent-mcp).
Understanding the output
read_table doesn't just return the data, it tells you how confident it is, so you can trust a clean
parse and double-check a guess:
header_source—"explicit"if you told it which row is the header,"auto-detected"if it guessed.header_confidence—0..1for an auto-detected header. A low value means it was a close call; if the result looks off, pass an explicitheader_row.looks_clean+table_warnings— a verdict on the table as a whole (flags low header confidence, unnamed columns, mostly-empty tables), separate from the per-column signals below.forward_filled_columns— columns whose values came from a merged cell. Those values are inferred (copied down to fill the block), not read cell-by-cell, so treat them accordingly.
The idea: surface the decisions that could be wrong, instead of handing back tidy-looking output that hides a guess.
Also usable from plain Python
Tests
License
MIT
来源:README.md,提交 87abfc9
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分