A full-featured CLI for automating Excel on Windows with 50+ commands covering everything from basic range operations to Power Query, DAX measures, and pivot tables. The batch mode is the standout feature here: when you need to execute 10+ operations, you can send them all in one process launch instead of spawning Excel repeatedly. It's token-efficient by design, which matters for coding agents hitting context limits. The workflow is COM-based so it only works on Windows, but if you're already in that environment and need scriptable Excel for CI/CD pipelines or scheduled jobs, this beats opening the GUI or wrestling with openpyxl's limitations on complex workbooks.

skills.sh installs
1K
GitHub stars
878
last updated
Aug 21, 2026

Install

$ npx -y skills add sbroenne/mcp-server-excel --skill excel-cli --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Sponsors

Details

Repository
github.com/sbroenne/mcp-server-excel
Categories
Backend & APIs, DevOps & CI/CD, AI & Agent Building, Automation & Workflows, CLI & Terminal, Office & Documents
First seen
Apr 16, 2026

More from sbroenne/mcp-server-excel

All 2
1figma avatarcode-connect-componentsfigma/mcp-server-guideConnects Figma design components to code components using Code Connect. Use when user says "code connect", "connect this component to code", "connect Figma to c870skills.sh installs
2supabase avatarskill-creatorsupabase/agent-skillsGuide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabil691skills.sh installs
3payloadcms avatargenerate-translationspayloadcms/payloadUse when new translation keys are added to packages to generate new translations strings578skills.sh installs
4figma avatarfigma-code-connect-componentsfigma/mcp-server-guideConnects Figma design components to code components using Code Connect mapping tools. Use when user says "code connect", "connect this component to code", "map 330skills.sh installs
5firebase avatardeveloping-genkit-dartfirebase/skillsdeveloping genkit dart329skills.sh installs
6payloadcms avatartriage-ci-flakepayloadcms/payloadUse when CI tests fail on main branch after PR merge, when investigating flaky test failures, or when user provides a PR URL/number to aggregate all failing tes307skills.sh installs