What Is Excel MCP Server?

Excel MCP Server is an MCP server maintained by haris-musa that exposes Excel file operations — reading, writing, formula handling, and chart creation — to Claude via the Model Context Protocol. It targets developers and analysts who need to automate spreadsheet workflows directly from Claude Desktop or Claude Code.


Quick Facts

FieldValue
Packagemcp-excel
Installnpx mcp-excel
Compatible withClaude Desktop, Claude Code
Statusactive
GitHubhttps://github.com/haris-musa/excel-mcp-server

What You Can Do With It

  • Spreadsheet analysis: Point Claude at an .xlsx file and ask it to summarize, filter, or inspect cell ranges and sheet structure.
  • Data transformation: Reshape tabular data across sheets — reordering columns, merging ranges, or reformatting values — without leaving your Claude session.
  • Formula generation: Have Claude write and insert Excel formulas (e.g., VLOOKUP, SUMIF, array formulas) directly into target cells.
  • Chart creation: Generate charts from existing data ranges and embed them into the workbook programmatically.

How to Set It Up

Step 1 — Verify Node.js is installed

node --version  # Requires Node.js 18+
**Step 2 — Test the server runs**

```bash
npx mcp-excel

Step 3 — Add to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent path on Windows:

{
  "mcpServers": {
    "excel": {
      "command": "npx",
      "args": ["mcp-excel"]
    }
  }
}

Step 4 — Add to Claude Code

Edit .claude/mcp.json in your project root, or use the global config at ~/.claude/mcp.json:

{
  "mcpServers": {
    "excel": {
      "command": "npx",
      "args": ["mcp-excel"]
    }
  }
}

Restart Claude Desktop or reload your Claude Code session after editing either config file.


Works Best With

Excel MCP Server is documented as compatible with Claude Desktop and Claude Code. Claude Desktop is the straightforward choice for one-off file analysis or formula work in a chat interface. Claude Code pairs well when Excel manipulation is part of a larger automation — for example, generating a report file as part of a build or data pipeline script. No other MCP clients are documented as tested or supported.


Known Limitations

  • Local files only: The server operates on files accessible from your local filesystem. It has no documented integration with SharePoint, OneDrive, or Excel Online.
  • No Microsoft 365 auth: There is no OAuth or Microsoft account authentication layer. Cloud-hosted workbooks are out of scope.
  • File format scope: The server targets .xlsx files. Compatibility with legacy .xls or macro-enabled .xlsm formats is not documented — test before relying on those formats in production.
  • No live recalculation: Formula values written by Claude are inserted as expressions; whether Excel recalculates them depends on your local Excel installation opening the file afterward.
  • npx cold-start latency: Running via npx downloads the package on first use if not cached. Pin a version in your config (npx mcp-excel@x.y.z) for reproducible behavior.

Community Resources

This article contains affiliate links. We may earn a commission at no extra cost to you. Learn more.

Share: X