Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sbroenne avatar

Excel Mcp

  • 1.4k installs
  • 416 repo stars
  • Updated August 4, 2026
  • sbroenne/mcp-server-excel

excel-mcp is a Windows Excel MCP Server skill with 227 tools for workbook create, analyze, format, and VBA automation.

About

The excel-mcp skill documents the Excel MCP Server for Windows workbook automation with 227 operations forwarded through a shared ExcelMCP Service supporting session sharing with CLI. Workflow checklist covers file open or create, worksheet management, range set-values with 2D arrays, number formatting, table creation, and save close steps. Preconditions require Windows with Microsoft Excel 2016+, full Windows paths, and closed files in other Excel instances. Calculation mode workflow sets manual recalc during bulk writes then calculate workbook once for performance. Tools span Power Query M, Data Model DAX, PivotTables, charts, slicers, screenshots, VBA macros, and connections. Triggers include Excel, xlsx, Power Query, DAX, PivotTable, dashboard, and VBA keywords. Use when agents need rich MCP-driven Excel automation on Windows hosts.

  • 227 Excel MCP operations via shared ExcelMCP Service with CLI session sharing.
  • Workflow checklist from file open through range writes, tables, format, and save close.
  • Calculation mode manual recalc pattern for bulk write performance.
  • Supports Power Query, DAX, PivotTables, charts, slicers, and VBA macros.
  • Requires Windows host with Microsoft Excel 2016 or newer installed.

Excel Mcp by the numbers

  • 1,423 all-time installs (skills.sh)
  • +20 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #128 of 688 Office & Documents skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

excel-mcp capabilities & compatibility

Capabilities
227 excel mcp tool operations · range table chart and pivottable workflows · power query and dax model support · calculation mode bulk write optimization · vba macro and screenshot tools
Works with
excel
Use cases
orchestration · data analysis
Platforms
Windows
From the docs

What excel-mcp says it does

Provides 227 Excel operations via Model Context Protocol.
SKILL.md
Windows host with Microsoft Excel installed (2016+)
SKILL.md
npx skills add https://github.com/sbroenne/mcp-server-excel --skill excel-mcp

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.4k
repo stars416
Security audit1 / 3 scanners passed
Last updatedAugust 4, 2026
Repositorysbroenne/mcp-server-excel

How do agents create, modify, and analyze Excel workbooks with PivotTables, DAX, and Power Query via MCP?

Automate Windows Excel workbooks via MCP with 227 tools for ranges, PivotTables, Power Query, DAX, charts, and VBA.

Who is it for?

Developers on Windows automating Excel dashboards, PivotTables, and Power Query through MCP agents.

Skip if: Skip on macOS or Linux hosts without Windows Excel installed.

When should I use this skill?

User automates Excel xlsx workbooks, PivotTables, DAX, Power Query, charts, or VBA via MCP.

What you get

MCP-driven Excel workflows following open, write, format, table, and save-close checklist patterns.

  • Formatted Excel workbooks
  • PivotTables and DAX measures
  • Power Query queries

By the numbers

  • 227 Excel operations via MCP

Files

SKILL.mdMarkdownGitHub ↗

Excel MCP Server Skill

Provides 227 Excel operations via Model Context Protocol. The MCP Server forwards all requests to the shared ExcelMCP Service, enabling session sharing with CLI. Tools are auto-discovered - this documents quirks, workflows, and gotchas.

Workflow Checklist

StepToolActionWhen
1. Open filefileopen or createAlways first
2. Create sheetsworksheetcreate, renameIf needed
3. Write datarangeset-valuesAlways (2D arrays)
4. Formatrangeset-number-formatAfter writing
5. StructuretablecreateConvert data to tables
6. Save & closefileclose with save: trueAlways 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

You have tools to answer your own questions. USE THEM.

Rule 2: Always End With a Text Summary

NEVER end your turn with only a tool call. After completing all operations, always provide a brief text message confirming what was done. Silent tool-call-only responses are incomplete.

Rule 3: Format Data Professionally

Always apply number formats after setting values:

Data TypeFormat CodeResult
USD$#,##0.00$1,234.56
EUR€#,##0.00€1,234.56
Percent0.00%15.00%
Date (ISO)yyyy-mm-dd2025-01-22

Workflow:

1. range set-values (data is now in cells)
2. range set-number-format (apply format)

Rule 4: Use Excel Tables (Not Plain Ranges)

Always convert tabular data to Excel Tables:

1. range set-values (write data including headers)
2. table create tableName="SalesData" rangeAddress="A1:D100"

Why: Structured references, auto-expand, required for Data Model/DAX.

Rule 5: Session Lifecycle

1. file(action: 'open', path: '...')  → sessionId
2. All operations use sessionId
3. file(action: 'close', save: true)  → saves and closes

Unclosed sessions leave Excel processes running, locking files.

Rule 6: Data Model Prerequisites

DAX operations require tables in the Data Model:

Step 1: Create table → Table exists
Step 2: table(action: 'add-to-datamodel') → Table in Data Model
Step 3: datamodel(action: 'create-measure') → NOW this works

Rule 7: Power Query Development Lifecycle

BEST PRACTICE: Test-First Workflow

1. powerquery(action: 'evaluate', mCode: '...') → Test WITHOUT persisting
2. powerquery(action: 'create', ...) → Store validated query
3. powerquery(action: 'refresh', ...) → Load data

Why evaluate first:

  • Catches syntax errors and missing sources BEFORE creating permanent queries
  • Better error messages than COM exceptions from create/update
  • See actual data preview (columns + sample rows)
  • No cleanup needed - like a REPL for M code
  • Skip only for trivial literal tables

Common mistake: Creating/updating without evaluate → pollutes workbook with broken queries

Rule 8: Targeted Updates Over Delete-Rebuild

  • Prefer: set-values on specific range (e.g., A5:C5 for row 5)
  • Avoid: Deleting and recreating entire structures

Why: Preserves formatting, formulas, and references.

Rule 9: Follow suggestedNextActions

Error responses include actionable hints:

{
  "success": false,
  "errorMessage": "Table 'Sales' not found in Data Model",
  "suggestedNextActions": ["table(action: 'add-to-data-model', tableName: 'Sales')"]
}

Tool Selection Quick Reference

TaskToolKey Action
Create/open/save workbooksfileopen, create, close
Write/read cell datarangeset-values, get-values
Format cellsrangeset-number-format
Create tables from datatablecreate
Add table to Power Pivottableadd-to-data-model
Create DAX formulasdatamodelcreate-measure
Create PivotTablespivottablecreate, create-from-datamodel
Filter with slicersslicerset-slicer-selection
Create chartschartcreate-from-range
Control calculation modecalculation_modeget-mode, set-mode, calculate
Visual verificationscreenshotcapture, capture-sheet

Reference Documentation

See references/ for detailed guidance:

  • Core execution rules and LLM guidelines
  • Common mistakes to avoid
  • Bulk write performance optimization
  • Data Model constraints and patterns
  • Charts and formatting
  • Conditional formatting operations
  • Dashboard and report best practices
  • Data Model/DAX specifics
  • DMV query reference for Data Model analysis
  • Excel agent mode and advanced automation
  • Gotchas and known limits
  • Power Query M code syntax reference
  • PivotTable operations
  • Power Query specifics
  • Range operations and number formats
  • Screenshot and visual verification
  • Slicer operations
  • Table operations
  • Window and visibility operations
  • Worksheet operations

Related skills

How it compares

Pick excel-mcp for live Excel COM automation with PivotTables and DAX; pick Python pandas or CSV skills when you only need tabular analysis without an Excel desktop session.

FAQ

What platform does excel-mcp require?

Windows with Microsoft Excel 2016+ installed and full Windows file paths for workbook operations.

When should I use excel-mcp?

When MCP agents need rich Excel automation including ranges, tables, PivotTables, Power Query, DAX, or VBA.

Is excel-mcp safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.