Data as of

Excel MCP Server for VS Code: Setup & Config

This Excel MCP Server gives VS Code range-based access to workbook data and formatting.

What you can do with Excel in VS Code

Inspect and change workbook ranges with formulas, tables, and per-cell styles in the same integration.

  • Review formulas or style metadata instead of reading only displayed values.
  • Populate a new sheet and give its data a named table range.
  • Copy a worksheet or apply per-cell presentation changes.

Before you start: Excel in VS Code

  • Node.js version 20.x or above
  • MCP client able to launch the npm package

The command and flags match the README configuration for other platforms. Its Windows configuration instead launches cmd with /c, then npx and the same package flags. Tool calls use an absolute workbook path. The paging environment key is documented with a default value of 4000.

Excel VS Code configuration

  1. Choose VS Code configuration scope

    For Excel MCP Server, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.

  2. Add Excel MCP Server to VS Code

    Use the excel-mcp-server-negokaz entry below in servers. Keep Excel MCP Server's documented stdio connection fields and your other VS Code entries.

  3. Check Excel MCP Server in VS Code

    Excel MCP Server: Start in VS Code’s MCP controls; inspect output and trust prompts.

Config file · Workspace: .vscode/mcp.json

JSON
{
  "servers": {
    "excel-mcp-server-negokaz": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "--yes",
        "@negokaz/excel-mcp-server"
      ],
      "env": {
        "EXCEL_MCP_PAGING_CELLS_LIMIT": "<optional page-size ceiling in cells; documented default is 4000>"
      }
    }
  }
}

Excel tools available to VS Code

Excel's stored tool list documents 7 tools; compare it with VS Code's connected tool list, because the stored list is not a live check.

excel_describe_sheets

Look for excel_describe_sheets among VS Code's agent-mode tools after starting Excel through the MCP controls.

excel_read_sheet

Look for excel_read_sheet among VS Code's agent-mode tools after starting Excel through the MCP controls.

Inspect a paginated cell range, choosing whether formulas or styling details are included.

excel_copy_sheet

Look for excel_copy_sheet among VS Code's agent-mode tools after starting Excel through the MCP controls.

Create a new worksheet by copying a specified source sheet.

excel_write_to_sheet

Look for excel_write_to_sheet among VS Code's agent-mode tools after starting Excel through the MCP controls.

excel_create_table

Look for excel_create_table among VS Code's agent-mode tools after starting Excel through the MCP controls.

Define a named table over a chosen worksheet range.

excel_format_range

Look for excel_format_range among VS Code's agent-mode tools after starting Excel through the MCP controls.

Assign styles cell by cell using an array aligned to the selected range.

excel_screen_capture

Look for excel_screen_capture among VS Code's agent-mode tools after starting Excel through the MCP controls.

Excel: full stored tool descriptions

Troubleshooting Excel in VS Code

  • Make npx @negokaz/excel-mcp-server (Node.js/npm) available in the workspace, container, or remote environment hosting Excel MCP Server. Start through VS Code's MCP controls; inspect output and trust prompts.
  • For Excel MCP Server, keep EXCEL_MCP_PAGING_CELLS_LIMIT out of version control; VS Code documents input variables and secret handling.
  • Excel MCP Server uses stdio here: VS Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
  • Known limitation: Screenshot capture and live editing are not documented for non-Windows platforms.
  • Known limitation: The npm launch requires Node.js 20.x or a newer release.
  • General VS Code troubleshooting lives in the /clients/vscode guide.

Excel MCP Server — details. VS Code guide

Frequently asked questions

For Excel MCP Server, edit workspace .vscode/mcp.json. VS Code requires servers rather than mcpServers; preserve the displayed type on each entry.

VS Code's excel-mcp-server-negokaz example uses stdio.

Excel MCP Server's VS Code configuration invokes npx @negokaz/excel-mcp-server (Node.js/npm).

VS Code's Excel MCP Server example references EXCEL_MCP_PAGING_CELLS_LIMIT. Check these names if startup or authentication fails; the example alone does not distinguish required from optional values.

Excel MCP Server's stored list contains 7 tools, including excel_describe_sheets, excel_read_sheet, excel_copy_sheet. Compare those names with VS Code's connected tool list; the stored list is not a live check.

The documented tools take fileAbsolutePath for the workbook. Sheet-specific calls then identify the sheet and, where applicable, a cell range.

Yes. The style array must match the selected range, but a null entry means that cell's styling is not changed.