Troubleshooting¶
Hitting a snag? Most first-time issues fall into one of the cases below. For general questions about what the tool is and what it needs, see the FAQ. If none of these help, open a GitHub issue.
Common issues¶
"Workbook is locked" or "Cannot open file"¶
Close all open Excel windows before running Excel MCP Server. It needs exclusive access to the workbook (an Excel COM limitation), so a file that's already open in Excel can't be opened for automation.
mcp-excel / excelcli is not recognized¶
The executable isn't on your PATH.
Either add the folder containing the .exe to your PATH (see the MCP Server or CLI installation guide), or use the full path in your MCP client config, e.g. "command": "C:\\Tools\\ExcelMcp\\mcp-excel.exe".
VBA commands fail: "Programmatic access to Visual Basic Project is not trusted"¶
VBA operations need one manual Excel setting turned on:
- Open Excel → File → Options → Trust Center
- Click Trust Center Settings
- Select Macro Settings
- Check "Trust access to the VBA project object model"
- Click OK twice
This is a Windows security setting — Excel MCP Server never changes it for you. Also remember VBA lives in .xlsm workbooks, not .xlsx.
DAX queries fail (evaluate, execute-dmv)¶
DAX query execution needs the Microsoft Analysis Services OLE DB Provider (MSOLAP), which isn't always installed with Office.
- Easiest: install Power BI Desktop (it includes MSOLAP).
- Alternative: install the OLE DB Driver for Analysis Services.
Protected (IRM / AIP) workbooks won't open¶
Rights-managed files need Excel visible so the sign-in or policy prompt can appear. Keep Excel on screen while opening:
With the MCP Server, ask your assistant to "show me Excel while you work" so the authentication prompt is interactable. These files are opened read-only.
Changes aren't taking effect / old version still running¶
Fully restart your MCP client (close VS Code or Claude Desktop completely, including any background windows, then reopen). MCP servers are launched by the client, so a stale process can linger until you restart it.
npx commands fail¶
Auto-configuration (add-mcp) and skill installation use npx, which needs Node.js:
Still stuck?¶
- General questions: FAQ
- Task guides: Refresh Power Query · PivotTables · DAX & the Data Model · VBA macros
- Installation details: MCP Server · CLI
- How it works: Architecture
- Report a bug or ask a question: GitHub Issues