xlsx-tools-mcp

v0.4.0
io.github.ruriazz/xlsx-tools-mcp Checked 6 hours ago Published 9 days ago

MCP server for accurate, structure-preserving read/write access to Excel (.xlsx) files

Values you need

VariableWhat it is
XLSX_MCP_FILESoptional Comma or semicolon-separated alias=path pairs of workbooks to preload at startup
XLSX_MCP_RECALC_TIMEOUToptional Timeout in seconds for the LibreOffice recalculation pass (default 60)
XLSX_MCP_LOCK_TIMEOUToptional Timeout in seconds to acquire the per-file lock (default 10)
XLSX_MCP_ALLOWED_DIRSoptional Comma or semicolon-separated list of allowed directories to restrict file access (supports case-insensitivity on Windows)
XLSX_MCP_AUTO_BACKUPoptional Enable automatic backup creation before workbook mutations (default true)
XLSX_MCP_BACKUP_DIRoptional Optional custom directory to store backup files instead of beside the target file
XLSX_MCP_RECALC_MODEoptional How formula results are written back after LibreOffice recalculates: inject (default, keeps the file's structure) or roundtrip
XLSX_MCP_MAX_PART_BYTESoptional Largest uncompressed XML part the server will parse, in bytes (default 268435456)
XLSX_MCP_RIPPLEoptional Report other formula results changed by a write (default true)
XLSX_MCP_RIPPLE_MAX_CELLSoptional Skip the ripple report above this many formula cells (default 200000)
XLSX_MCP_CHANGE_LOGoptional Keep a change log inside the workbook on a very hidden sheet (default false)
XLSX_MCP_CHANGE_LOG_MAX_ROWSoptional Maximum change-log rows kept per workbook (default 10000)
XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OPoptional Maximum per-cell change-log entries per tool call (default 500)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add xlsx-tools-mcp -- uvx xlsx-tools-mcp==0.4.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "xlsx-tools-mcp": {
      "args": [
        "xlsx-tools-mcp==0.4.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "xlsx-tools-mcp": {
      "args": [
        "xlsx-tools-mcp==0.4.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "xlsx-tools-mcp": {
      "args": [
        "xlsx-tools-mcp==0.4.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.xlsx-tools-mcp]
command = "uvx"
args = ["xlsx-tools-mcp==0.4.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_configured_files, list_sheets, get_workbook_info, read_sheet, get_cell, search_workbook, profile_sheet, query_sheet, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json