excel-mcp

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

A Windows skill for automating Microsoft Excel workbooks through Model Context Protocol. It supports workbook data, formulas, formatting, tables, charts, PivotTables, Power Query, and other Excel features.

In plain words
What is it for?
Opening or creating workbooks, writing and formatting data, building tables and charts, managing formulas and analysis features, and saving files.
Why use it?
It lets an assistant perform structured spreadsheet work through tools instead of editing cells manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Opening or creating workbooks, writing and formatting data, building tables and charts, managing formulas and analysis features, and saving files.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sbroenne/mcp-server-excel/excel-mcp.svg)](https://agentmods.dev/skills/sbroenne/mcp-server-excel/excel-mcp)
Your own site
<a href="https://agentmods.dev/skills/sbroenne/mcp-server-excel/excel-mcp"><img src="https://agentmods.dev/badge/skills/sbroenne/mcp-server-excel/excel-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,065 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 30 Apr 2026
  • Snyk warn 30 Apr 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.00106 $0.02065
Opus 5 $0.00053 $0.01033
Sonnet 5 $0.00021 $0.00413
Haiku 4.5 $0.00011 $0.00206

Measured 4d ago against content hash 08d5bdf17013, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

excel-mcp 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 4d 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-mcp/SKILL.md · 202 lines

How it starts

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

Excel MCP Server Skill

Provides 326 Excel operations via Model Context Protocol. The MCP Server hosts the ExcelMCP Service in-process and calls it directly for low-latency Excel automation. Tools are auto-discovered - this documents quirks, workflows, and gotchas.

Workflow Checklist

Step Tool Action When
1. Open file file open or create Always first
2. Create sheets worksheet create, rename If needed
3. Write data range set-values Always (2D arrays)
4. Format range set-number-format After writing
5. Structure table create Convert data to tables
6. Save & close file close with save: true Always last

Preconditions

  • Windows host with Microsoft Excel installed (2016+)
  • Use full Windows paths: C:\Users\Name\Documents\Report.xlsx
  • Excel files must not be open in another Excel instance

Calculation Mode Workflow (Batch Performance)

Use calculation_mode for bulk write performance optimization. When writing many values or formulas, disable auto-recalc to avoid recalculating after every cell:

1. calculation_mode(action: 'set-mode', mode: 'manual')  → Disable auto-recalc
2. Perform all writes (range set-values, set-formulas)
3. calculation_mode(action: 'calculate', scope: 'workbook')  → Recalculate once
4. calculation_mode(action: 'set-mode', mode: 'automatic')  → Restore default

Note: You do NOT need manual mode to read formulas - range get-formulas returns formula text regardless of calculation mode.

CRITICAL: Execution Rules (MUST FOLLOW)

Rule 1: NEVER Ask Clarifying Questions

STOP. If you're about to ask "Which file?", "What table?", "Where should I put this?" - DON'T.

Bad (Asking) Good (Discovering)
"Which Excel file should I use?" file(list) → use the open session
"What's the table name?" table(list) → discover tables
"Which sheet has the data?" worksheet(list) → check all sheets
"Should I create a PivotTable?" YES - create it on a new sheet

Read the full file on GitHub · 202 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. 4d ago Changed 08d5bdf17013
  2. 8d ago First seen · 202 lines · 106 tokens per session scan A 67acc774c330

Subscribe to this mod's changes

excel-mcp is a skill published in the GitHub repository sbroenne/mcp-server-excel (669 stars, last pushed today), licensed MIT. It adds 106 tokens to every session and 2,065 once invoked, about $0.0005 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