---
title: "Excel MCP Server: Read and Edit .xlsx Files Without Excel"
url: "https://mcpshelf.co/servers/excel"
description: "Excel MCP Server lets an AI assistant create workbooks, write formulas, format cells and build charts with no Excel installed. Correct uvx config."
updated: "2026-10-27"
site: "MCP Shelf"
---

# Excel MCP Server

> Create, edit, format and chart .xlsx files, no Excel needed.

Source: https://mcpshelf.co/servers/excel  
Markdown: https://mcpshelf.co/servers/excel.md  
Generated: 2026-11-25T05:04:00.485Z

## Facts

- **Name:** Excel MCP Server
- **Tagline:** Create, edit, format and chart .xlsx files, no Excel needed.
- **Description:** Excel MCP Server is an open source MCP server that lets AI assistants create, read and edit .xlsx workbooks, including formulas, formatting, charts and pivot tables, without Microsoft Excel installed.
- **Repository:** https://github.com/haris-musa/excel-mcp-server
- **Package:** excel-mcp-server 2.2.2 (PyPI)
- **Install:** `claude mcp add excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks`
- **Transport:** stdio (local)
- **Auth:** No required keys or settings listed
- **Tools exposed:** 46: `create_workbook`, `describe_workbook`, `set_workbook_settings`, `list_workbooks`, `export_workbook`, `import_workbook`, `import_csv`, `export_csv`, `describe_sheet`, `create_sheet`, `rename_sheet`, `copy_sheet`, `delete_sheet`, `insert_rows_or_columns`, `delete_rows_or_columns`, `read_range`, `write_range`, `clear_range`, `copy_range`, `sort_range`, `transform_range`, `find_cells`, `replace_cells`, `trace_formula`, `goal_seek`, `format_range`, `merge_cells`, `set_sheet_layout`, `add_conditional_format`, `add_data_validation`, `set_table`, `create_chart`, `delete_chart`, `add_sparklines`, `delete_sparklines`, `create_pivot_table`, `delete_pivot_table`, `add_slicer`, `delete_slicer`, `set_defined_name`, `delete_defined_name`, `set_note`, `delete_note`, `insert_image`, `delete_image`, `read_vba`
- **Category:** Databases and data (https://mcpshelf.co/categories/databases)
- **Stats:** 4.3K GitHub stars, 50.6K downloads a week, last commit 27 Oct 2026, 0 upvotes on MCP Shelf
- **Install check:** Package checked
- **Listed:** 2026-10-26
- **Page updated:** 2026-10-27

## Full description

### What is Excel MCP Server?

**Excel MCP Server is an open source MCP server that lets AI assistants create, read and edit .xlsx workbooks, including formulas, formatting, charts and pivot tables, without Microsoft Excel installed.**

This server works on Excel files directly, so it runs on any machine, including servers without Office. The assistant can read ranges, write values and formulas, format cells, add charts and pivot tables, and manage sheets.

It can run over stdio for desktop clients or over HTTP if you want to host it.

|  |  |
| --- | --- |
| Made by | Haris Musa |
| GitHub | https://github.com/haris-musa/excel-mcp-server |
| Licence | MIT |
| PyPI package | [excel-mcp-server](https://pypi.org/project/excel-mcp-server/) 2.2.2 (21 Oct 2026) |
| GitHub stars | 4.3K |
| Downloads | 50.6K a week |
| Last commit | 27 Oct 2026 |
| Tools | 46 |
| Runs on | Your computer |
| Install check | Package checked |
| Category | [Databases and data](https://mcpshelf.co/categories/databases) |
| Works with | Claude Code, Cursor, Claude Desktop, VS Code, Codex, Windsurf |
| Setup checked | 27 Oct 2026 |
| Page updated | 27 Oct 2026 |

**Our check:** The npm package called "excel-mcp-server" has no link to this project. The project publishes to PyPI under that name, so it runs with uvx.

#### Try asking Excel MCP Server

- "Create a workbook with a monthly budget sheet and a chart of spending by category."
- "Add a pivot table to sales.xlsx that totals revenue by region."
- "Highlight every row in Sheet1 where the amount is over 1,000."

#### MCP Shelf take

> We started Excel on our own test machine on 26 Oct 2026 and it answered with 46 tools. 8 of the 46 only read; the other 38 can change things. Every tool comes with a useful description, all of them say whether they change things, and the tool list costs about 3,200 tokens of context before you ask a thing. Other directories point at a package with the same name that belongs to someone else; the config on this page installs the real one. It sits 3rd of 11 in its category on our shelf by GitHub stars (4.3K, with 50.6K downloads a week).

— MCP Shelf tests (numbers from our own runs), tested on 26 Oct 2026

### What tools does Excel MCP Server have?

We listed 46 tools on 26 Oct 2026. 8 only read; the rest can change things or run commands.

| Tool | Kind | What it is for |
| --- | --- | --- |
| `create_workbook` | changes | Makes a new, empty Excel file. |
| `describe_workbook` | reads | Lists a workbook's sheets, tables, names and sizes, as a first look. |
| `set_workbook_settings` | changes | Changes workbook-wide options such as calculation mode. |
| `list_workbooks` | reads | Lists the Excel files in the allowed folders. |
| `export_workbook` | reads | Sends a workbook from the server back to you when it runs remotely. |
| `import_workbook` | changes | Uploads a workbook to a remote server so it can be edited. |
| `import_csv` | changes | Pulls a CSV or TSV into a sheet and turns numbers and dates into real values the way Excel's own import does. |
| `export_csv` | changes | Saves a range out as a CSV file. |
| `describe_sheet` | reads | Summarises one sheet: used range, headers, tables, charts and frozen panes. |
| `create_sheet` | changes | Adds a new worksheet. |
| `rename_sheet` | changes | Renames a worksheet. |
| `copy_sheet` | changes | Duplicates a worksheet. |
| `delete_sheet` | changes | Deletes a worksheet. |
| `insert_rows_or_columns` | changes | Inserts rows or columns and keeps every formula reference right. |
| `delete_rows_or_columns` | changes | Deletes rows or columns and fixes every formula that pointed at them. |
| `read_range` | reads | Reads cell values and formulas, working out formula results even if the file was never opened in Excel. |
| `write_range` | changes | Writes values, formulas, dates or links into cells. |
| `clear_range` | changes | Empties a block of cells, keeping or removing formatting. |
| `copy_range` | changes | Copies cells to another place, with paste-special options. |
| `sort_range` | changes | Sorts rows by one or more columns. |
| `transform_range` | changes | Cleans data: removes duplicates, splits text to columns or fills a series. |
| `find_cells` | reads | Searches for values or formulas across a sheet. |
| `replace_cells` | changes | Finds and replaces text or values. |
| `trace_formula` | reads | Shows what a formula depends on and what depends on it, step by step, to find a wrong number. |
| `goal_seek` | changes | Changes one input until a formula hits the target you set. |
| `format_range` | changes | Sets fonts, fills, borders and number formats. |
| `merge_cells` | changes | Merges or unmerges cells. |
| `set_sheet_layout` | changes | Sets column widths, frozen panes, grouping, print setup and protection. |
| `add_conditional_format` | changes | Adds colour scales, data bars, icon sets or highlight rules to a range. |
| `add_data_validation` | changes | Adds dropdown lists or value limits to cells. |
| `set_table` | changes | Turns a range into an Excel table, with totals row and calculated columns. |
| `create_chart` | changes | Builds a native Excel chart, from bar and line to waterfall, treemap and funnel. |
| `delete_chart` | changes | Removes a chart. |
| `add_sparklines` | changes | Draws tiny in-cell line, column or win/loss charts. |
| `delete_sparklines` | changes | Removes sparklines. |
| `create_pivot_table` | changes | Builds a real PivotTable that Excel can refresh, with grouping and calculated fields. |
| `delete_pivot_table` | changes | Removes a PivotTable. |
| `add_slicer` | changes | Adds a slicer button panel to filter a PivotTable or table. |
| `delete_slicer` | changes | Removes a slicer. |
| `set_defined_name` | changes | Creates or updates a named range. |
| `delete_defined_name` | changes | Removes a named range. |
| `set_note` | changes | Adds or edits a note on a cell. |
| `delete_note` | changes | Removes a cell note. |
| `insert_image` | changes | Places a picture on a sheet. |
| `delete_image` | changes | Removes a picture from a sheet. |
| `read_vba` | reads | Shows the macro code inside an .xlsm file without running it. |

#### How clearly it describes its tools

46 of 46 tools have a description and 46 of 46 say whether they change things. The tool list takes at least ~3,200 tokens of context. Every tool says whether it only reads or can change things, so a client can ask before the risky ones.

### How do I install Excel MCP Server?

#### Install steps from the Excel MCP Server README

Copied from the project's [README on GitHub](https://github.com/haris-musa/excel-mcp-server#readme) on 10 Nov 2026 under its MIT licence.

##### Quick start

You need [uv](https://docs.astral.sh/uv/getting-started/installation/). Every client runs the
server with `uvx excel-mcp-server stdio`; replace `/path/to/workbooks` with the folder the
server may use. [excelmcpserver.com](https://excelmcpserver.com) has the same steps with copy
buttons and one-click install links for Cursor and VS Code.

**Claude Desktop (Chat)**: download
[`excel-mcp-server.mcpb`](https://github.com/haris-musa/excel-mcp-server/releases/latest/download/excel-mcp-server.mcpb)
from the latest release and open it. Claude asks which folder the server may use.

**Claude Code** (the CLI, and the Code tab in Claude Desktop):

```
claude mcp add excel --scope user -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
```

**Cursor** (`~/.cursor/mcp.json`), and most clients that use an `mcpServers` config:

```
{
  "mcpServers": {
    "excel": {
      "command": "uvx",
      "args": ["excel-mcp-server", "stdio", "--allow-dir", "/path/to/workbooks"]
    }
  }
}
```

**VS Code with GitHub Copilot** (`.vscode/mcp.json`, note the `servers` key):

```
{
  "servers": {
    "excel": {
      "type": "stdio",
      "command": "uvx",
      "args": ["excel-mcp-server", "stdio", "--allow-dir", "${workspaceFolder}"]
    }
  }
}
```

**OpenAI Codex, Gemini CLI, Devin Desktop, and Claude Desktop without the bundle**

**OpenAI Codex** (CLI, IDE extension and app):

```
codex mcp add excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
```

**Gemini CLI**:

```
gemini mcp add -s user excel uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
```

**Devin Desktop**:

```
devin mcp add -s user excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
```

**Claude Desktop, manual setup**: open Settings, Developer, Edit Config, add the `mcpServers`
JSON above to `claude_desktop_config.json`, and restart Claude.

Desktop apps often cannot find `uvx`, because they do not see your shell's `PATH` (common
on macOS). Use its full path instead, which `which uvx` prints.

#### What you need first

- uv (for uvx)

#### Claude Code

Where: Your terminal, in the project folder

```bash
claude mcp add excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
```

#### Cursor

Where: ~/.cursor/mcp.json, or .cursor/mcp.json in a project

```json
{
  "mcpServers": {
    "excel": {
      "command": "uvx",
      "args": [
        "excel-mcp-server",
        "stdio",
        "--allow-dir",
        "/path/to/workbooks"
      ]
    }
  }
}
```

#### Claude Desktop

Where: claude_desktop_config.json (Settings → Developer → Edit Config)

```json
{
  "mcpServers": {
    "excel": {
      "command": "uvx",
      "args": [
        "excel-mcp-server",
        "stdio",
        "--allow-dir",
        "/path/to/workbooks"
      ]
    }
  }
}
```

Easiest route: download excel-mcp-server.mcpb from the project's latest GitHub release and open it, and Claude asks which folder the server may use. The JSON below is the manual route; if Claude says it cannot find uvx, swap uvx for the full path that which uvx prints.

#### VS Code

Where: .vscode/mcp.json in your project (note the servers key)

```json
{
  "servers": {
    "excel": {
      "type": "stdio",
      "command": "uvx",
      "args": ["excel-mcp-server", "stdio", "--allow-dir", "${workspaceFolder}"]
    }
  }
}
```

${workspaceFolder} limits the server to the open project, which is a sensible default for spreadsheets kept with the code.

#### Codex

Where: ~/.codex/config.toml, shared by the Codex CLI, IDE extension and ChatGPT desktop app

```
[mcp_servers.excel]
command = "uvx"
args = ["excel-mcp-server", "stdio", "--allow-dir", "/path/to/workbooks"]
```

Or run: `codex mcp add excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks`

#### Windsurf

Where: ~/.codeium/windsurf/mcp_config.json

```json
{
  "mcpServers": {
    "excel": {
      "command": "uvx",
      "args": [
        "excel-mcp-server",
        "stdio",
        "--allow-dir",
        "/path/to/workbooks"
      ]
    }
  }
}
```

#### ChatGPT

Where: Not supported

ChatGPT only connects to remote servers. You can host this one with uvx excel-mcp-server streamable-http behind HTTPS, but ChatGPT cannot send the bearer token, so it is not a good fit.

Replace /path/to/workbooks with the folder the assistant may open. In stdio mode there is no default folder, so leave --allow-dir out only if you will always give full paths.

Checked against the project's own install docs on 27 Oct 2026: https://github.com/haris-musa/excel-mcp-server#readme

### How do I configure Excel MCP Server?

| Setting | Kind | Required | What it does |
| --- | --- | --- | --- |
| `--allow-dir` | flag | no | Only lets it open workbooks in this folder. Repeat for more folders. Strongly recommended. Example: `--allow-dir /path/to/workbooks` |
| `EXCEL_FILES_PATH` | env | no | The same folder limit set through the environment. Separate folders with : on Mac and Linux or ; on Windows. |
| `--read-only` | flag | no | Offers only tools that cannot change files. Also EXCEL_MCP_READ_ONLY=1. |
| `--tools` | flag | no | Loads only the core tools plus the areas you list, which saves a lot of context. Example: `--tools data,charts` |
| `--allow-vba-write` | flag | no | Adds tools that write macro code. Off by default; macros are never run either way. |
| `--max-file-mb` | flag | no | Largest workbook it will open. Defaults to 100 MB. |
| `EXCEL_MCP_AUTH_TOKEN` | env | no | Bearer token clients must send when the HTTP server listens beyond localhost. |
| `--port` | flag | no | Port for the HTTP mode. Defaults to 8017. |

### What can Excel MCP Server read and change?

**It can read**

- Excel files (.xlsx, .xlsm, .xltx, .xltm) and CSVs in the folders you allow

**It can change**

- Creates and edits workbooks in those folders, saving each change in one go so a file is never left half-written
- Never overwrites an existing workbook without being asked

**Safer setup:** Always pass --allow-dir, and add --read-only when you only want analysis. Leave --allow-vba-write off.

### Good for

- Turning data from a conversation into a real spreadsheet
- Cleaning or reshaping existing workbooks
- Reports generated on a schedule

### Excel MCP Server not working? Common fixes

**Claude Desktop cannot find uvx**
Desktop apps miss your shell PATH, especially on macOS. Use the full path that which uvx prints.

**File not found with a relative path**
Relative paths start in the --allow-dir folder. Without that flag, give the full path to the file.

**The agent is slow because of the tool list**
Use --tools to load only the areas you need, such as data and charts.

**A huge sheet is refused**
Raise --max-file-mb or --max-loaded-cells, keeping an eye on memory.

### What are the alternatives to Excel MCP Server?

| Server | What it does | Tools | Runs on | Licence | Stars |
| --- | --- | --- | --- | --- | --- |
| [Excel MCP Server](https://mcpshelf.co/servers/excel) | Create, edit, format and chart .xlsx files, no Excel needed. | 46 | Your computer | MIT | 4.3K |
| [Postgres MCP Pro](https://mcpshelf.co/servers/postgres-mcp-pro) | SQL, query plans, health checks and index advice for Postgres. | 9 | Your computer | MIT | 3.4K |
| [Supabase](https://mcpshelf.co/servers/supabase) | Manage Supabase projects, tables, migrations, logs and Edge Functions. | 29 | Hosted | Apache-2.0 | 3K |
| [Neon MCP Server](https://mcpshelf.co/servers/neon) | Neon Postgres from chat: projects, branches, SQL and migrations tested on a branch. | 65 | Hosted | MIT | 658 |
| [MongoDB MCP Server](https://mcpshelf.co/servers/mongodb) | Query, inspect and manage MongoDB databases and Atlas clusters, read-only if you like. | 20 | Your computer | Apache-2.0 | 1.2K |
| [Redis MCP Server](https://mcpshelf.co/servers/redis) | Redis's own server: keys, hashes, streams, JSON and vector search in plain English. | 53 | Your computer | MIT | 641 |

### Excel MCP Server FAQ

#### How do I add Excel MCP Server to Claude Code?

Run claude mcp add excel --scope user -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks, swapping in the folder that holds your spreadsheets. You need uv installed first. Check it with claude mcp list.

#### Do I need Microsoft Excel installed to use Excel MCP Server?

No. It reads and writes the .xlsx files itself and has its own formula engine, so it runs on Windows, macOS and Linux, including servers with no Office at all.

#### What can Excel MCP Server do to a spreadsheet?

Read and write ranges, write formulas, format cells, add charts, pivot tables and data validation, and add, copy or delete sheets. It works on the file on disk, not on a workbook open in Excel.

#### Is Excel MCP Server safe to use on my files?

It only opens workbooks inside the folders you pass with --allow-dir, and --read-only removes every tool that changes a file. It reads VBA code but writes it only if you start it with --allow-vba-write. Keep copies of workbooks that matter.

#### Is Excel MCP Server free?

Yes. It is MIT licensed and runs on your own machine through uvx, so there is no account and no API cost beyond your AI app.

#### Does Excel MCP Server work with Google Sheets?

Not directly, because it works on .xlsx files. Download the sheet as .xlsx first, or use a Google Workspace server that talks to Sheets through Google's API.

#### Why does Claude Desktop say it cannot find uvx?

Desktop apps often do not see your shell's PATH, especially on macOS. Run which uvx in a terminal and put that full path in the command field, or install the .mcpb bundle, which avoids the problem.

#### How do I make Excel MCP Server use fewer tokens?

Start it with --tools and a comma-separated list of the areas you need. The core tools stay and the rest are hidden, which shortens the tool list the assistant has to read on every turn.

#### How do I add Excel MCP Server to Cursor?

In ~/.cursor/mcp.json, or .cursor/mcp.json for one project, add an entry named excel that runs uvx excel-mcp-server stdio --allow-dir /path/to/workbooks. Save, and the tools show up in Agent chat.

#### Can I use Excel MCP Server in VS Code?

Yes, through GitHub Copilot. In .vscode/mcp.json, add a server named excel with type stdio that runs uvx excel-mcp-server stdio --allow-dir ${workspaceFolder}. ${workspaceFolder} limits the server to the open project, which is a sensible default for spreadsheets kept with the code.

#### Does Excel MCP Server work with Codex?

Yes. Run codex mcp add excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks in a terminal, or add an [mcp_servers.excel] table to ~/.codex/config.toml, which the Codex CLI and IDE extension share.

Full docs on GitHub: https://github.com/haris-musa/excel-mcp-server

## Notes for agents

Fetch these instead of parsing the HTML page:

- llms.txt: https://mcpshelf.co/llms.txt
- llms-full.txt: https://mcpshelf.co/llms-full.txt
- ai.txt: https://mcpshelf.co/ai.txt
- Full catalog (.md): https://mcpshelf.co/catalog.md
- API spec: https://mcpshelf.co/openapi.json
- MCP server: https://mcpshelf.co/mcp
- MCP manifest: https://mcpshelf.co/.well-known/mcp.json
- Developer docs: https://mcpshelf.co/developers

MCP endpoint (Streamable HTTP, no key): https://mcpshelf.co/mcp. REST API: https://mcpshelf.co/api/v1.

