Back to Browse

Xlsx For Ai MCP Server

by Senoff
Developer ToolsUse Caution3.5MCP RegistryLocal
Free

Server data from the Official MCP Registry

78 spreadsheet tools: recalc over 350 Excel functions, repair refs, read, write, diff, audit.

About

78 spreadsheet tools: recalc over 350 Excel functions, repair refs, read, write, diff, audit.

Security Report

3.5
Use Caution3.5High Risk

This is a thin relay: mcp.js reads user-supplied spreadsheet paths, base64-encodes them, and sends them to the third-party hosted service api.xlsx-for-ai.dev, which the README discloses. The main concerns are that user spreadsheets (which may contain PII) leave the machine by design, that postinstall auto-registers the server into user config files such as ~/.claude.json, and that legacy keyless anonymous API key issuance is still accepted. The provided code is truncated (lib files, postinstall.js, and the full tool list were not visible), so the audit is incomplete. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.

3 files analyzed · 11 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "xlsx-for-ai": {
      "command": "npx",
      "args": [
        "-y",
        "xlsx-for-ai@4.3.0"
      ]
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

xlsx-for-ai

xlsx-for-ai MCP server

Short name: xfa — a real CLI command (xfa <file>, xfa samples, xfa --version) and the prompt shorthand (e.g. "use xfa to read this file"). Same entrypoint as xlsx-for-ai; matches the internal xfa_* / XFA_* brand surface.

Verified values, preserved structure, up to 100MB

The missing reliability layer for spreadsheet work in LLM agents. Read, write, diff, validate, and analyze .xlsx files end-to-end — with merged cells, formulas, named ranges, conditional formatting, pivots, and charts preserved.

xlsx-for-ai makes Claude reliable on real-world Excel files. Seventy-plus tools cover the structural surface that pandas-style sandboxes drop on the floor: merged cells, named ranges, formulas with results, conditional formatting, pivots, slicers, charts, comments, data validations, hyperlinks, cross-sheet topology, external links, form controls, VBA macros, document properties, and protection settings. A soundness check (xlsx_validate) flags corruption other readers silently mask. A hosted recalc engine computes served values in-house — no third-party formula engine in the serve path.

In Claude Code, one command:

claude plugin install xlsx-for-ai --marketplace senoff/xlsx-for-ai

Then, once:

  1. Restart Claude Code (quit it and start it again), so it loads the plugin.
  2. Ask Claude about a spreadsheet. The first request answers with a sign-in link and a short code: sign in through the link, check the code, approve, then ask again. There is no /mcp step.

In short: restart Claude Code, then ask it about a spreadsheet. Needs Claude Code 2.1.292 or later (claude update if yours is older). If you installed before Nov 27, update the plugin with claude plugin update xlsx-for-ai@xlsx-for-ai (or in a session: /plugin, then Installed, then xlsx-for-ai, then Update now), then start a new session. More on the plugin is under Claude Code plugin below.

In the Claude app (claude.ai): find xlsx-for-ai in the connector directory at claude.ai/directory and click Connect.

The npm package (Claude Code, Cursor, Claude Desktop and others):

npm install -g xlsx-for-ai

The global install puts the xlsx-for-ai-mcp binary on your PATH — that's what the canonical configs below point at. A pinned global install launches fast (it still needs an internet connection, because the files are read by the hosted service); upgrade with npm install -g xlsx-for-ai@latest when a new version ships.

Upgrading from 1.5.x? This is a re-architecture, not a feature bump: the heavy local engine is gone from the npm package. All rendering happens server-side. The cursor-reads-xlsx alias still works. See Migration below.


MCP configuration

Add the server to your agent runtime under the name xfa (so "use xfa to read this" resolves). First run needs a one-time sign-in. In an editor or desktop app, your first request answers with a sign-in link and a short code: open the link, approve, then ask again. Or run xlsx-for-ai login in a terminal first (see First-run sign-in). Keys created by older versions keep working for now. When that changes, the sign-in link appears in the same place, so there is nothing to do ahead of time.

There are two ways in:

  • Local package. The app starts xlsx-for-ai-mcp on your computer (stdio). Install it once with npm install -g xlsx-for-ai. No key to paste: the first request gives a sign-in link and code. It can read files on your computer by path. If you would rather not install globally, use the command npx with the arguments -y -p xlsx-for-ai xlsx-for-ai-mcp wherever a section below says xlsx-for-ai-mcp.
  • Hosted with sign-in. The app connects to https://api.xlsx-for-ai.dev/mcp over HTTP and signs you in in the browser (OAuth). Nothing to install. It cannot read files on your computer: give it a link to the file (shared as "anyone with the link can view") or use the upload link it offers.
AppLocal packageHosted with sign-inSteps
Claude CodeyesyesClaude Code
Claude DesktopyesyesClaude Desktop
CursoryesyesCursor
ContinueyesnoContinue
Codex CLIyesyesCodex CLI
Gemini CLIyesyesGemini CLI
ChatGPT and other remote connectorsnoyesChatGPT
ZedyesyesZed
Windsurf (now Devin Desktop)yesyesWindsurf
ClineyesnoCline
VS Code with GitHub CopilotyesyesVS Code
Roo CodeyesnoRoo Code
QoderyesnoQoder
JetBrains AI AssistantyesnoJetBrains AI Assistant
Junieyesyes (Junie CLI)Junie
Amazon Q Developer CLIyesyesAmazon Q Developer CLI
GooseyesyesGoose
opencodeyesyesopencode
LM StudioyesnoLM Studio
KiroyesyesKiro
WarpyesyesWarp
Anything elseyesif it supports remote servers with OAuthAny other MCP client

"No" means the app's docs do not describe signing in to a remote server from its main settings; use the local package there.

Claude Code

The global install registers the xfa MCP server in ~/.claude.json for you:

npm install -g xlsx-for-ai

npm hides the install script's output, so the install prints nothing about Claude Code. Then:

  1. Restart Claude Code (quit it and start it again). A session that was already open does not see the new server.
  2. Ask Claude about a spreadsheet. The first request answers with a sign-in link and a short code: open the link, check the code, approve, then ask again. No second restart is needed. (Or run xlsx-for-ai login in a terminal first.)

Restart Claude Code, then ask it about a spreadsheet.

If your environment skips install scripts (--ignore-scripts, CI, or a sudo install), register it manually:

claude mcp add --scope user xfa -- xlsx-for-ai-mcp

Hosted instead (or use the Claude Code plugin, which sets this up for you):

claude mcp add --scope user --transport http xfa https://api.xlsx-for-ai.dev/mcp

then run /mcp in Claude Code, choose xfa and sign in in the browser.

Verify: claude mcp list shows xfa as connected (the hosted one shows "Needs authentication" until you sign in). In a new session, ask "what MCP tools do you have?" and check that the xlsx_* tools are listed, including xlsx_doctor (one-call health report — try it first on any unknown workbook).

Then run xfa samples (shorthand for xlsx-for-ai samples) to drop two demo workbooks in your working directory and get paste-ready prompts to try.

Claude Desktop

Claude Desktop reads files, but it cannot recalculate formulas, read a very large workbook exactly, or hand back a real .xlsx. The xfa server adds those. The install does not touch Claude Desktop, so add the server yourself. Install the package first (npm install -g xlsx-for-ai), then open the config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

(In Claude Desktop: Settings → Developer → Edit Config opens it.) Add xfa under mcpServers, keeping any servers already there:

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp"
    }
  }
}

Fully quit and reopen Claude Desktop. Verify: click "Add files, connectors, and more" (bottom left of the message box), then Connectors → Manage connectors, choose xfa and check that the xlsx_* tools are listed. Your first request answers with a sign-in link and a short code: open the link, approve, then ask again.

Hosted instead: Customize → Connectors → + Add → Add custom connector, name it xfa, enter https://api.xlsx-for-ai.dev/mcp, and sign in when asked. Free plans allow one custom connector.

Cursor

Config file: ~/.cursor/mcp.json (all projects) or .cursor/mcp.json in a project.

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp"
    }
  }
}

Hosted instead: use "url": "https://api.xlsx-for-ai.dev/mcp" in place of "command". Cursor signs you in when the server asks.

Verify: open Customize in the sidebar, check that xfa is on and the xlsx_* tools are listed under Available Tools. If it does not connect, open the Output panel and choose "MCP Logs".

Continue

Continue now uses YAML config (config.json is deprecated). Create .continue/mcpServers/xfa.yaml at the top of your workspace:

name: xfa
version: 0.0.1
schema: v1
mcpServers:
  - name: xfa
    type: stdio
    command: xlsx-for-ai-mcp

Or add the same - name: xfa entry under mcpServers in your existing Continue config. A JSON file in the Claude Desktop / Cursor format placed in .continue/mcpServers/ also works.

Verify: MCP tools work only in Continue's agent mode. Switch to agent mode, ask "what tools do you have?" and check that the xlsx_* tools are listed.

Codex CLI

Codex reads ~/.codex/config.toml (or .codex/config.toml in a trusted project). Add it with one command:

codex mcp add xfa -- xlsx-for-ai-mcp

which writes this table (you can also add it by hand):

[mcp_servers.xfa]
command = "xlsx-for-ai-mcp"

Hosted instead:

[mcp_servers.xfa]
url = "https://api.xlsx-for-ai.dev/mcp"

then run codex mcp login xfa and sign in in the browser (codex mcp add xfa --url https://api.xlsx-for-ai.dev/mcp adds the table and starts the sign-in straight away). Without a browser on that machine, use codex mcp login xfa --no-browser.

Verify: codex mcp list shows xfa as enabled. In a Codex session, run /mcp and check that xfa and its xlsx_* tools are listed.

Gemini CLI

Google moved unpaid-tier and Google One users from Gemini CLI to Antigravity CLI on June 18, 2026 (geminicli.com), so these steps are for people who have Gemini CLI.

One command installs xlsx-for-ai as a Gemini CLI extension (the server and the instructions Gemini reads):

gemini extensions install https://github.com/senoff/xlsx-for-ai

That installs from the latest GitHub release. To install from the newest code on main instead, add --ref main.

Start Gemini CLI and ask about a spreadsheet on your computer, for example "recalculate budget.xlsx and tell me which totals changed". The first request answers with a sign-in link and a short code: open the link, approve, then ask again. The extension runs the same xlsx-for-ai-mcp server through npx, pinned to a published version (each release updates the pin), so no global install is needed.

Or add just the server, without the extension:

gemini mcp add -s user xfa xlsx-for-ai-mcp

Hosted instead: gemini mcp add -s user --transport http xfa https://api.xlsx-for-ai.dev/mcp, then run /mcp auth in Gemini CLI and sign in to xfa.

Verify: gemini mcp list shows xfa as connected. In Gemini CLI, run /mcp and check that xfa lists the xlsx_* tools.

ChatGPT and other assistants with remote connectors

Assistants that add a connector by URL use the hosted server instead of the npm package: add https://api.xlsx-for-ai.dev/mcp as a connector and sign in when asked. A remote connector cannot read files on your computer: give it a link to the file (shared as "anyone with the link can view") or use the upload link it offers.

Zed

Open your settings file with the zed: open settings file command and add:

{
  "context_servers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp",
      "args": []
    }
  }
}

Hosted instead: "xfa": { "url": "https://api.xlsx-for-ai.dev/mcp" }. With no Authorization header set, Zed asks you to sign in.

Verify: open Settings → AI → MCP Servers and check that the dot next to xfa is green ("Server is active"); the xlsx_* tools then appear in the agent panel.

Windsurf

Windsurf's MCP docs now point to Devin Desktop. Its user config is ~/.config/devin/mcp_config.json (Windows: %APPDATA%\devin\mcp_config.json); .devin/mcp_config.json in a project works too. Older Windsurf builds used ~/.codeium/windsurf/mcp_config.json.

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp"
    }
  }
}

Hosted instead: "xfa": { "url": "https://api.xlsx-for-ai.dev/mcp", "transport": "http" }, then click Authenticate next to it under Customize → MCPs.

Verify: in the Agents window open Customize → MCPs; xfa should be in the "This computer" list with the xlsx_* tools. Press refresh there after editing the file. On an older Windsurf build, add the same xfa block through that build's own MCP settings.

Cline

In Cline, click the MCP Servers icon, open the Configure tab and click Configure MCP Servers. Add xfa under mcpServers (the Cline CLI keeps the same file at ~/.cline/data/settings/cline_mcp_settings.json):

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp",
      "args": [],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Verify: xfa appears in Cline's MCP server list with the xlsx_* tools; try one tool call.

VS Code with GitHub Copilot

Put the server in .mcp.json at the workspace root, or in ~/.copilot/mcp-config.json for every workspace:

{
  "mcpServers": {
    "xfa": {
      "type": "stdio",
      "command": "xlsx-for-ai-mcp"
    }
  }
}

Or from a terminal (adds it to your VS Code user profile):

code --add-mcp '{"name":"xfa","type":"stdio","command":"xlsx-for-ai-mcp"}'

You can also run "MCP: Add Server" from the Command Palette and choose "Command (stdio)". Older setups use .vscode/mcp.json, which has the same entry under "servers" instead of "mcpServers".

Hosted instead: "xfa": { "type": "http", "url": "https://api.xlsx-for-ai.dev/mcp" }, and click Authenticate when VS Code offers it.

Verify: run "Chat: Open Customizations" → MCP Servers (or "MCP: List Servers") and check that xfa is running with the xlsx_* tools. Then ask Copilot Chat something about a spreadsheet and confirm it calls an xlsx_* tool.

Roo Code

Open the MCP settings view from the Roo Code pane, scroll down and click Edit Global MCP (mcp_settings.json, all workspaces) or Edit Project MCP (.roo/mcp.json):

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp"
    }
  }
}

Verify: xfa shows in the MCP server list, enabled, with the xlsx_* tools.

Qoder

Qoder IDE: open Qoder IDE Settings (⌘⇧, on macOS, Ctrl+Shift+, on Windows), choose MCP, and on My Servers click + Add. In the JSON file that opens, add:

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp"
    }
  }
}

and click Save. Qoder CLI:

qoder mcp add -s user xfa -- xlsx-for-ai-mcp

Verify: in the IDE, xfa shows a link icon (connected); expand it to see the xlsx_* tools. In the CLI, qoder mcp list shows xfa (run /mcp reload in a session that was already open).

JetBrains AI Assistant

Open Settings | Tools | AI Assistant | Model Context Protocol (MCP), click Add, choose STDIO, paste:

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp"
    }
  }
}

choose global or project level, click OK, then Apply.

Verify: the Status column shows xfa running; click the icon in that column to see the xlsx_* tools.

Junie

Junie (in JetBrains IDEs and Junie CLI) reads ~/.junie/mcp/mcp.json (all projects) or .junie/mcp/mcp.json in a project. In the IDE: Settings | Tools | Junie | MCP Settings, click Add and edit the file that opens:

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp"
    }
  }
}

Hosted instead (Junie CLI): "xfa": { "url": "https://api.xlsx-for-ai.dev/mcp" }, then authorize it from the /mcp screen.

Verify: the IDE's MCP Servers list shows xfa with its status and the xlsx_* tools; in Junie CLI, /mcp shows it as Active.

Amazon Q Developer CLI

AWS has renamed the Q Developer CLI to Kiro CLI (upgrade to Kiro). After the upgrade the q commands below still work (Kiro's migration guide); for Kiro's own commands see Kiro.

q mcp add --name xfa --command xlsx-for-ai-mcp

Hosted instead: add this to your agent config (in ~/.aws/amazonq/cli-agents/):

{
  "mcpServers": {
    "xfa": {
      "type": "http",
      "url": "https://api.xlsx-for-ai.dev/mcp"
    }
  }
}

start q chat, run /mcp, and open the sign-in link it gives while the session stays open.

Verify: q mcp list shows xfa; in q chat, /tools lists the xlsx_* tools.

Goose

CLI: run goose configure → Add Extension → Command-line Extension, name it xfa and enter the command xlsx-for-ai-mcp. Desktop: Extensions → Add custom extension, type Standard IO, command xlsx-for-ai-mcp. Or add it to config.yaml (~/.config/goose/config.yaml on macOS and Linux; goose info -v prints the path):

extensions:
  xfa:
    name: xfa
    type: stdio
    cmd: xlsx-for-ai-mcp
    args: []
    enabled: true
    timeout: 300

Hosted instead: goose configure → Add Extension → Remote Extension (Streamable HTTP), URL https://api.xlsx-for-ai.dev/mcp. Goose registers itself with the server and opens the browser to sign in.

Verify: goose info -v lists xfa with enabled: true; in a goose session, ask "what tools do you have?" and check that the xlsx_* tools are listed.

opencode

opencode mcp add xfa -- xlsx-for-ai-mcp

In opencode 1.19.x (the current release) this writes the entry below to your global config, ~/.config/opencode/opencode.json (or opencode.jsonc if you already have one):

{
  "mcp": {
    "xfa": {
      "type": "local",
      "command": ["xlsx-for-ai-mcp"]
    }
  }
}

opencode's MCP docs describe the newer version, where opencode mcp add writes to the project config, --global makes the server available in every project, and servers are nested under mcp.servers ("mcp": { "servers": { "xfa": { ... } } }) instead of directly under mcp.

Hosted instead: opencode mcp add xfa --url https://api.xlsx-for-ai.dev/mcp, then opencode mcp auth xfa (or /mcps in opencode) to sign in.

Verify: opencode mcp list shows xfa as connected (the hosted one shows "needs authentication" until you sign in).

LM Studio

Needs LM Studio 0.3.17 or later. In the right-hand sidebar open the Program tab, click Install → Edit mcp.json, and add xfa (LM Studio uses the same mcpServers format as Cursor):

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp"
    }
  }
}

Verify: save, start a chat with a model that supports tools, ask "what tools do you have?" and check that the xlsx_* tools are listed.

Kiro

Config file: ~/.kiro/settings/mcp.json (all workspaces) or .kiro/settings/mcp.json in a workspace.

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp",
      "args": [],
      "disabled": false
    }
  }
}

Hosted instead: "xfa": { "url": "https://api.xlsx-for-ai.dev/mcp" }, and sign in when Kiro asks. Kiro CLI: kiro-cli mcp add --name xfa --url https://api.xlsx-for-ai.dev/mcp.

Verify: open the MCP Servers view in the Kiro panel and check that xfa is connected with the xlsx_* tools; in Kiro CLI, run /mcp.

Warp

Open Settings → Agents → MCP servers (or "Open MCP Servers" from the Command Palette), click + Add and paste:

{
  "mcpServers": {
    "xfa": {
      "command": "xlsx-for-ai-mcp",
      "args": []
    }
  }
}

Or put the same block in ~/.warp/.mcp.json. Hosted instead: "xfa": { "url": "https://api.xlsx-for-ai.dev/mcp" }; Warp opens the browser to sign in when it starts the server.

Verify: on the MCP servers page xfa is running (click Start if not) and lists the xlsx_* tools.

Any other MCP client

Follow the app's own "add an MCP server" steps and give it one of these:

  • Local (stdio): command xlsx-for-ai-mcp with no arguments, after npm install -g xlsx-for-ai. Or command npx with arguments -y -p xlsx-for-ai xlsx-for-ai-mcp.
  • Hosted: the Streamable HTTP address https://api.xlsx-for-ai.dev/mcp, if the app can sign in to a remote server (OAuth). The server supports dynamic client registration, so no client ID is needed.

Name the server xfa. Verify: the app's MCP server list shows xfa with the xlsx_* tools.

Custom agents / API

For custom MCP clients, the binary is xlsx-for-ai-mcp (stdio transport). Override the API base URL with the XLSX_FOR_AI_API env var for local dev against http://localhost:3000.

Using the raw HTTP API

The MCP client is the easy path, but every tool is also a plain HTTP endpoint you can call from any language — no SDK required. Sign in with the OAuth device flow (RFC 8628) at https://api.xlsx-for-ai.dev/oauth (/oauth/reg, /oauth/device/auth, /oauth/token, with resource=https://api.xlsx-for-ai.dev/mcp), then POST https://api.xlsx-for-ai.dev/api/v1/clients with Authorization: Bearer <access token> returns { client_id, api_key }. Call any tool with Authorization: Bearer <api_key>. Anonymous keys from earlier versions still work during the transition. See What it costs for the limits.

# Legacy keyless registration (still accepted during the transition; new integrations
# should use the device-flow sign-in above), then convert report.xlsx to Markdown.
# Needs jq, and bash or zsh. The base64 body is passed to curl through a
# process-substitution fd and the token through a --config heredoc on stdin, which
# keeps both out of the argument list. -fsS --max-time makes curl fail loudly on an
# HTTP error or a hang; the guard line stops on a failed key issuance.
KEY=$(curl -fsS --max-time 30 -XPOST https://api.xlsx-for-ai.dev/api/v1/clients \
  -H 'Content-Type: application/json' \
  -d '{"client_version":"2.0.0","platform":"cli"}' | jq -r .api_key)
[ -n "$KEY" ] && [ "$KEY" != null ] || { echo "key issuance failed"; exit 1; }

curl -fsS --max-time 120 -XPOST https://api.xlsx-for-ai.dev/api/v1/tools/xlsx_convert \
  --data-binary @<(base64 < report.xlsx | tr -d '\n' | jq -Rs '{file_b64: ., to: "md"}') \
  -H 'Content-Type: application/json' \
  --config - <<CFG
header = "Authorization: Bearer $KEY"
CFG

Files that are too large, and requests over your limit, come back as a typed JSON error with an upgrade field where a plan would help (see below).

Rate-limited, over-limit and oversize requests come back as a typed JSON error ({ "error": { "code", "message" } }) carrying an upgrade field with your options — see GET /api/v1/reference for the full contract.

Every error body is exactly that shape: error.code is the stable, machine-readable key to branch on, and error.message is the self-correcting detail that says what was wrong and what to change. A few codes add a documented extra field (for example available_sheets on a sheet-not-found refusal, or upgrade on a paywall refusal), but there is no finer error-subtype field on the wire; the server keeps a finer attribution for its own audit only.

Convert can refuse with a typed 501. xlsx_convert converts xlsx, xls, csv and json inputs with the server's own engine only. When that engine declines a conversion of one of those inputs (for example some to=csv conversions of an .xlsx whose cells use a display format or an uncached formula the engine cannot reproduce exactly; the same file usually still converts with to=xlsx or to=json), the API returns HTTP 501 with error.code capability_gap and a message of the form "xlsx_convert isn't yet supported by our own engine for .xlsx files, and we don't fall back to a full-workbook recompute on this file type ...". It does not silently fall back to a compatibility library. It is not a client error and not transient, so retrying the same file does not help. Through the hosted MCP connector the same refusal arrives as a tool result with isError: true carrying that message. Exotic formats (ods, xlsb, fods, and the xls/BIFF8 write target) are still served by the legacy path and are unaffected.

The same governed contract is served read-only from two routes — discover the whole API without a key:

  • GET /api/v1/reference — a self-contained human HTML reference for the public-stable tools, including the on-ramp above.
  • GET /api/v1/openapi.json — the versioned OpenAPI 3.1 contract, verbatim. Point codegen, Postman, or Scalar/Redoc at it.

Claude Code plugin

A Claude Code plugin connects your agent to the hosted xlsx-for-ai tools for spreadsheet files and links (.xlsx, .xlsm, .xls, .csv, .tsv, a Google Sheet) and tells it when they help: when the answer depends on formula results, on whether saved values are current, or on handing back a working spreadsheet file.

claude plugin install xlsx-for-ai --marketplace senoff/xlsx-for-ai

That one command adds the marketplace and installs the plugin. It needs Claude Code 2.1.292 or later; run claude update first if yours is older.

Then, once: restart Claude Code (quit it and start it again) and ask Claude about a spreadsheet. The first request answers with a sign-in link and a short code: sign in through the link, then ask again. There is no /mcp Authenticate step. The plugin connects to the hosted endpoint https://api.xlsx-for-ai.dev/mcp and asks for the full tool list.

If you installed before Nov 27, update the plugin with claude plugin update xlsx-for-ai@xlsx-for-ai (or in a session: /plugin, then Installed, then xlsx-for-ai, then Update now), then start a new session. Plugins from a third-party marketplace do not update on their own.

Version 0.1.1 renamed the server key in the plugin's .mcp.json from xlsx-for-ai to spreadsheets, so /mcp now shows plugin:xlsx-for-ai:spreadsheets instead of plugin:xlsx-for-ai:xlsx-for-ai. Claude Code reads the key from the plugin's own .mcp.json and nothing else reads it. If you are on 0.1.0, sign in once after updating, because the server has a new name.

What it does:

  • Prints a short text at session start (startup, resume, clear and compact) that says when the xlsx-for-ai tools help, why, how to hand a file over from Claude Code, and every tool by name.
  • Sends Shopify export files (products, inventory, collections, redirects, metafields) to the shopify_* tools, which build a file ready to import into Shopify (plus Google, Amazon, eBay and UPS feed files). They work on the file you give them and hand a file back; you import the result yourself.
  • Adds a spreadsheets skill that applies when spreadsheet files are in play.
  • Connects Claude Code to the hosted server.

What it does not do: it ships no engine. No calculation, parsing or conversion code of ours runs on your machine; the only thing that runs locally is cat printing the session-start text file. Files you give the tools are sent to the hosted service (a link, or a one-time upload). The plugin lives in claude-code-plugin/; the session-start text is generated from claude-code-plugin/tool-manifest.json by scripts/plugin/generate-session-start.js, and a test fails if they disagree. On Windows the hook works in Git Bash or PowerShell (cat is available in both).


What it does

76 tools registered in tools/list, read live from the hosted service each time the server starts (a bundled copy covers a cold start with no network). Descriptions are intentionally rich — an agent reading a transcript can tell what each tool does and when to reach for it, without extra docs.

Triage / orient

ToolWhat it does
xlsx_doctorOne-call workbook health report. HIGH/MEDIUM/LOW findings (macros, external links, hidden sheets, missing metadata, large images) + quick facts + feature flags. The first call to make on an unknown workbook.
xlsx_topologyOne-call workbook orientation: sheets × dimensions × formulas × named ranges × tables × validations × hyperlinks × merges in one shot.
xlsx_list_sheetsList all sheet names and metadata. Fast first-call before reading.
xlsx_schemaInfer column types, nullable flags, header row, and sample values per sheet.
xlsx_describePandas-style .describe() on every numeric column — count, mean, std, min, max, quartiles.
xlsx_workbook_viewsUI state — frozen panes, zoom, active cell, hidden / veryHidden sheets, tab colors, active tab.
xlsx_propertiesWorkbook metadata — creator, modified, company, title, custom doc properties.

Read / write

ToolWhat it does
xlsx_readRead a workbook — text, JSON, or markdown. Formulas, named ranges, layout, and data types preserved. Also reads a live Google Sheet by id (source:"gsheets"), read-only, with a read-only Google OAuth token you supply.
xlsx_read_handleRead by server-side handle instead of bytes — for session flows where the workbook has already been uploaded and shouldn't be transferred again.
xlsx_writeCreate or update a workbook from a structured spec. Multi-sheet, formulas, named ranges, table definitions.
xlsx_data_cleanNormalize messy data in place — trim whitespace, coerce types, dedupe rows, fix obvious encoding artifacts. Returns a cleaned copy + a change log. Save-As shape; never mutates the input.
xlsx_diffSemantic diff between two workbooks — cell-level deltas, formula changes, structural shifts. Deterministic output.
xlsx_redactRedact PII from a workbook before sharing. Server-side detection; returns redacted copy plus audit manifest.
xlsx_convert25+ in / 16 out formats (csv, tsv, html, ods, xls, xlsb, dif, sylk, prn, txt, dbf, eth, json, markdown, xlsx, etc.). For xlsx, xls, csv and json inputs there is no compatibility-engine fallback: if our own engine declines, the call fails with a typed 501 capability_gap.
xlsx_validateSoundness check — parses the workbook with the server's own OOXML engine and reports whether it loads cleanly, with a per-sheet structural summary.
xlsx_session_set_validationsConfigure per-session validation rules the server will apply to subsequent calls in the same session (e.g., reject rows missing required columns). Stateful — affects this session only.

Pandas-parity (compute fresh aggregates)

ToolWhat it does
xlsx_filterFilter rows by predicate (column op value). Returns matched rows with optional projection.
xlsx_aggregateGroup-by + aggregate (sum / count / mean / min / max / median / std).
xlsx_sortMulti-column sort with ascending / descending per column.
xlsx_value_countsFrequency table for a column (pandas .value_counts()).
xlsx_pivotCompute a fresh pivot table from raw data — pandas pivot_table() shape.
xlsx_evalEvaluate freeform formulas or recompute cell refs with our own recalc engine — no third-party formula engine. A formula using a function we haven't implemented yet returns an honest "not supported yet" error, never a wrong value.

Structure-preservation — the moat (pandas drops every one of these on read)

ToolWhat it does
xlsx_named_rangesList every named range with scope, ref, and value preview.
xlsx_tablesList Excel ListObjects (Tables) with column headers, data range, totals row.
xlsx_formulasDump every formula across the workbook (cell, sheet, formula text, cached value).
xlsx_data_validationsList cell-level validation rules (dropdowns, numeric/date bounds, text-length, custom).
xlsx_hyperlinksList hyperlinks with kind classifier (external / internal / mailto / unknown).
xlsx_conditional_formatsList CF rules (color scales, data bars, icon sets, formula-based highlights, top-N, duplicates).
xlsx_stylesNumber formats + fonts + fills + alignment, rolled up per sheet or detailed per cell.
xlsx_commentsBoth legacy notes AND threaded conversations (multi-author, with display-name resolution).
xlsx_protectionSheet locks + per-cell locked/hidden flags + workbook structure/window locks.
xlsx_merged_cellsLayout-aware merge listing with master values + kind heuristic (header / horizontal / vertical / block).
xlsx_chartsChart spec (type, title, series formula refs, axis titles) — read straight from the chart XML parts most spreadsheet libraries ignore.
xlsx_imagesEmbedded image inventory (format, size, sheet, anchor cells).
xlsx_pivot_tablesPre-existing pivot definitions — location, source, row/col/page/data fields with agg functions.
xlsx_slicers_timelinesModern Excel filter UI — slicers (table/pivot bound) + timelines (date-range with selection).
xlsx_external_linksWorkbook-to-workbook references with target classification + warning when paths break on share.
xlsx_print_settings"What would Excel print?" — print area, paper size, margins, headers/footers, print titles.
xlsx_form_controlsInteractive widgets — checkboxes, buttons, drop-downs, spinners, scroll bars, list boxes — with linked cell + bounds.
xlsx_macrosVBA macro presence + module-name heuristics + safety advice (does NOT extract source by policy).

Integrations

ToolWhat it does
xlsx_post_slackPost a workbook to a Slack channel as a file attachment with an optional message. BYOA — the agent supplies the user's Slack bot token (xoxb-…); the token is forwarded to Slack and never persisted. Uses Slack's external upload flow.
xlsx_post_teamsPost a workbook to a Microsoft Teams channel as a file attachment in a channel message, with an optional message. BYOA — the agent supplies the user's Microsoft Graph access token (JWT); the token is forwarded to Microsoft and never persisted. Uses Graph's filesFolder + upload-session + post-message flow.

Integrity verification

ToolWhat it does
xlsx_stampSign a workbook with a cryptographic "integrity verification" stamp — Ed25519-signed claims (named factual checks + their pass/fail/skip status + a content hash) embedded in docProps/custom.xml. The stamp travels with the file across saves; a recipient can verify it later to confirm the file hasn't been tampered with since signing. Factual attestations only — never an opinion-shaped seal of approval.
xlsx_verify_stampVerify a workbook's embedded stamp. Returns (a) whether the Ed25519 signature is valid against the registered public key, (b) whether the workbook bytes match the hash IN the signed claims, and (c) the full check-result content of the stamp. Three distinct trust signals — signature integrity, content integrity, and what was originally attested.
xlsx_receiptAttach an AI-generation receipt — Ed25519-signed claims describing the caller-declared agent identity (name, display name, identity URL), generation timestamp, content hash, optional source-file hashes, optional prompt hash, optional MCP tools called, and an optional description. Honesty boundary (load-bearing): the server signs the caller-declared agent.name — it does NOT verify the caller actually IS that agent. Cryptographic identity binding (per-agent issued signing keys) is v1.1+ scope.
xlsx_verify_receiptVerify a workbook's embedded receipt. Returns the same three trust signals as xlsx_verify_stamp plus the caller-declared agent identity AS declared (no UI affordances implying cryptographic identity verification). Use to surface "where did this file come from?" — backed by the server's signature over caller honest declaration.

Healer — external-reference breakage

Workbooks rot. A file moves and #REF! propagates through every dependent formula. A Power Query connection embeds credentials nobody can rotate. A defined name points at an external workbook that doesn't exist anymore. The healer family diagnoses these classes and applies targeted cures — read-only diagnosis, simulated-before-applied repair, and a high-level intent path when the agent doesn't want to spell out individual cure operations.

ToolWhat it does
xlsx_healer_diagnoseStructured report of external-reference breakage — broken external refs, defined-name external refs, Power Query connections with embedded credentials, #REF! propagation maps, multi-hop chains. Read-only.
xlsx_healer_simulateShow what a specific cure operation would change before applying it — same shape as xlsx_healer_cure but read-only. Use to preview impact when the agent is uncertain whether to proceed.
xlsx_healer_cureApply ONE specific cure operation (e.g., strip broken external refs, harmonize a defined name, replace #REF! propagation with a deterministic value). Save-As shape; the source workbook is preserved unless confirm:true is set with mode:"in_place".
xlsx_healer_intentHigh-level intent path — make-it-work, make-standalone, migrate — translated into the right sequence of cure ops. For when the agent knows the goal but not the operation.

Tool responses include a citation footer and a _meta block (tool name, version, tier, request ID, powered_by). Both pass through verbatim; nothing is stripped.


Tools

All 76 tools the MCP server exposes (the hosted tools/list, read at start-up). Invoke any by asking your agent in plain English, or call the API/CLI directly.

Read & explore

  • xlsx_read — read an .xlsx file by path and return a rendered markdown/JSON/SQL representation. Also reads a live Google Sheet: pass source:"gsheets" with the spreadsheet_id and a read-only Google OAuth token you supply (token-injected — read-only, no write; the server never mints or brokers Google credentials). Same rendered output as reading the equivalent .xlsx.
  • xlsx_read_handle — read a workbook that has already been uploaded to the server via the chunked upload flow, by its server-side cache handle, WITHOUT re-transferring the bytes. Returns the same shape as xlsx_read (text / json / markdown) but skips the file_b64 round-trip.
  • xlsx_validate — soundness check on a LOCAL .xlsx file — parses the workbook with the server's own OOXML engine and reports whether it loads cleanly (truncated zip, encrypted container, no worksheets, or a damaged sheet body each fail), with a per-sheet structural summary.

Inspect structure

Documentation truncated — see the full README on GitHub.

Reviews

No reviews yet

Be the first to review this server!