excel-cli

A command-line tool skill for automating Microsoft Excel workbooks on Windows. It supports scripted and unattended workbook operations through Excel installed on the computer.

In plain words
What is it for?
Use it to create or modify sheets, ranges, tables, formulas, Power Query data, DAX calculations, and PivotTables when Excel 2016 or newer is available on Windows.
Why use it?
It removes the need to edit workbooks manually when tasks must run repeatedly, in bulk, or in automated jobs. It also makes Excel work easier to include in PowerShell and CI/CD workflows.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sbroenne/mcp-server-excel/excel-cli
Any agent
npx skills add sbroenne/mcp-server-excel --skill excel-cli
Clone the repo
git clone --depth 1 https://github.com/sbroenne/mcp-server-excel

Made for: Claude Code, Codex.

Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,636 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00114 $0.02636
Opus 5 $0.00057 $0.01318
Sonnet 5 $0.00023 $0.00527
Haiku 4.5 $0.00011 $0.00264

Measured 3d ago against content hash acee04e670dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

excel-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/excel-cli/SKILL.md · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Excel Automation with excelcli

Preconditions

  • Windows host with Microsoft Excel installed (2016+)
  • Uses COM interop — does NOT work on macOS or Linux
  • Every command below invokes excelcli directly, so it must resolve on PATH. Installing the excel-cli plugin does not put it there — the global shim is opt-in. Run com.github.copilot\bin\install-global.ps1 from the installed plugin folder once (it writes excelcli.cmd / excelcli.ps1 into ~\.copilot\bin and adds that to your user PATH), or install the runtime independently via the standalone release zip or dotnet tool install --global Sbroenne.ExcelMcp.CLI. If excelcli is not found, report that and stop — do not guess at a path.
  • In an Agent Plugins host, the runtime is downloaded and cached under PLUGIN_DATA\runtime; release freshness is checked once per Copilot session. The optional global shim falls back to ~\.copilot\plugin-runtime\mcp-server-excel\excel-cli and checks for updates at most once every 24 hours.

Workflow Checklist

Step Command When
1. Session session create/open Always first
2. Sheets sheet create/rename If needed
3. Write data See below If writing values
4. Save & close session close --save Always last

10+ commands? Use excelcli -q batch --input commands.json — sends all commands in one process with automatic session management. See Rule 8.

Writing Data (Step 3):

  • --values takes a JSON 2D array string: --values '[["Header1","Header2"],[1,2]]'
  • Write one row at a time for reliability: --range A1:B1 --values '[["Name","Age"]]'
  • Strings MUST be double-quoted in JSON: "text". Numbers are bare: 42
  • Always wrap the entire JSON value in single quotes to protect special characters

CRITICAL RULES (MUST FOLLOW)

⚡ Building dashboards or bulk operations? Skip to Rule 8: Batch Mode — it eliminates per-command process overhead and auto-manages session IDs.

Read the full file on GitHub · 218 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 218 lines · 114 tokens per session scan A acee04e670dd

Subscribe to this mod's changes

excel-cli is a skill published in the GitHub repository sbroenne/mcp-server-excel (645 stars, last pushed 3d ago), licensed MIT. It adds 114 tokens to every session and 2,636 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

automating-excel

Automates Microsoft Excel on macOS via JXA with AppleScript dictionary discovery. Use when asked to "automate Excel spreadsheets", "JXA Excel scripting", "Excel macOS automation", or "bulk Excel data operations". Focuses on workbooks, worksheets, ranges, 2D arrays, performance toggles, and VBA escape hatches.

SpillwaveSolutions/automating-mac-apps-plugin · 75 tokens

bilig-xlsx-formula-recalc

Recalculate XLSX formula outputs in Node.js after cell edits without opening Excel, LibreOffice, or browser automation.

proompteng/bilig · 32 tokens

powerpoint-cli

PowerPoint CLI automation skill for Windows presentations. Use when a coding agent needs token-efficient, scriptable, or unattended PowerPoint automation via pptcli commands. Best for CI/CD, scheduled jobs, batch processing, PowerShell workflows, and bulk deck edits. Supports slides, shapes, text frames, tables…

sbroenne/mcp-server-powerpoint · 122 tokens

exceljs-formula-recalc

Recalculate formula outputs for ExcelJS workbook flows in Node.js after agents or services edit cells.

proompteng/bilig · 26 tokens

sheetjs-formula-recalc

Add fresh formula readback to SheetJS and xlsx workflows after writing XLSX inputs in Node.js.

proompteng/bilig · 28 tokens

powerpoint-mcp

PowerPoint MCP Server skill for Windows presentation automation via a live PowerPoint desktop instance (COM/PIA). Use when an assistant needs rich MCP tools to create, open, build, format, and export PowerPoint (.pptx/.pptm) presentations — slides, shapes, text boxes, tables, native charts, images, audio, video…

sbroenne/mcp-server-powerpoint · 112 tokens