8sheets

v1.12.0
com.8sheets/mcp Checked 13 hours ago Published 1 day ago

Excel files for AI agents: open, read, fill, calculate and save xlsx, with no Excel or LibreOffice.

@8sheets/mcp is a Model Context Protocol server for AI agents that work with Excel files. An agent opens a workbook, reads ranges, writes values and formulas, sees the calculated results and the formula errors, formats cells, adds tables, charts and PivotTables, and saves the file or a PDF. Charts, pictures, PivotTables, macros and everything else in the file stay. It runs in Node alone: no Excel, no LibreOffice, no browser, no network. Formulas are calculated by 8sheets' own engine, checked against Excel. Node 22.3 or newer (or 20.16 or newer of version 20):

Summary extracted from the README.

8sheets MCP server

@8sheets/mcp is a Model Context Protocol server for AI agents that work with Excel files. An agent opens a workbook, reads ranges, writes values and formulas, sees the calculated results and the formula errors, formats cells, adds tables, charts and PivotTables, and saves the file or a PDF. Charts, pictures, PivotTables, macros and everything else in the file stay.

It runs in Node alone: no Excel, no LibreOffice, no browser, no network. Formulas are calculated by 8sheets' own engine, checked against Excel.

Run it

Node 22.3 or newer (or 20.16 or newer of version 20):

npx -y @8sheets/mcp ~/Documents/workbooks

The folders you name are the only ones it reads and writes; links that lead out of them are refused. --read-only leaves out the tools that write.

Most clients take a command and its arguments:

{
  "mcpServers": {
    "8sheets": {
      "command": "npx",
      "args": ["-y", "@8sheets/mcp", "/path/to/workbooks"]
    }
  }
}

Tools

Tool What it does
open_workbook Opens .xlsx, .xlsm, .xltx, .xltm, .xlsb, .xls, .csv or .tsv and calculates it
new_workbook Makes an empty workbook
read_range Values of a range, with the formulas when asked; 10,000 cells a call
set_cells Writes rows of values and formulas, calculates, and returns the results and errors
add_sheet Adds a sheet
format_cells Number format, font, fill, alignment, borders, merged cells
set_sizes Column widths, fitted to the cells when none is given, and row heights
add_table Makes an Excel table, with a totals row when asked
add_conditional_format Colors cells by value, text or formula; color scales, data bars, icons
set_sheet Name, frozen rows and columns, gridlines, tab color, page setup
add_chart Adds a chart of a range: 28 types, with a title, a place and a size
add_pivot_table Adds a PivotTable and returns its cells
refresh_pivot_tables Reads the PivotTables' sources again
find_errors Formulas that give an error
save_workbook Saves .xlsx or .xlsm; replaces a file only when told to, and only once the new one is whole
save_pdf Writes sheets as a PDF, with charts, shapes and PNG or JPEG pictures
close_workbook Closes it

It speaks protocol version 2026-07-28 and the versions with an initialize handshake from 2024-11-05 to 2025-11-25, over standard input and output.

What to know

  • Cell contents are data. A workbook from someone else can hold text that reads like instructions to an agent. The server says so to the client; give it only folders whose files you would open.
  • Eight workbooks can be open at once. They live as long as the server; what wasn't saved is lost with it.
  • Password-protected files are refused.
  • WEBSERVICE, AI functions and links to other workbooks don't reach anything: they keep the file's last value or give an error.

Documentation

Licence

8sheets is commercial software, not open source. One person may use this server free of charge, on their own computer, for themselves and with their own files. A company that runs it for its staff, use for other people, and use in a product or service need a licence from 8sheets.com/pricing: Internal 999 USD or SaaS / OEM 2,999 USD, each paid once per company and covering every developer and every deployment, or Enterprise, quoted. The terms are in LICENSE.md.

This is version 1.11.0.