SuperAPI AI Directory

xlide_mcp

Read, write, analyze and test VBA in Excel, Word, PowerPoint and Access files, with static analysis; the file layer works without Office installed.

Open website

About this tool

xlide_mcp is an MCP (Model Context Protocol) server targeting the internal structure of Office files. Its core goal is to make VBA projects, form designs, and Power Query M code in Excel, Word, PowerPoint, and Access files readable, writable, analyzable, and testable objects without having to open the Office application.

Purpose

Traditionally, when an AI agent fixes a macro, it can only get a copied code snippet and has no way to know what else is in the project; or it asks the user to export the module and paste it back. Both approaches treat the Office file as an opaque black box. xlide_mcp gives the server direct access to the inside of the file, allowing the agent to handle VBA like an ordinary text project, with boundary controls attached: if a module is modified after being read, writes are rejected; if analysis fails, the change fails; run operations take place in an application instance created by the server itself and are subject to a deadline; any operation that cannot be undone is left to the user to decide.

Main capabilities

File and code project operations

  • Read, write, and analyze VBA code, supporting Excel, Word, PowerPoint, Access, and Visual Basic 6 projects (opened the same way).
  • Static analysis:xlide_check_cells List Excel's green triangle error checks, including numbers stored as text and inconsistent formulas, with pagination support.
  • Document-adjacent editing: Power Query is available in .xlsx, .xlsm, .xlsb, .xlam; package-based OOXML worksheet editing is available in .xlsx, .xlsm, .xlam.
  • The file list explains which extensions cannot be opened and why, without omitting anything without reason.

Execution and testing (Windows desktop applications only)

  • xlide_run_macro、xlide_run_vba、xlide_run_tests、xlide_compile_check: Run macros or VBA code in an Office instance created by the server.
  • xlide_is_open、xlide_open_in_app、xlide_close_in_app: Operate on a specified file in the Office application the user is running.

Live editor bridge

  • xlide_live_sessions、xlide_live_state、xlide_live_request、xlide_live_read_module: Interact with a running xlide_vbide session, support reading line ranges of long unsaved source code, and return a content token for comparison with saved modules.

Change tracking

  • xlide_git_changes: Report changes since any revision, one record per module or query, with a unified diff.
  • xlide-mcp --textconv: Act as a git textconv driver, so that files such as .xlsm display VBA, Power Query, and worksheet listings as text in git diff (excluding cell values).
  • XLIDE bridge within VS Code: each write notifies the running XLIDE to mark it as an agent edit, opens a diff, and provides Keep/Revert options.

Usage

Installation and configuration

The server starts via stdio. For Claude Desktop, Claude Code, or any client that starts servers via stdio, just point the client at it. For VS Code, configure it in the workspace root's .vscode/mcp.json .

It is also possible to install nothing and let uv fetch it on first run.uv is a binary file that installs its own Python, so it can run even if neither is present on the machine.--live Additional dependencies are safe on all platforms: what it pulls is marked as sys_platform == 'win32', which resolves to empty on non-Windows, so the same configuration works everywhere. For file-layer only, remove the --from pair.uvx uses the latest release version by default; you can pin a version with xlide-mcp@1.2.4 .

The file layer provides a Dockerfile, which is the part that does not require installing Office. Mount the folder containing the files to /workspace, because this is the root directory the container is restricted to.

--root is the security boundary. Every path accepted by the tool is resolved (including symlinks) and rejected unless it falls within one of the roots. Add --read-only to allow reading and analysis while denying all writes.

New clients should first call xlide_doctor: it reports the workspace roots, the installed layers, which Office applications are present on this machine, and whether each application has the Trust Center settings required for module injection.

Typical use cases

  • Batch-analyze, rewrite, or test VBA modules in a CI/container environment without Office.
  • When fixing bugs or refactoring macros, let an AI agent fully understand the entire VBA project rather than a single piece of code.
  • Review the changes an agent makes to Office files, via git diff or the VS Code bridge.
  • Run macro tests or compile checks on Windows.

Limitations

  • The file layer (VBA, Power Query, OOXML worksheet editing) requires no Office and is available cross-platform.
  • Reading .xlsb and .xls cells, writing .xlsb cells, and running macros or tests require Windows and a desktop application.
  • .xlsb grids are stored as binary records, and.xls is stored in a compound file, neither of which is OOXML. When processed through Excel on Windows, the result is marked source: excel and recalculated: true, and this path only returns values;.xls cells cannot be written through this server.
  • .xlsx has no VBA project by design, but is still listed because queries and worksheets are fully reachable.
  • Excel, Word, and PowerPoint do not write a VBA project into a macro-enabled file until the first macro exists, so a .xlsm that has never had code written to it has no project; this is a normal file, and writing the first module creates the project. An Access database may also have no project when it has never held code, andxlide_write_module is created along with the first module, or xlide_create_project adds an empty project to an existing .accdb.
  • Cell values are the results last calculated by Excel. Formulas written here have no result in the file until Excel next opens it.calculate=true Use pyOfficeEditor's formula engine to compute results, and it will identify any cells that cannot be computed.
  • Hard-to-undo operations such as deleting modules, overwriting cells that contain data, and writing to signed or password-protected projects require a user decision; overwriting cells and writing to protected projects are rejected until the call carries the allow flag.

Working rules

The server's own instructions contain the following rules, which every connected agent reads:

  • The VBA inside the file is the single source of truth; exported .bas and .cls files are copies and can become stale.
  • Reads return a content token, which is passed in when writing back; if the module was modified in the meantime, the write is rejected.
  • Analyze after every change; an error means the build fails.
  • Runs happen in an Office instance created by the server, so they can be terminated. The user's own application is touched only on the specified files through the three tools above; unsaved work is closed only when the call says to save or discard, and processes are ended only when requested, and only processes that Windows identifies as holding the file.

Security

Vulnerabilities should be submitted through the private vulnerability reporting channel, not as public issues. SECURITY.md explains what to include and which versions will receive fixes. CodeQL and Semgrep scan the server and release workflows, pip-audit checks runtime dependencies, and ClamAV and YARA-X (using YARA Forge rules) scan every tracked file and the built wheel and sdist on every push, pull request, daily run, and release. Accidental findings, scan warnings, or missing scans block a release. Every successful release includes a security report and SARIF results as downloadable assets. Dependabot proposes dependency and workflow updates for review.