xlsx-tools-mcp
v0.4.0MCP server for accurate, structure-preserving read/write access to Excel (.xlsx) files
Values you need
| Variable | What it is | |
|---|---|---|
XLSX_MCP_FILES | optional | Comma or semicolon-separated alias=path pairs of workbooks to preload at startup |
XLSX_MCP_RECALC_TIMEOUT | optional | Timeout in seconds for the LibreOffice recalculation pass (default 60) |
XLSX_MCP_LOCK_TIMEOUT | optional | Timeout in seconds to acquire the per-file lock (default 10) |
XLSX_MCP_ALLOWED_DIRS | optional | Comma or semicolon-separated list of allowed directories to restrict file access (supports case-insensitivity on Windows) |
XLSX_MCP_AUTO_BACKUP | optional | Enable automatic backup creation before workbook mutations (default true) |
XLSX_MCP_BACKUP_DIR | optional | Optional custom directory to store backup files instead of beside the target file |
XLSX_MCP_RECALC_MODE | optional | How formula results are written back after LibreOffice recalculates: inject (default, keeps the file's structure) or roundtrip |
XLSX_MCP_MAX_PART_BYTES | optional | Largest uncompressed XML part the server will parse, in bytes (default 268435456) |
XLSX_MCP_RIPPLE | optional | Report other formula results changed by a write (default true) |
XLSX_MCP_RIPPLE_MAX_CELLS | optional | Skip the ripple report above this many formula cells (default 200000) |
XLSX_MCP_CHANGE_LOG | optional | Keep a change log inside the workbook on a very hidden sheet (default false) |
XLSX_MCP_CHANGE_LOG_MAX_ROWS | optional | Maximum change-log rows kept per workbook (default 10000) |
XLSX_MCP_CHANGE_LOG_MAX_CELLS_PER_OP | optional | 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.0Add 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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