formulon-mcp
MCP server for Excel-compatible formula evaluation and workbook operations, enabling agents to open, inspect, mutate, recalculate, and save .xlsx files in-memory over stdio.
README
formulon-mcp
MCP server for Formulon. It uses the
published npm package @libraz/formulon@0.9.0 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-mcp
Verify 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 init
Pick 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 uninstall
It 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 build
Then register the absolute path to dist/index.js, e.g.:
claude mcp add --scope user formulon node /absolute/path/to/formulon-mcp/dist/index.js
Or install the latest main directly without a local clone:
npx -y github:libraz/formulon-mcp
Development
- Node.js 22 via Volta
- Yarn 4 with
nodeLinker: node-modules - Biome 2 for format/lint
- TypeScript 6
yarn install
yarn run check
yarn run build
yarn run test
Run the server directly for local debugging:
node ./dist/index.js
Tools
formulon_version: returns the loaded Formulon engine version.formulon_eval_formula: evaluates one Excel formula.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.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 text cell values 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.formulon_get_range: reads an A1 rectangular range from a session.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: 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.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.
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。