Excel MCP Server
Provides functionality to import Markdown tables into Excel workbooks, enabling the conversion of structured text data into calculated spreadsheet formats.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Excel MCP Server calculate the total for my expenses in budget.xlsx and return the result"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Excel MCP Server
A Model Context Protocol (MCP) server for Excel file manipulation with real-time formula calculation.
Why a Formula Engine?
Problem: Both humans and LLMs are inconsistent at math. When an AI writes =SUM(A1:A10) to a spreadsheet, it's just storing a string—the calculation never happens unless Microsoft Excel opens the file.
Solution: This MCP integrates HyperFormula, a headless spreadsheet engine that evaluates formulas in real-time. When you read a cell, you get the calculated result, not just the formula text.
write_cell(wb, "A1", 100)
write_cell(wb, "A2", 200)
write_cell(wb, "A3", "=SUM(A1:A2)")
read_cell(wb, "A3")
→ { calculatedValue: 300, formula: "=SUM(A1:A2)" }This ensures mathematical accuracy for:
Financial calculations
Data aggregations
Report generation
Any workflow where precision matters
Related MCP server: MCP Excel Server
Features
No Excel Required - Works with .xlsx files using pure JavaScript
400+ Excel Functions - SUM, AVERAGE, VLOOKUP, IF, and more via HyperFormula
Multi-Workbook - Open and manipulate multiple workbooks simultaneously
Tools (21 total)
Workbook Management
Tool | Description |
| Create new workbook in memory, returns ID |
| Open existing .xlsx file |
| Save workbook to disk |
| Close workbook and free memory |
| List all open workbooks |
Sheet Operations
Tool | Description |
| List all sheets in workbook |
| Add new sheet |
| Remove sheet |
| Rename sheet |
| Get dimensions and metadata |
Cell Operations
Tool | Description |
| Read cell value (returns calculated result) |
| Write value or formula (prefix with |
| Read range of cells |
| Write 2D array to range |
| List columns with headers |
Formula Support
Tool | Description |
| Get raw formula string from cell |
| Force recalculation of all formulas |
Charts & Pivot Tables
Tool | Description |
| Create bar, line, pie, or scatter chart |
| Remove chart |
| Create pivot table from data |
Import
Tool | Description |
| Import markdown table to Excel |
Installation
git clone https://github.com/jauinones/excel-mcp.git
cd excel-mcp
npm install
npm run buildConfiguration
Add to your Claude Code MCP settings (~/.claude.json):
{
"mcpServers": {
"excel": {
"type": "stdio",
"command": "node",
"args": ["/path/to/excel-mcp/dist/index.js"]
}
}
}Example Usage
// Create a simple invoice
create_workbook → "wb_1"
write_cell(wb_1, "Sheet1", "A1", "Item")
write_cell(wb_1, "Sheet1", "B1", "Price")
write_cell(wb_1, "Sheet1", "C1", "Qty")
write_cell(wb_1, "Sheet1", "D1", "Total")
write_range(wb_1, "Sheet1", "A2", [
["Widget", 25.00, 10, "=B2*C2"],
["Gadget", 15.50, 20, "=B3*C3"],
["Thing", 8.99, 50, "=B4*C4"]
])
write_cell(wb_1, "Sheet1", "D5", "=SUM(D2:D4)")
read_cell(wb_1, "Sheet1", "D5")
// → { calculatedValue: 1009.5, formula: "=SUM(D2:D4)" }
save_workbook(wb_1, "/path/to/invoice.xlsx")Tech Stack
TypeScript - Type-safe implementation
ExcelJS - Read/write .xlsx files
HyperFormula - Formula calculation engine (GPLv3)
MCP SDK - Model Context Protocol integration
License
GPLv3 (due to HyperFormula dependency)
Available Tools
21 toolsclose_workbookA
Close a workbook and free memory. Does not save automatically.
Inputs: workbookId (required).
create_chartC
Create a chart from data in a sheet
Inputs: type (required), sheet (required), dataRange (required), workbookId (required), +1 more.
create_pivot_tableB
Create a pivot table from source data. Creates a new sheet with the aggregated results.
Inputs: rowFields (required), dataFields (required), workbookId (required), sourceRange (required), +2 more.
create_sheetC
Create a new sheet in a workbook
Inputs: workbookId (required), name.
create_workbookA
Create a new Excel workbook in memory. Returns a workbook ID to use with other tools.
Inputs: no named parameters.
delete_chartC
Delete a chart by its title/name
Inputs: sheet (required), chartName (required), workbookId (required).
delete_sheetC
Delete a sheet from a workbook
Inputs: sheet (required), workbookId (required).
get_formulaA
Get the formula string from a cell (returns the formula itself, not the calculated result)
Inputs: cell (required), sheet (required), workbookId (required).
get_sheet_infoB
Get information about a sheet including dimensions and row/column counts
Inputs: sheet (required), workbookId (required).
import_markdown_tableB
Import a markdown table into an Excel workbook. Creates a new workbook or uses existing one.
Inputs: markdown (required), sheetName, workbookId.
list_columnsB
List columns with headers from the first row of a sheet
Inputs: sheet (required), workbookId (required).
list_sheetsB
List all sheets in a workbook with their names and indices
Inputs: workbookId (required).
list_workbooksA
List all currently open workbooks with their IDs and file paths
Inputs: no named parameters.
open_workbookC
Open an existing Excel file (.xlsx) from disk
Inputs: filePath (required).
read_cellC
Read the value from a single cell
Inputs: cell (required), sheet (required), workbookId (required).
read_rangeC
Read values from a range of cells
Inputs: range (required), sheet (required), workbookId (required).
recalculateB
Force recalculation of all formulas in a workbook using HyperFormula engine
Inputs: workbookId (required).
rename_sheetC
Rename a sheet in a workbook
Inputs: sheet (required), newName (required), workbookId (required).
save_workbookA
Save a workbook to disk. If filePath is not provided, saves to the original location.
Inputs: workbookId (required), filePath.
write_cellA
Write a value or formula to a cell. Values starting with '=' are treated as formulas.
Inputs: cell (required), sheet (required), value (required), workbookId (required).
write_rangeC
Write a 2D array of values to a range starting at a specific cell
Inputs: sheet (required), values (required), startCell (required), workbookId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Tools are mostly distinct along resource+action lines (workbook/sheet/cell/range/chart/pivot). Minor overlap exists between read_cell, read_range, list_columns, and get_sheet_info, and between get_formula and read_cell, but descriptions clarify value-vs-formula semantics enough to avoid most misselection.
Nearly every tool follows a clean snake_case verb_noun pattern (create_workbook, open_workbook, write_range, delete_sheet, create_pivot_table). The lone verb-only 'recalculate' is still unambiguous and readable.
21 tools sits at the upper edge but each maps to a concrete Excel operation with little redundancy. The set is slightly heavy but reasonably scoped for a spreadsheet automation server.
Workbook lifecycle (create/open/save/close/list), sheet CRUD, cell/range read-write, formulas, charts, pivots, and markdown import are all covered. Gaps include cell formatting/styling, row/column insert-delete, chart listing/update, and pivot table deletion, which agents would need to work around.
Maintenance
Related MCP Connectors
The Excel engine for AI agents: read, check and edit Excel models over MCP.
GrapeCity Software MCP for GcExcel docs, examples, and product assistance.
Screenshots, PDFs, image editing, QR codes, email validation and more through one hosted MCP server.
MCP server for Financial Modeling Prep API with 250+ financial data tools
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that provides comprehensive Excel file operations, data analysis, and visualization capabilities for working with various spreadsheet formats like XLSX, CSV, and JSON.852 PyPI95MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to automate Excel file operations including workbook creation, worksheet management, and data manipulation. It provides a standardized interface for reading, writing, merging, and filtering cell ranges within Excel documents.4-
- AlicenseNot gradedqualityDmaintenanceMCP server for reading and writing .xls (Excel 97-2003) files, enabling data manipulation, sheet listing, and metadata retrieval.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables creating, reading, and modifying Excel workbooks, including formulas, formatting, charts, and pivot tables, without requiring Microsoft Excel.MIT