X

Xlsx Tools MCP

by ruriazz · io.github.ruriazz/xlsx-tools-mcp

MCP server for accurately reading and writing Excel .xlsx files while preserving structure, styles, and formulas. Provides tools for inspecting, editing, and aggregating spreadsheet data, with optional LibreOffice recalculation.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-ruriazz-xlsx-tools-mcp": {
      "command": "uvx",
      "args": [
        "xlsx-tools-mcp"
      ],
      "env": {
        "XLSX_MCP_FILES": "<VALUE>",
        "XLSX_MCP_RECALC_TIMEOUT": "60",
        "XLSX_MCP_LOCK_TIMEOUT": "10",
        "XLSX_MCP_ALLOWED_DIRS": "<VALUE>",
        "XLSX_MCP_AUTO_BACKUP": "<VALUE>",
        "XLSX_MCP_BACKUP_DIR": "<VALUE>",
        "XLSX_MCP_RECALC_MODE": "<VALUE>",
        "XLSX_MCP_MAX_PART_BYTES": "<VALUE>",
        "XLSX_MCP_RIPPLE": "<VALUE>",
        "XLSX_MCP_RIPPLE_MAX_CELLS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_ROWS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OP": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-ruriazz-xlsx-tools-mcp": {
      "command": "uvx",
      "args": [
        "xlsx-tools-mcp"
      ],
      "env": {
        "XLSX_MCP_FILES": "<VALUE>",
        "XLSX_MCP_RECALC_TIMEOUT": "60",
        "XLSX_MCP_LOCK_TIMEOUT": "10",
        "XLSX_MCP_ALLOWED_DIRS": "<VALUE>",
        "XLSX_MCP_AUTO_BACKUP": "<VALUE>",
        "XLSX_MCP_BACKUP_DIR": "<VALUE>",
        "XLSX_MCP_RECALC_MODE": "<VALUE>",
        "XLSX_MCP_MAX_PART_BYTES": "<VALUE>",
        "XLSX_MCP_RIPPLE": "<VALUE>",
        "XLSX_MCP_RIPPLE_MAX_CELLS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_ROWS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OP": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-ruriazz-xlsx-tools-mcp": {
      "command": "uvx",
      "args": [
        "xlsx-tools-mcp"
      ],
      "env": {
        "XLSX_MCP_FILES": "<VALUE>",
        "XLSX_MCP_RECALC_TIMEOUT": "60",
        "XLSX_MCP_LOCK_TIMEOUT": "10",
        "XLSX_MCP_ALLOWED_DIRS": "<VALUE>",
        "XLSX_MCP_AUTO_BACKUP": "<VALUE>",
        "XLSX_MCP_BACKUP_DIR": "<VALUE>",
        "XLSX_MCP_RECALC_MODE": "<VALUE>",
        "XLSX_MCP_MAX_PART_BYTES": "<VALUE>",
        "XLSX_MCP_RIPPLE": "<VALUE>",
        "XLSX_MCP_RIPPLE_MAX_CELLS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_ROWS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OP": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-ruriazz-xlsx-tools-mcp": {
      "command": "uvx",
      "args": [
        "xlsx-tools-mcp"
      ],
      "env": {
        "XLSX_MCP_FILES": "<VALUE>",
        "XLSX_MCP_RECALC_TIMEOUT": "60",
        "XLSX_MCP_LOCK_TIMEOUT": "10",
        "XLSX_MCP_ALLOWED_DIRS": "<VALUE>",
        "XLSX_MCP_AUTO_BACKUP": "<VALUE>",
        "XLSX_MCP_BACKUP_DIR": "<VALUE>",
        "XLSX_MCP_RECALC_MODE": "<VALUE>",
        "XLSX_MCP_MAX_PART_BYTES": "<VALUE>",
        "XLSX_MCP_RIPPLE": "<VALUE>",
        "XLSX_MCP_RIPPLE_MAX_CELLS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_ROWS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OP": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-ruriazz-xlsx-tools-mcp": {
      "command": "uvx",
      "args": [
        "xlsx-tools-mcp"
      ],
      "env": {
        "XLSX_MCP_FILES": "<VALUE>",
        "XLSX_MCP_RECALC_TIMEOUT": "60",
        "XLSX_MCP_LOCK_TIMEOUT": "10",
        "XLSX_MCP_ALLOWED_DIRS": "<VALUE>",
        "XLSX_MCP_AUTO_BACKUP": "<VALUE>",
        "XLSX_MCP_BACKUP_DIR": "<VALUE>",
        "XLSX_MCP_RECALC_MODE": "<VALUE>",
        "XLSX_MCP_MAX_PART_BYTES": "<VALUE>",
        "XLSX_MCP_RIPPLE": "<VALUE>",
        "XLSX_MCP_RIPPLE_MAX_CELLS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_ROWS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OP": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-ruriazz-xlsx-tools-mcp": {
      "command": "uvx",
      "args": [
        "xlsx-tools-mcp"
      ],
      "env": {
        "XLSX_MCP_FILES": "<VALUE>",
        "XLSX_MCP_RECALC_TIMEOUT": "60",
        "XLSX_MCP_LOCK_TIMEOUT": "10",
        "XLSX_MCP_ALLOWED_DIRS": "<VALUE>",
        "XLSX_MCP_AUTO_BACKUP": "<VALUE>",
        "XLSX_MCP_BACKUP_DIR": "<VALUE>",
        "XLSX_MCP_RECALC_MODE": "<VALUE>",
        "XLSX_MCP_MAX_PART_BYTES": "<VALUE>",
        "XLSX_MCP_RIPPLE": "<VALUE>",
        "XLSX_MCP_RIPPLE_MAX_CELLS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_ROWS": "<VALUE>",
        "XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OP": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
XLSX_MCP_FILES No Comma-separated list of alias=absolute/path entries or bare absolute paths to preload workbooks at startup. Example: report=/data/report.xlsx,sales=/data/sales.xlsx
XLSX_MCP_RECALC_TIMEOUT No Timeout in seconds for the LibreOffice recalculation pass. Defaults to 60. Default: 60
XLSX_MCP_LOCK_TIMEOUT No Timeout in seconds for acquiring the per-file lock before failing. Defaults to 10. Default: 10
XLSX_MCP_ALLOWED_DIRS No Comma or semicolon-separated list of allowed directories to restrict file access (supports case-insensitivity on Windows)
XLSX_MCP_AUTO_BACKUP No Enable automatic backup creation before workbook mutations (default true)
XLSX_MCP_BACKUP_DIR No Optional custom directory to store backup files instead of beside the target file
XLSX_MCP_RECALC_MODE No How formula results are written back after LibreOffice recalculates: inject (default, keeps the file's structure) or roundtrip
XLSX_MCP_MAX_PART_BYTES No Largest uncompressed XML part the server will parse, in bytes (default 268435456)
XLSX_MCP_RIPPLE No Report other formula results changed by a write (default true)
XLSX_MCP_RIPPLE_MAX_CELLS No Skip the ripple report above this many formula cells (default 200000)
XLSX_MCP_CHANGE_LOG No Keep a change log inside the workbook on a very hidden sheet (default false)
XLSX_MCP_CHANGE_LOG_MAX_ROWS No Maximum change-log rows kept per workbook (default 10000)
XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OP No Maximum per-cell change-log entries per tool call (default 500)

Similar servers