formulon-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., "@formulon-mcpevaluate =SUM(B2:B10) in Sheet1"
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.
formulon-mcp
MCP server for Formulon. It uses the
published npm package @libraz/formulon@0.9.5 and exposes Excel-compatible
formula and .xlsx workbook operations over stdio.
This is designed for agent use: open a workbook once, inspect it, mutate cells, recalculate, read ranges, save, and close the in-memory session.
Install
Requires Node.js 22+. No clone needed — npx fetches and runs the server on
demand. The CLI binary is formulon-mcp.
Claude Code
claude mcp add --scope user formulon -- npx -y @libraz/formulon-mcpVerify with claude mcp list — formulon should report ✓ Connected.
Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.formulon]
command = "npx"
args = ["-y", "@libraz/formulon-mcp"]Claude Desktop
Add to claude_desktop_config.json
(~/Library/Application Support/Claude/ on macOS,
%APPDATA%\Claude\ on Windows):
{
"mcpServers": {
"formulon": {
"command": "npx",
"args": ["-y", "@libraz/formulon-mcp"]
}
}
}Other MCP clients
Any stdio-capable MCP client works. Point it at npx -y @libraz/formulon-mcp,
or run formulon-mcp directly after npm install -g @libraz/formulon-mcp.
Interactive setup (optional)
If you'd rather not edit config files by hand for Codex CLI or Claude Desktop, run the bundled installer:
npx -y @libraz/formulon-mcp initPick one or more targets (comma-separated, e.g. 1,3,4):
Claude Code — user (
~/.claude.json)Claude Code — project (
./.mcp.json)Codex CLI (
~/.codex/config.toml)Claude Desktop (
claude_desktop_config.jsonat the platform path above)
Re-running init safely replaces the existing formulon entry without
touching other servers. Restart your MCP client to pick up the change.
To remove the entry later:
npx -y @libraz/formulon-mcp uninstallIt drops only the formulon server; other entries are kept.
From source
For development or to pin a fork, clone and build instead of using npm:
git clone https://github.com/libraz/formulon-mcp.git
cd formulon-mcp
yarn install
yarn run buildThen register the absolute path to dist/index.js, e.g.:
claude mcp add --scope user formulon node /absolute/path/to/formulon-mcp/dist/index.jsOr install the latest main directly without a local clone:
npx -y github:libraz/formulon-mcpRelated MCP server: mcp-server-spreadsheet
Development
Node.js 22 via Volta
Yarn 4 with
nodeLinker: node-modulesBiome 2 for format/lint
TypeScript 6
Vitest for tests (
yarn test,yarn test:watch,yarn test:coverage)
yarn install
yarn run check
yarn run build
yarn run testRun the server directly for local debugging:
node ./dist/index.jsTools
formulon_version: returns the loaded Formulon engine version and the MCP server version.formulon_eval_formula: evaluates one Excel formula. WithsessionId, it evaluates read-only against an open workbook, resolving references, defined names, andROW()/COLUMN()anchored at the given cell.formulon_open_workbook: creates a workbook session from an.xlsxpath, or creates a new default workbook.formulon_list_sessions: lists open workbook sessions.formulon_close_workbook: releases a session.formulon_inspect_session: returns sheets, defined names, tables, and optionally sparse cell entries for an open session.formulon_set_cells: applies mutations to a session. Cells can be addressed with A1 refs likeSheet1!B2or zero-basedsheet/row/col. Writes are bounds-checked against Excel's grid, and formula cells that evaluate to an error are reported back inerrorCells.formulon_set_range: writes a 2D block of values from an anchor cell; each element's JSON type picks the cell type,{"f":"=…"}writes a formula, andnullskips a cell. Much more compact thanset_cellsfor tables.formulon_sheet_operation: adds, removes, renames, or moves sheets.formulon_set_defined_name: adds, replaces, or removes workbook-scoped defined names.formulon_edit_structure: inserts or deletes rows and columns.formulon_set_sheet_view: sets zoom, frozen panes, or sheet-tab hidden state.formulon_recalc_session: recalculates an open session.formulon_find_cells: searches cell values (text, numbers, booleans) and/or formula text in a session.formulon_replace_cells: replaces matching text cell values and/or formula text in a session.formulon_inspect_layout: returns stable per-sheet layout data, including used ranges, merges, row/column overrides, protection, cells, calculated values, formulas, and optional style details.formulon_detect_regions: detects table-like regions, label-value pairs, and total-like fields with rule-based confidence and evidence.formulon_analyze_workbook: classifies workbook shape such as invoice, list, report, schedule, or form using deterministic features and evidence.formulon_get_cell: reads one cell from a session or directly from a path, including its formula text (empty for constants). Date/currency/percent cells carry a decodedformattedstring alongside the raw value.formulon_get_range: reads an A1 rectangular range from a session as a sparse cell list — blanks omitted, clipped to the sheet's used range, and capped atmaxCells. SetincludeFormulasto annotate computed cells. Formatted numeric cells (dates, currency, percent) carry a decodedformattedstring.formulon_dimension_operation: lists column-width / row-height overrides, or sets width/height, hidden, or outline level. Columns act on an inclusive[first, last]span; rows act on a single row index.formulon_save_session: writes a session to.xlsx.formulon_session_metadata: reads function names or external links.formulon_merge_operation: lists, adds, removes, or clears merged ranges.formulon_comment_operation: lists, gets, sets, or removes cell comments.formulon_hyperlink_operation: lists, adds, removes, or clears hyperlinks.formulon_validation_operation: lists, adds, removes, or clears data validations.formulon_conditional_format_operation: lists, adds, removes, clears, or evaluates conditional formats.formulon_trace: reads precedents, dependents, or spill info. Results carry A1 references with sheet names, not raw indices.formulon_function_lookup: lists functions and resolves function metadata or localized names.formulon_workbook_call: allowlisted low-level access to the FormulonWorkbookAPI for advanced features, including PivotTables, PivotCaches, styles, merges, comments, hyperlinks, validations, conditional formatting, dependency graph queries, function metadata, and spill info.formulon_inspect_workbook: one-shot workbook summary from path.formulon_update_workbook: one-shot load/create, mutate, recalc, save.
Unless A1 notation is used, sheet, row, and column indexes are zero-based to
match the Formulon API. Operation tools (merge, comment, hyperlink,
validation, conditional_format, trace, dimension) accept a sheet name in
their sheet argument as well as a zero-based index.
Cell values are returned as {kind, value} envelopes. Formula cells are
recalculated when a session is opened, so the first read returns the computed
value rather than a blank. Error cells include an errorName Excel literal
(#DIV/0!, #REF!, #NAME?, …) beside the numeric errorCode. Cells whose
number format is a date, currency, or percent carry a numberFormat code, a
formatKind, and — for dates and percentages — a decoded formatted string
(for example an ISO date), while value keeps the raw Excel serial / number.
The full cell style is available through inspect_layout with includeStyles.
Agent Workflow
Open a new workbook:
{
"path": "input.xlsx",
"sessionId": "work"
}Set cells:
{
"sessionId": "work",
"mutations": [
{ "type": "number", "a1": "Sheet1!A1", "value": 41 },
{ "type": "formula", "a1": "Sheet1!B1", "formula": "=A1+1" }
],
"recalc": true
}Read a range:
{
"sessionId": "work",
"range": "Sheet1!A1:B1"
}Search and replace:
{
"sessionId": "work",
"query": "budget",
"target": "both",
"matchCase": false
}{
"sessionId": "work",
"query": "budget",
"replacement": "forecast",
"target": "texts",
"recalc": true
}Save:
{
"sessionId": "work",
"outputPath": "output.xlsx"
}Low-level API access:
{
"sessionId": "work",
"method": "addMerge",
"args": [0, { "firstRow": 0, "firstCol": 0, "lastRow": 0, "lastCol": 2 }]
}The low-level tool only dispatches methods explicitly allowlisted in
src/sessions.ts. It does not evaluate arbitrary code.
License
Apache-2.0. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/libraz/formulon-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server