logisheets-mcp
Click on "Install 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., "@logisheets-mcpCreate a 'MonthlySales' block with rows for Jan–Mar, add a total column as =units*price, and save it to sales.xlsx"
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.
logisheets-mcp
A real spreadsheet engine your AI agent can think in.
An MCP server that gives any LLM agent a
real, Excel-compatible calculation engine — with structured memory it can
address semantically, and a genuine .xlsx at the end that a human can open,
audit, and keep using.
Built on LogiSheets, a spreadsheet engine written in Rust. MIT licensed, self-hostable, no cloud dependency.
Why
Agents are doing real work that is spreadsheet-shaped — financial models, data reconciliation, analysis — and they are bad at exactly the parts a spreadsheet engine is good at.
Arithmetic. Agents mis-sum and mis-multiply. Here they don't have to: they write a formula and a deterministic engine evaluates it.
Memory. Across a thirty-step task, intermediate state has to live somewhere structured. A context window is lossy and expensive; a code sandbox's variables vanish. This server gives the agent an external structured disk it reads and writes across the whole task.
Addressing. Agents are bad at spatial reasoning, so a raw grid is a fragile
surface — they lose track of where things are, and their own edits break their
references. So the agent doesn't address C7. It addresses
(block, row_key, field):
set the
pricefield of the2025record in therevenueblock
Insert a row, move the block, add a column — that address still resolves. This is the whole point: memory that survives the agent's own edits.
vs. a Python sandbox
A code interpreter can compute, but you get a throwaway script result. Here you
get a real .xlsx with live formulas still in it — open it in Excel, change
an input, and the model recalculates. It round-trips the human's existing files,
and it runs on your machine, which matters when the data can't leave.
Related MCP server: Excel MCP Server
Install
Requires Node 20+.
npm install -g logisheets-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"logisheets": {
"command": "npx",
"args": ["-y", "logisheets-mcp"]
}
}
}On macOS that file lives at
~/Library/Application Support/Claude/claude_desktop_config.json; on Windows,
%APPDATA%\Claude\claude_desktop_config.json. Restart Claude Desktop
afterwards.
Cursor / Cline / other hosts
Any MCP host that can spawn a stdio server works — point it at the
logisheets-mcp command. For Cursor, add the same block to
~/.cursor/mcp.json.
Try it
Build me a three-year revenue model: 100 units at $9.50 growing 40% a year, with a 30% cost of goods. Then save it to ~/model.xlsx.
The agent creates a block, fills it, writes the formulas, and hands back a file.
The numbers are the engine's, not the model's guesses — and the .xlsx has real
formulas in it, so you can change an assumption in Excel and watch it recompute.
See it work
npm run build && npm run demoBuilds a small revenue model over real MCP-on-stdio against dist/cli.js — the
same code path Claude Desktop drives — and checks every claim as it goes: totals
the engine computed, a rule that reaches rows added later, blocks that keep
resolving after the model grows underneath them, and a real .xlsx whose
formulas are verified by reading the file's own bytes. No LLM is involved; the
engine is the subject, and hard-coding the calls is what makes the guarantees
checkable rather than a story about a chat session.
The agent loop
list_blocks orient: what do I have?
create_block open a structured workspace
add_block_rows / set_block_cells fill it, addressed by (block, key, field)
eval_formula / a stored formula the engine does the math
describe_block read structured results back
save_workbook hand the human a real .xlsxTools
The default surface is deliberately small — 20 tools. Tool-selection accuracy falls as the list grows, and every description costs context on every turn.
Tool | What it does |
| Start a fresh workbook, or load an existing |
| Write to a real |
| The file as base64, for hosts with no shared filesystem. |
| Every sheet and block, plus where the next block should go. |
| A block's schema, keys, and (optionally) its current values. |
| Evaluate an Excel formula and return the value. Nothing is stored. |
| Create a named, structured table. First field is the row key. |
| Turn a table that is already in ordinary cells into a block, in place. |
| Add records — at the end, or |
| Remove records. |
| Reorder rows, by key. Presentation only: no computed value changes. |
| Write cells by |
| Give a field a formula, a validation rule, or an editability rule. |
| Which cells break their field's validation rule, and why. |
| What edits would do, without doing them. One hypothetical, or a whole grid of scenarios in a single call. |
| What a cell reads, and what reads it — from the engine's dependency graph. |
| What input makes a chosen output equal a target. Searches inside the engine; changes nothing. |
| Add a sheet. |
| Raw-cell escape hatch for data with no structure. |
Formulas are Excel-compatible, plus BLOCKREF(block, key, field) for reading a
block cell semantically. Inside a field rule, #FIELD("name") is the same row's
sibling and #FIELD("name", "key") is another row of the same block — the one
carrying that key, never a positional offset, so reordering rows cannot change
what a formula means.
Analysing a model, not just building one
preview_changes takes a list of scenarios and an optional watch, which is
what turns exploration from dozens of round trips into one:
{
"scenarios": [
{"label": "wacc 9%", "changes": [{"block":"assum","row_key":"wacc","field":"v","value":0.09}]},
{"label": "wacc 12%", "changes": [{"block":"assum","row_key":"wacc","field":"v","value":0.12}]}
],
"watch": [{"block":"valuation","row_key":"per_share","field":"v"}]
}Each scenario runs on its own temp branch and is discarded, so the live model is never touched — no mutate-and-revert, and nothing left behind if a scan fails half way. A 4×4 sensitivity grid is one call returning sixteen numbers.
goal_seek runs the same trick backwards — "what discount rate gives a value per
share of 30" — with the search inside the engine rather than as a conversation,
so it is one call instead of one per bisection step. It says when a target is
simply not reachable in the bracket instead of returning the nearest number it
happened to stop on.
trace answers the two audit questions from the engine's dependency graph:
what a cell reads, and what reads it. The second one is why it exists — formula
text can be read forwards but not backwards, and "what breaks if I change this"
is the question you want before touching an assumption.
Reading a model is semantic too: describe_block returns each field's rule, so
an agent learns the model's logic without visiting a cell, and formulas come back
naming what they read (B24 / BLOCKREF("assum","shares","v")) rather than as
coordinate chains you have to chase.
The full surface
Set LOGISHEETS_MCP_TOOLS=full for 50 tools: undo/redo, cell formatting,
merges, comments, checkpoints, block move/resize, cross-block links, and raw
row/column structure.
{
"mcpServers": {
"logisheets": {
"command": "npx",
"args": ["-y", "logisheets-mcp"],
"env": {"LOGISHEETS_MCP_TOOLS": "full"}
}
}
}Mutating tools are marked with MCP's readOnlyHint / destructiveHint
annotations, so a host can gate them behind user approval.
Blocks, briefly
A block is a named, structured region of a sheet — a table with a schema.
The first field is the row key: the stable name of each record.
Fields can carry a value formula (engine-computed, so the agent can't write a stale number into it), a validation rule, or an editability rule.
Everything is addressed by name. Row and column indices never enter the agent's reasoning.
Because blocks are created by the agent as it works, this needs no pre-prepared file — you can point it at a blank workbook or at a spreadsheet someone sent you.
Use as a library
import {createServer} from 'logisheets-mcp'
import {StreamableHTTPServerTransport} from '@modelcontextprotocol/sdk/server/streamableHttp.js'
const {server, session} = createServer({mode: 'full'})
await server.connect(new StreamableHTTPServerTransport(/* … */))createServer returns the MCP Server, the WorkbookSession, and the tool map,
so you can host it over any transport or embed it in an agent framework.
Development
The server is a thin shell over three LogiSheets packages:
logisheets-runtime (the
headless engine), logisheets-logician (the agent tool definitions), and the
Rust/WASM core. Working on the server alone needs nothing special:
git clone https://github.com/logisky/logisheets-mcp.git
cd logisheets-mcp
npm install
npm testWorking on the engine at the same time is the other mode. Check out LogiSheets as a sibling directory, build its packages, then:
npm run link:local # re-run after any npm installThat symlinks the three packages into node_modules so local engine changes
take effect without reinstalling. scripts/release-deps.mjs puts the registry
ranges back before publishing.
Releasing
A tag does it. .github/workflows/publish.yaml runs the tests, publishes to
npm with provenance, and registers the new version with the MCP Registry:
npm version 0.2.0 # bumps both files, commits, tags v0.2.0
npm run check-release # optional; CI runs it too
git push --follow-tagsThe workflow can also be run by hand from the Actions tab, which takes the
version from package.json instead of a tag. The npm step skips a version that
is already published, so a run that failed at the registry step can just be
re-run — the two publishes are not a transaction.
npm version also rewrites server.json, via the version lifecycle script.
The registry keeps the version in two places — the server's own version and
the version of the npm package it points at — and hand-editing them is the step
most likely to be missed.
check-release is the gate. Four things have to agree: the tag, package.json,
and both server.json version fields. mcpName also has to equal
server.json's name, because the registry proves ownership by reading
mcpName out of the published npm package. npm publish cannot be undone —
a version number is spent the moment it lands — so the workflow runs this check
before publishing, not after.
Registry auth needs no secret: the workflow authenticates with GitHub OIDC,
which is what grants the io.github.logisky/ namespace. The one secret is
NPM_TOKEN.
Getting the file back
save_workbook writes a real .xlsx and its result carries an MCP
resource link — a uri, media type and size — not the file. The workbook is
also listed as a resource (workbook://current.xlsx), so a host that wants the
bytes reads them with resources/read and hands the human a download.
That split is the point: a tool result goes into the model's context, where a
200 KB workbook would cost roughly 280 KB of text and teach the model nothing.
The link costs a line. export_xlsx still returns base64 for hosts that
implement no resources at all, but it is the fallback, not the mechanism.
Reads go through the same serialization lane as tool calls, so a host fetching the file can never catch a half-applied transaction.
open_workbook and save_workbook read and write wherever the server process
can — normal for a local stdio server, and the same posture as the official
filesystem server. Both are marked as mutating so a host can prompt before they
run; if you need tighter limits, run the server as a user with only the access
you intend it to have.
State model
One MCP session holds one active workbook, alive across tool calls — that
persistence is what makes it memory rather than a calculator. open_workbook
replaces it. Multiple named workbooks per session may come later.
No network
The server opens no sockets and listens on no ports. "stdio transport" is literal: your MCP host spawns this as a child process and they exchange newline-delimited JSON-RPC over its stdin and stdout — the same pipes any command-line program gets. The engine is WASM running in that same process, so a formula is a function call, not a request.
Checked rather than asserted. After a full session — create a block, attach a
field rule, evaluate a formula, save an .xlsx — the process holds:
fd types: {CHR: 2, DIR: 4, KQUEUE: 3, PIPE: 6, REG: 13}
network files (lsof -a -i): 0
unix sockets (lsof -a -U): 0
listening ports: 0Six pipes, no sockets. Nothing is uploaded, no telemetry is collected, and an air-gapped machine is a supported way to run this. The only things it touches outside its own memory are the files you name — see the filesystem note under Getting the file back.
That is the logisheets-mcp binary, which is what an MCP host runs. Using it
as a library you can attach any transport you like,
including an HTTP one — but then the socket is yours, opened deliberately.
License
MIT. Part of the LogiSheets project.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, read, and manipulate Excel files without requiring Microsoft Excel installation. Supports comprehensive spreadsheet operations including formulas, formatting, charts, pivot tables, and data validation.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, read, and modify Excel workbooks without requiring Microsoft Excel, supporting operations like formulas, charts, pivot tables, formatting, and data validation.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, read, and manipulate Excel workbooks without Microsoft Excel installed, supporting formulas, formatting, charts, pivot tables, and data validation operations.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to create, read, write, and manipulate Excel files (.xlsx, .xlsm) without requiring Microsoft Excel, including support for charts, pivot tables, data import/export, and professional formatting across Windows, macOS, and Linux.19833MIT
Related MCP Connectors
Precision math engine for AI agents. 203 exact methods. Zero hallucination.
Deterministic signed verification of numeric & financial claims for AI agents & spreadsheets.
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/logisky/logisheets-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server