basis1: Excel engine for AI agents (formulas, recalculation, audit)
Official# Basis clients
Open-source clients for [Basis](https://basis1.tech), which parses Excel workbooks, evaluates formulas, traces dependencies and edits workbook models.
| Package | What it is | Docs |
| --- | --- | --- |
| [`@basis1/parse`](https://www.npmjs.com/package/@basis1/parse) | TypeScript SDK for the Basis parsing API | [`sdk/`](sdk/README.md) |
| [`@basis1/mcp`](https://www.npmjs.com/package/@basis1/mcp) | MCP server that gives AI assistants Basis's workbook tools | [`mcp/`](mcp/README.md) |
Both talk to the hosted Basis API (`https://api.basis1.tech`) and need an API key. The Basis engine and hosted service are separate and not part of this repository.
## Quick start
```sh
npm install @basis1/parse
```
```sh
BASIS_API_KEY=… npx -y @basis1/mcp
```
Or run the MCP server from this repository with Docker:
```sh
docker build -t basis1-mcp .
docker run -i --rm -e BASIS_API_KEY=… basis1-mcp
```
Each package's README covers usage, configuration and what's sent over the network.
## Development
Node 20.19 or later. The MCP server depends on the SDK through `file:../sdk`, so build the SDK first:
```sh
(cd sdk && npm ci && npm run build && npm test)
(cd mcp && npm ci && npm run build && npm test)
```
See [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request, and [SECURITY.md](SECURITY.md) to report a vulnerability privately.
## License
Apache License 2.0. See [LICENSE](LICENSE).
TDQS
Scored across 26 tools
Each tool has a clearly distinct purpose, and overlapping-seeming tools are explicitly differentiated: parse_workbook vs submit_job/stream_job (sync vs async parsing), get_outputs vs get_formula_range (values vs formulas+values), and inspect_model vs audit_workbook vs trace_dependencies (structure vs health vs lineage). The descriptions consistently cross-reference when to use an alternative tool, so an agent can select correctly despite the large surface.
Tool names follow a consistent snake_case verb_noun pattern throughout: list_sessions, create_session, close_session, set_inputs, get_outputs, define_variable, delete_variable, inspect_model, trace_dependencies, audit_workbook, export_workbook, save_to_library. Minor variants like save_to_library are still readable and fit the same convention.
The 26-tool surface is heavy and exceeds the typical well-scoped range, but it reflects a broad Excel engine covering sessions, parsing, editing, recalculation, auditing, and library storage. The set is mostly purposeful, though some consolidation (e.g. async parse tools, paired variable/sheet lifecycle tools) could reduce cognitive load.
Core workflows are well covered: open/parse, read, edit inputs, recalculate, inspect, audit, trace, export, and save. Minor gaps remain around structural editing and library lifecycle, such as no ability to add sheets to imported workbooks, no explicit clear-range operation, and no delete/version-management tools for Library files.