excel-cli — Claude Code skill: what it does, how to install
Launches the Excel CLI on Windows to read, write, calculate formulas, and refresh workbooks by attaching directly to desktop Excel sessions.
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a claude-codeWhat excel-cli does
The skill automates desktop Excel workbooks on Windows using the plugin launcher script start-cli.ps1, which runs npx -y @sbroenne/excelcli@latest. The tool is not placed on PATH. It handles standard spreadsheet operations, including reading cell ranges, inserting formulas, running data refreshes, and driving workbook automation.
Before opening a file, it runs session discover to locate running workbooks and attaches via session attach --workbook-id <ID>. This avoids reopening files and preserves unsaved edits along with existing AutoSave settings. If a wait period expires, the agent checks session list to inspect the task status rather than repeating the request.
You must run this under PowerShell 7.4 or later (pwsh) with Node.js 18+ and desktop Excel installed on Windows. Attempting to execute the launcher in legacy Windows PowerShell 5.1 will fail.
What it helps with
- read and modify cell values in desktop Excel workbooks
- attach to already-open workbooks using
workbookId - insert spreadsheet formulas and trigger data refreshes
- monitor long-running Excel operations with
session list
Example prompts for the agent
- Run session discover to find the open financial report workbook
- Attach to the active workbook using workbookId and refresh the data
- Check session list to see if the pending Excel calculation finished
How to install excel-cli
1Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a claude-code2Manually: put the files in place
~/.claude/skills/excel-cli/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/excel-cli/
1Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a codex2Manually: put the files in place
.agents/skills/excel-cli/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a cursor2Manually: put the files in place
.cursor/skills/excel-cli/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install sbroenne/mcp-server-excel excel-cli2Manually: put the files in place
.github/skills/excel-cli/SKILL.md1Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a gemini-cli2Platform CLI
gemini skills install https://github.com/sbroenne/mcp-server-excel --path skills/excel-cliManually: put the files in place
.devin/skills/excel-cli/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about excel-cli
How to install excel-cli in Claude Code?
Run npx skills add sbroenne/mcp-server-excel --skill excel-cli -a claude-code. You will need Windows with desktop Excel, Node.js 18+, and PowerShell 7.4+.
What does excel-cli do?
It discovers and launches the Excel CLI on Windows to read, write, and update Excel workbooks. It connects directly to open desktop sessions without reopening files.
Can excel-cli run under Windows PowerShell 5.1?
No. The launcher requires PowerShell 7.4 or later (pwsh). Running it under Windows PowerShell 5.1 is incompatible.
Source text
SKILL.md · MIT
--- name: excel-cli description: >- Discover and launch the Excel CLI for ordinary Excel workbook requests on Windows, including reads, writes, formulas, data refreshes, and workbook automation. Use the installed excel-cli plugin's npx launcher and native help to find commands; report presentation conventions are a separate optional skill. compatibility: Windows with desktop Excel, PowerShell 7.4 or later, Node.js 18 or later, and the excel-cli plugin. --- # Excel CLI discovery The plugin does not place `excelcli` on PATH. Its launcher runs `npx -y @sbroenne/excelcli@latest`; do not assume a standalone executable is installed or restore the retired GitHub-release downloader. For the plugin-bundled copy of this skill, `..\..\bin\start-cli.ps1` relative to the directory containing this `SKILL.md` locates the plugin launcher. Replace `<plugin-root>` below with that plugin's actual installed directory: Run these commands in PowerShell 7.4 or later (`pwsh`), not Windows PowerShell 5.1. ```powershell & "<plugin-root>\bin\start-cli.ps1" --help & "<plugin-root>\bin\start-cli.ps1" session --help ``` Use the same full launcher path for subsequent commands, especially quoted JSON arguments. Discover exact command names, flags, defaults, and save/close behavior through native `--help`; do not invent syntax. Inspect the existing workbook state relevant to the request. Preserve unrelated contents and save only the authorized result. If an operation fails, inspect its reported partial state rather than assuming rollback or automatically cleaning up. Before opening, run `session discover` to find an already-open workbook. Confirm the intended `workbookId`, then use `session attach --workbook-id <ID>` so the workbook is not reopened. Check discovery `complete` and `errors`; an incomplete scan cannot establish that a workbook is absent. Attach preserves unsaved edits and leaves the workbook open when the service exits. Its response reports the current AutoSave setting; open preserves it too. If enabled, Excel may save edits automatically. Normal service shutdown leaves unsaved owned workbooks open and visible without saving or discarding; save and close explicitly for completed jobs. If a wait expires, check `session list` for the operation's start time, pending work, and eventual outcome; do not automatically repeat it. Zero active requests does not mean Excel has finished. Inspect the workbook after completion. `service status` and `service stop` report recorded Excel copies from earlier services. Stopping an already-stopped service leaves those copies open, and they do not block a new service. `service stop` always stops the service; if a workbook was busy or its state could not be confirmed, that Excel copy is left as it is and reported in `shutdownWarning`. Use discovery and explicit attachment to inspect them; unknown or incomplete information is not permission to end Excel. For JSON errors, read `errorMessage` as the single error-text field; use `errorCategory` when present to guide recovery. Load `excel-cli-report-formatting` only for requested report presentation, not ordinary Excel reads or targeted updates.
© sbroenne · MIT · sbroenne/mcp-server-excel