MCP server for Excel file manipulation with real-time formula calculation using HyperFormula.
Configuration
View docs{
"mcpServers": {
"jauinones-xlsx-mcp": {
"command": "node",
"args": [
"/path/to/excel-mcp/dist/index.js"
]
}
}
}You run an MCP server that manipulates Excel workbooks and evaluates formulas in real time using a headless engine. This lets you read calculated results directly from cells, perform multi‑workbook operations, and generate accurate spreadsheets without opening Excel.
You interact with the Excel MCP Server through an MCP client. Use the provided tools to create and manage workbooks, manipulate sheets, and read or write cell data. The server returns the calculated result for reads, so you always get the actual value of formulas like =SUM(A1:A2) when reading a cell. You can chain operations to build invoices, reports, or data pipelines that depend on precise mathematical calculations.
Key usage patterns you can perform:
When you read a formula cell, you receive an object that includes calculatedValue and formula, ensuring you have both the computed result and the original formula for auditing.
Real-time formula evaluation enables precise financial calculations, accurate data aggregations, and reliable report generation. You no longer need to export to a spreadsheet app to verify results, since the MCP server returns the calculated outcomes directly.
1) Create a workbook and define headers and data.
2) Write a range with mixed values and formulas.
3) Read a summary cell to confirm the calculated total.
4) Save the workbook to disk for persistence.
Create a new workbook in memory and return its ID for subsequent operations.
Open an existing .xlsx file so you can manipulate its sheets and cells.
Save the current workbook to disk, persisting changes.
Close a workbook and free the memory it used.
List all workbooks that are currently open in the MCP server.
List all sheets within a given workbook.
Add a new sheet to a workbook.
Remove a sheet from a workbook.
Rename an existing sheet.
Retrieve dimensions and metadata for a sheet.
Read a cell’s value and receive the calculated result along with the formula.
Write a value or a formula to a cell (prefix formulas with =).
Read a rectangular range of cells and return their calculated results.
Write a 2D array to a range of cells in a sheet.
List columns with headers for quick navigation.
Get the raw formula string from a cell without evaluating it.
Force a recalculation of all formulas across the workbook.
Create charts (bar, line, pie, scatter) from data.
Remove a chart from a sheet.
Create a pivot table from a data range.
Import a markdown table directly into an Excel worksheet.