excel-cli

excel-cli is a skill for Claude Code, Codex from sbroenne/mcp-server-excel. It costs 59 tokens per session (1,423 once invoked), scanned A, original, MIT.

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

Written for no agent in particular: nothing here depends on one.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sbroenne/mcp-server-excel/excel-cli
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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for excel-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/sbroenne/mcp-server-excel/excel-cli/github.svg)](https://agentmods.dev/skills/sbroenne/mcp-server-excel/excel-cli)
Your own site
<a href="https://agentmods.dev/skills/sbroenne/mcp-server-excel/excel-cli"><img src="https://agentmods.dev/badge/skills/sbroenne/mcp-server-excel/excel-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for excel-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/sbroenne/mcp-server-excel/excel-cli"><img src="https://agentmods.dev/badge/skills/sbroenne/mcp-server-excel/excel-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,423 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 29 Oct 2026
  • Snyk pass 29 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00059 $0.01423
Opus 5.5 $0.00024 $0.00569
Sonnet 5.5 $0.00012 $0.00285
Haiku 4.5 $0.00006 $0.00142

Measured 22d ago against content hash b66af66c9354, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 22d 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.

.github/plugins/excel-cli/skills/excel-cli/SKILL.md · 97 lines

How it starts

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

excelcli quick start

If excelcli is not on PATH, run this plugin's bin\start-cli.ps1 by its full path with the same arguments.

The routine: about three calls

  1. Open and look in one batch. Start the batch with session.open; later entries in the same batch use that workbook automatically. Read what you need to plan, such as sheet.list, table.list and range.get-used-range. The result of session.open gives the sessionId. Before editing, check its autoSaveOn and warning: Excel may save edits automatically.
  2. Change and check in one batch with --session <sessionId> --stop-on-error. Put the writes first, then reads of the cells you changed, so one result shows that the change worked.
  3. Save and close: session close --session <sessionId> --save, only after step 2's reads look right. Closing without --save discards only unsaved edits; it cannot undo changes already saved by AutoSave.

Pass the batch as a JSON array in a file with --input <file>. Direct excelcli calls also accept standard input (batch with no --input), but the PowerShell launcher requires --input <file>. Each entry is {"command":"group.action","args":{...}}. Argument names are case-sensitive camelCase. Put arrays and objects in as JSON, not as strings of JSON. Check every entry's success in the output; one failed entry does not undo the others.

[
  {"command":"session.open","args":{"filePath":"C:\\work\\prices.xlsx"}},
  {"command":"sheet.list"},
  {"command":"table.list"},
  {"command":"range.get-used-range","args":{"sheetName":"Prices"}}
]

Keep reads small: ask for the rows and columns you need, not a whole large sheet. Don't close and reopen the workbook to check your work; read it back in the same session.

Exact names for common actions

Only run <group> <action> --help for actions that are not listed here.

Command args
session.open filePath
session.close save (true/false)
sheet.list none
sheet.create sheetName
range.get-used-range sheetName
range.get-values sheetName, rangeAddress
range.get-formulas sheetName, rangeAddress
range.get-info sheetName, rangeAddress
range.set-values sheetName, rangeAddress, values (2D array), overwritePolicy
range.set-formulas sheetName, rangeAddress, formulas (2D array, each formula starts with =), overwritePolicy
range.set-number-format sheetName, rangeAddress, formatCode
rangeedit.fill sheetName, rangeAddress, direction, overwritePolicy
rangeedit.sort sheetName, rangeAddress, sortColumns ([{"columnIndex":1,"ascending":true}], 1-based within the range), hasHeaders
rangeformat.format sheetName, rangeAddresses (array), formatOptions (object: bold, fontColor, fillColor, numberFormat, horizontalAlignment, wrapText, borders, ...)
rangeformat.auto-fit-columns sheetName, rangeAddress
table.list none
table.read tableName
table.append tableName, rows (2D array)
tablecolumn.add-column tableName, columnName, position (1-based, optional)
tablecolumn.set-column-number-format tableName, columnName, formatCode
pivottable.list none
pivottable.read pivotTableName
pivottable.create-from-table tableName, destinationSheet, destinationCell, pivotTableName
pivottablefield.add-row-field pivotTableName, fieldName
pivottablefield.add-value-field pivotTableName, fieldName, aggregationFunction (Sum, Count, Average, Max, Min), customName
pivottablefield.set-field-format pivotTableName, fieldName, numberFormat
slicer.create-table-slicer tableName, columnName, slicerName, destinationSheet, position
slicer.set-table-slicer-selection slicerName, selectedItems (array)
slicer.create-slicer (PivotTable) pivotTableName, fieldName, slicerName, destinationSheet, position
slicer.set-slicer-selection (PivotTable) slicerName, selectedItems (array)
chart.create-from-range sheetName, sourceRangeAddress, chartType (e.g. ColumnClustered, Line, Pie, BarClustered), chartName, targetRange
chartconfig.set-title chartName, title
powerquery.list none
powerquery.view queryName
powerquery.update queryName, mCode, refresh
workbook.refresh-all timeoutSeconds (optional)
window.freeze-panes sheetName, frozenRows, frozenColumns

Read the full file on GitHub · 97 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. 22d ago Changed · -11 lines · +1 tokens per session b66af66c9354
  2. 1mo ago Changed · +53 lines af4d35243545
  3. 1mo ago Changed · +9 lines 2596abbccbb4
  4. 1mo ago Changed · +2 lines 490d2dc341d8
  5. 1mo ago Changed · +6 lines e7782aadd99f
  6. 1mo ago Changed · +1 lines 27ab25a98f7f
  7. 1mo ago Changed · -4 lines f31cdf01f041
  8. 1mo ago Changed · -177 lines · -56 tokens per session 6e18d5ac73bd
  9. 2mo ago Changed 3c653c9db5b1
  10. 3mo 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 (980 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 1,423 once invoked, about $0.0002 per session on Opus 5.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

excel-cli compared with skills from other repositories

excel-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
excel-clisbroenne/mcp-server-excelSkill980todayMITA59Claude Code, Codex
taskade-spreadsheet-to-apptaskade/mcpSkill1706d agoMITA145Claude Code
powerpoint-mcpsbroenne/mcp-server-powerpointSkill52todayMITA55Claude Code, Codex
powerpoint-clisbroenne/mcp-server-powerpointSkill52todayMITA55Claude Code, Codex
opendart-excelgyeongmin100/Open-Dart-PluginSkill01mo agoMITA70Claude Code
xlsxMarieLynneBlock/arcanum-artifexSkill52mo agononeA201Claude Code, Codex
apex-rfi-rfpjonathan-vella/apex-acceleratorSkill51yesterdayMITA115Claude Code