agent-spreadsheet
v0.10.1
Published
Stateless spreadsheet CLI for AI agents — read, profile, edit, and diff .xlsx workbooks from the command line
Maintainers
Readme
agent-spreadsheet
Stateless spreadsheet CLI for AI agents. This npm package downloads a prebuilt native binary for your platform — no Rust toolchain required.
Part of the spreadsheet-kit workspace.
Install
npm i -g agent-spreadsheet
agent-spreadsheet --helpQuickstart
# List sheets in a workbook
agent-spreadsheet list-sheets data.xlsx
# Read a table as structured JSON
agent-spreadsheet read-table data.xlsx --sheet "Sheet1"
# Profile column types and cardinality
agent-spreadsheet table-profile data.xlsx --sheet "Sheet1"
# Edit → diff workflow
agent-spreadsheet copy data.xlsx /tmp/draft.xlsx
agent-spreadsheet edit /tmp/draft.xlsx Sheet1 "B2=500" "C2==B2*1.1"
agent-spreadsheet diff data.xlsx /tmp/draft.xlsxAll commands output JSON to stdout. Use --compact to minimize whitespace.
For CSV, use command-specific options such as read-table --table-format csv.
Platform support
Prebuilt binaries are downloaded on npm install for:
| Platform | Architecture | Asset |
| --- | --- | --- |
| Linux | x86_64 | agent-spreadsheet-linux-x86_64 |
| macOS | x86_64 | agent-spreadsheet-macos-x86_64 |
| macOS | arm64 (Apple Silicon) | agent-spreadsheet-macos-aarch64 |
| Windows | x86_64 | agent-spreadsheet-windows-x86_64.exe |
Binaries are downloaded from GitHub Releases and placed in vendor/ inside the package directory.
Environment variables
| Variable | Description |
| --- | --- |
| AGENT_SPREADSHEET_LOCAL_BINARY | Path to a local binary to use instead of downloading. Useful for development or air-gapped environments. |
| AGENT_SPREADSHEET_DOWNLOAD_BASE_URL | Override the release download host (default: https://github.com/PSU3D0/spreadsheet-mcp/releases/download). |
Troubleshooting
Binary not found after install
If you see BINARY_NOT_INSTALLED, the postinstall download may have failed. Try:
# Reinstall to re-trigger the download
npm i -g agent-spreadsheet
# Check network access to GitHub releases
curl -I https://github.com/PSU3D0/spreadsheet-mcp/releases/latestUnsupported platform
The install script supports Linux x64, macOS x64/arm64, and Windows x64. For other platforms, build from source:
cargo install agent-spreadsheetUsing a local binary
For development or CI where you've already built the binary:
AGENT_SPREADSHEET_LOCAL_BINARY=./target/release/agent-spreadsheet npm i -g agent-spreadsheetCorporate proxy / air-gapped
Set AGENT_SPREADSHEET_DOWNLOAD_BASE_URL to point to an internal mirror hosting the release assets:
AGENT_SPREADSHEET_DOWNLOAD_BASE_URL=https://internal-mirror.example.com/releases npm i -g agent-spreadsheetHow it works
npm installrunsscripts/install.jsas a postinstall hook- The script detects your platform and architecture
- Downloads the matching binary from GitHub Releases (or copies from
AGENT_SPREADSHEET_LOCAL_BINARY) - Places it in
vendor/and marks it executable bin/agent-spreadsheet.jsspawns the vendored binary with your arguments
Full documentation
For the complete command reference, MCP server setup, Docker deployment, and architecture docs, see the root README.
License
Apache-2.0
