haris-musa/excel-mcp-server

Excel MCP server: let AI (Claude, Cursor, Codex) create and edit Excel files with charts, PivotTables, slicers and formulas. No Excel required.

What it solves

This project allows AI assistants like Claude, Cursor, and VS Code Copilot to interact directly with Excel files. It enables these AI tools to create, read, edit, and analyze spreadsheets—including complex elements like charts, PivotTables, and formulas—without requiring Microsoft Excel to be installed on your computer.

How it works

It acts as a Model Context Protocol (MCP) server. You run it locally or via a container, and it provides a set of tools that your AI client can call to manipulate .xlsx, .xlsm, .xltx, and .xltm files. It uses the openpyxl library to handle files and includes a built-in calculation engine that can process 479 Excel functions, allowing the AI to read and evaluate formulas even if the file hasn't been opened in Excel. For security, it runs locally, supports folder confinement, and includes built-in safety checks for formulas and file access.

Who it’s for

It is for developers and power users who want to integrate AI-driven data analysis, report generation, or spreadsheet automation into their existing AI-assisted coding or chat workflows.

Highlights

  • Comprehensive Excel Support: Create and edit charts, PivotTables, slicers, sparklines, and dynamic arrays.
  • Built-in Formula Engine: Calculate and evaluate formulas without needing the Excel application.
  • Performance-Optimized: Efficiently handles large files by streaming data and only parsing the specific rows being edited.
  • Secure by Design: Features optional folder confinement, read-only modes, and atomic saves to prevent data loss.
  • Flexible Integration: Works with major AI clients including Claude Desktop, Cursor, and GitHub Copilot via standard MCP configurations.

Related

  • Project
  • Project
  • Project
  • Project
  • Project