Complete installation instructions for Excel MCP Server - VS Code Extension, MCP Server, and CLI tool
Complete installation instructions for the ExcelMcp MCP Server and CLI tool.
evaluate, execute-dmv actions)
npx commands (add-mcp auto-configuration, agent skills). Install with winget install OpenJS.NodeJS.LTS or from nodejs.orgUse this order to avoid setup confusion:
excelcli) for scripting/RPABest for: GitHub Copilot users, beginners, anyone wanting automatic configuration
Ctrl+Shift+X (Extensions)chatSkillsMarketplace Link: Excel MCP VS Code Extension
Best for: Claude Desktop users who want the simplest installation
excel-mcp-{version}.mcpb from the latest release.mcpb file (or drag-and-drop onto Claude Desktop)That’s it! The MCPB bundle includes everything needed - no .NET installation required.
Best for: Other MCP clients (Cursor, Windsurf, Cline, Claude Code, Codex), advanced users
Check if already installed:
dotnet --version
# Should show 10.0.x or higher
If not installed:
winget install Microsoft.DotNet.Runtime.10
Manual Download: .NET 10 Downloads
# Install MCP Server tool (command: mcp-excel)
dotnet tool install --global Sbroenne.ExcelMcp.McpServer
# Verify installation
dotnet tool list --global | Select-String "ExcelMcp"
Optional: If you also want the standalone CLI command (
excelcli) for scripting/RPA, install it separately:dotnet tool install --global Sbroenne.ExcelMcp.CLI
Use add-mcp to configure all detected coding agents with a single command:
npx add-mcp "mcp-excel" --name excel-mcp
This auto-detects and configures Cursor, VS Code, Claude Code, Claude Desktop, Codex, Zed, Gemini CLI, and more. Use flags to customize:
# Configure specific agents only
npx add-mcp "mcp-excel" --name excel-mcp -a cursor -a claude-code
# Configure globally (user-wide, all projects)
npx add-mcp "mcp-excel" --name excel-mcp -g
# Non-interactive (skip prompts)
npx add-mcp "mcp-excel" --name excel-mcp --all -y
Requires: Node.js for
npx. Install withwinget install OpenJS.NodeJS.LTSif not already available. No permanentadd-mcpinstallation needed —npxdownloads, runs, and cleans up automatically.
Quick Start: Ready-to-use config files for all clients are available in examples/mcp-configs/
For GitHub Copilot (VS Code):
Create .vscode/mcp.json in your workspace:
{
"servers": {
"excel-mcp": {
"command": "mcp-excel"
}
}
}
For GitHub Copilot (Visual Studio):
Create .mcp.json in your solution directory or %USERPROFILE%\.mcp.json:
{
"servers": {
"excel-mcp": {
"command": "mcp-excel"
}
}
}
For Claude Desktop:
%APPDATA%\Claude\claude_desktop_config.jsonexcel-mcp entry into your existing mcpServers section{
"mcpServers": {
"excel-mcp": {
"command": "mcp-excel",
"args": [],
"env": {}
}
}
}
For Cursor:
%APPDATA%\Cursor\User\globalStorage\mcp\mcp.json{
"mcpServers": {
"excel-mcp": {
"command": "mcp-excel",
"args": [],
"env": {}
}
}
}
For Cline (VS Code Extension):
{
"mcpServers": {
"excel-mcp": {
"command": "mcp-excel",
"args": [],
"env": {}
}
}
}
For Windsurf:
{
"mcpServers": {
"excel-mcp": {
"command": "mcp-excel",
"args": [],
"env": {}
}
}
}
Restart your MCP client, then ask:
Create an empty Excel file called "test.xlsx"
If it works, you’re all set! 🎉
💡 Tip: Want to watch the AI work? Ask:
Show me Excel while you work on test.xlsx
This opens Excel visibly so you can see every change in real-time - great for debugging and demos!
Best for: Scripting, RPA, CI/CD pipelines, automation without AI
# Install CLI as a separate .NET tool
dotnet tool install --global Sbroenne.ExcelMcp.CLI
# Verify CLI is available
excelcli --version
⚠️ Version Sync: If you install both MCP Server and CLI, keep both packages on the same version.
# Session-based workflow (keeps Excel open between commands)
excelcli -q session open test.xlsx # Returns session ID
excelcli -q sheet list --session <session-id> # List worksheets
excelcli -q session close --session <session-id> --save
💡 Tip: Use
-q(quiet mode) to suppress banner and get JSON output only - perfect for scripting and automation.
CLI Documentation: CLI Guide
Best for: Adding AI guidance to coding agents (Copilot, Cursor, Windsurf, Claude Code, Gemini, Codex, etc.)
Skills are auto-installed by the VS Code extension. For other platforms:
# CLI skill (for coding agents - token-efficient workflows)
npx skills add sbroenne/mcp-server-excel --skill excel-cli
# MCP skill (for conversational AI - rich tool schemas)
npx skills add sbroenne/mcp-server-excel --skill excel-mcp
# Install for specific agents
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a cursor
npx skills add sbroenne/mcp-server-excel --skill excel-mcp -a claude-code
# Install globally (user-wide)
npx skills add sbroenne/mcp-server-excel --skill excel-cli --global
Supports 43+ agents including claude-code, github-copilot, cursor, windsurf, gemini-cli, codex, goose, cline, continue, replit, and more.
MCP Server and CLI:
dotnet tool list --global | Select-String "ExcelMcp"
# Or check CLI version
excelcli --version
⚠️ If both are installed: update MCP Server and CLI together so versions stay in sync.
Step 1: Update both tools
dotnet tool update --global Sbroenne.ExcelMcp.McpServer
dotnet tool update --global Sbroenne.ExcelMcp.CLI
Step 2: Verify update
# Check installed version
dotnet tool list --global | Select-String "ExcelMcp"
# Verify both tools work
excelcli --version
mcp-excel --version
Step 3: Restart your MCP client
Error: “Tool not found”
# The tool may need to be reinstalled
dotnet tool uninstall --global Sbroenne.ExcelMcp.McpServer
dotnet tool install --global Sbroenne.ExcelMcp.McpServer
Error: “Access denied”
dotnet tool update --global Sbroenne.ExcelMcp.McpServer --install-dir ~/.dotnet/tools
Solution: Fully restart your MCP client
Still not working?
# Reinstall the tool
dotnet tool uninstall --global Sbroenne.ExcelMcp.McpServer
dotnet tool install --global Sbroenne.ExcelMcp.McpServer
If an update causes issues, you can downgrade:
# Uninstall current version
dotnet tool uninstall --global Sbroenne.ExcelMcp.McpServer
# Install specific version
dotnet tool install --global Sbroenne.ExcelMcp.McpServer --version 1.2.3
# Replace 1.2.3 with the version you want
Before updating, check the release notes:
Solution: Install .NET 10 SDK or Runtime (see Step 1 above)
Check if tool is installed:
dotnet tool list --global | Select-String "ExcelMcp"
Reinstall if missing:
dotnet tool uninstall --global Sbroenne.ExcelMcp.McpServer
dotnet tool install --global Sbroenne.ExcelMcp.McpServer
Solution: Close all Excel windows before running ExcelMcp
ExcelMcp requires exclusive access to workbooks (Excel COM limitation).
dotnet tool uninstall --global Sbroenne.ExcelMcp.McpServer
dotnet tool uninstall --global Sbroenne.ExcelMcp.CLI
After installation:
Agent Skills provide domain-specific guidance to AI coding assistants, helping them use Excel MCP Server more effectively.
Note: Agent Skills are for coding agents (GitHub Copilot, Claude Code, Cursor). Claude Desktop uses MCP Prompts instead (included automatically via the MCP Server).
| Skill | Target | Best For |
|---|---|---|
| excel-cli | CLI Tool | Coding agents (Copilot, Cursor, Windsurf) - token-efficient, excelcli --help discoverable |
| excel-mcp | MCP Server | Conversational AI (Claude Desktop, VS Code Chat) - rich tool schemas, exploratory workflows |
VS Code Extension: Skills are installed automatically to ~/.copilot/skills/.
Other Platforms (Claude Code, Cursor, Windsurf, Gemini, Codex, etc.):
# Install CLI skill (recommended for coding agents - Copilot, Cursor, Windsurf, Codex, etc.)
npx skills add sbroenne/mcp-server-excel --skill excel-cli
# Install MCP skill (for conversational AI - Claude Desktop, VS Code Chat)
npx skills add sbroenne/mcp-server-excel --skill excel-mcp
# Interactive install - prompts to select excel-cli, excel-mcp, or both
npx skills add sbroenne/mcp-server-excel
# Install specific skill directly
npx skills add sbroenne/mcp-server-excel --skill excel-cli # Coding agents
npx skills add sbroenne/mcp-server-excel --skill excel-mcp # Conversational AI
# Install both skills
npx skills add sbroenne/mcp-server-excel --skill '*'
# Target specific agent (optional - auto-detects if omitted)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a cursor
npx skills add sbroenne/mcp-server-excel --skill excel-mcp -a claude-code
Manual Installation:
excel-skills-v{version}.zip from GitHub Releasesskills/excel-cli/ - for coding agents (Copilot, Cursor, Windsurf)skills/excel-mcp/ - for conversational AI (Claude Desktop, VS Code Chat)~/.copilot/skills/excel-cli/ or ~/.copilot/skills/excel-mcp/.claude/skills/excel-cli/ or .claude/skills/excel-mcp/.cursor/skills/excel-cli/ or .cursor/skills/excel-mcp/See: Agent Skills Documentation
Happy automating! 🚀