We and selected third parties use cookies or similar technologies for technical purposes and, with your consent, to analyze how the site is used.

You can freely give, refuse or withdraw your consent at any time.

Excel

MCP server by Haris Musa

Create, read and edit Excel workbooks, including formulas, tables and charts, without Microsoft Excel installed.

Runs locally (Runs on your machine: its page has the install command)Runs with uvx

Install Excel

Runs on your machine. Your client starts it with this command:

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

Needs uv (Python) on your computer. The setup steps below show where the command goes in each client.

Share this server

Opens this page, with the install command and setup steps.

mcp.tc/i/excel

About

Works with .xlsx, .xlsm, .xltx and .xltm files through openpyxl. You can read and write cells, formulas and dates, format ranges, manage sheets, rows and columns, add tables, charts, conditional formats and data validation, write static summary tables, and read VBA macro code (never run). Formulas are stored, not calculated, and real PivotTables cannot be created.

Runs locally over stdio with uvx: uvx excel-mcp-server stdio --allow-dir /path/to/workbooks. No sign-in or API key is needed. Access is limited to the folder you allow, formulas that reach the network or other programs are rejected, and a read-only mode is available. A Streamable HTTP mode and a Docker image also exist.

What you can do

  • Create workbooks and list or describe sheets
  • Read, write, copy, clear and search cell ranges
  • Format fonts, fills, borders and number formats
  • Add tables, charts and static summary tables
  • Set conditional formatting and dropdown data validation
  • Insert, delete, rename and copy sheets, rows and columns
  • Read VBA macro code in .xlsm files

Tools 46

  • create_workbook

    Create a new, empty Excel workbook.

  • describe_workbook

    List a workbook's sheets with used ranges and defined names.

  • set_workbook_settings

    Set document properties, calculation options and workbook structure protection.

  • list_workbooks

    List Excel files in a directory.

  • export_workbook

    Return the workbook file as an embedded base64 resource.

  • import_workbook

    Save an uploaded workbook file on the server.

  • import_csv

    Import a CSV file into a sheet, with numbers and dates typed and never formulas.

  • export_csv

    Export a range as a CSV file, formula results included.

  • describe_sheet

    Describe a sheet's used range, panes, merges, tables, charts, validation and formats.

  • create_sheet

    Add an empty worksheet.

  • rename_sheet

    Rename a worksheet; formulas using the old name are not updated.

  • copy_sheet

    Duplicate a worksheet within the workbook.

Show 34 more tools
  • delete_sheet

    Delete a worksheet and everything on it.

  • insert_rows_or_columns

    Insert empty rows or columns before a position.

  • delete_rows_or_columns

    Delete rows or columns starting at a position.

  • read_range

    Read cell values as rows; dates come back as ISO 8601 strings.

  • write_range

    Write values into cells, overwriting existing content.

  • clear_range

    Clear values and/or formatting of a range without shifting cells.

  • copy_range

    Copy values and formatting to another place.

  • sort_range

    Sort a range's rows by one or more columns, like Data > Sort in Excel.

  • transform_range

    Remove duplicate rows, split text into columns, or fill down, right or with a series.

  • find_cells

    Find cells whose value contains or equals a query.

  • replace_cells

    Find and replace text in cells, including formulas, like Excel's Replace All.

  • trace_formula

    Trace precedents and dependents of formulas across the workbook, or evaluate a formula step by step, like Excel's Formulas auditing tools.

  • goal_seek

    Change an input cell until a formula reaches a value, like Excel's Goal Seek.

  • format_range

    Change fonts, fill, borders, alignment or number format of a range.

  • merge_cells

    Merge a range into one cell, or split a merged range.

  • set_sheet_layout

    Set column widths, row heights, frozen panes, auto filter and tab color.

  • add_conditional_format

    Add a conditional format rule to a range.

  • add_data_validation

    Restrict what can be entered in a range, such as a dropdown list.

  • set_table

    Create a table, or change one: totals row, calculated columns, banding, filter buttons, resizing.

  • create_chart

    Add a chart that plots a block of data.

  • delete_chart

    Remove a chart from a sheet by name.

  • add_sparklines

    Add a group of sparklines (Insert > Sparklines): a line, column or win/loss chart in each cell of `range`, one per row of `source` (or per column when the cell count matches the columns).

  • delete_sparklines

    Remove the sparklines in a range (Clear Sparklines).

  • create_pivot_table

    Add a real Excel PivotTable that summarizes a block of data: number formats, show values as, sorting, grouping, calculated fields, layouts and filters.

  • delete_pivot_table

    Remove a PivotTable and clear the cells it fills.

  • add_slicer

    Add a slicer (Insert > Slicer) or timeline to a sheet, to filter a PivotTable or table.

  • delete_slicer

    Remove a slicer or timeline.

  • set_defined_name

    Create a defined name for a range or constant, replacing a name of the same scope.

  • delete_defined_name

    Delete a defined name.

  • set_note

    Add a note to a cell, replacing the cell's existing note.

  • delete_note

    Remove the note from a cell.

  • insert_image

    Place a PNG or JPEG image with its top-left corner at a cell.

  • delete_image

    Remove an image from a sheet.

  • read_vba

    Show VBA macro code in an .xlsm or .xltm workbook, module by module.

From the package’s own manifest, not a live connection, on 3 Oct 2026.

Example prompts

  • Create a budget.xlsx workbook with a sheet for each month

  • Read A1:F50 from the Sales sheet in q1.xlsx and summarize it

  • Add a bar chart of revenue by region to the Summary sheet

  • Add a dropdown list for Status in column D of the Tasks sheet

Set up

Every client starts Excel on your machine with the same command. Pick yours; the page remembers your choice.

Claude Code

  1. Run this in a terminal, in your project folder:
claude mcp add --transport stdio excel -- uvx excel-mcp-server stdio --allow-dir /path/to/workbooks
  1. Start Claude Code and type /mcp. excel should show as connected.

Add --scope user to make it available in every project.

Claude Desktop

  1. Open Settings → Developer → Edit Config. It opens claude_desktop_config.json. Add:
claude_desktop_config.json
{
  "mcpServers": {
    "excel": {
      "command": "uvx",
      "args": [
        "excel-mcp-server",
        "stdio",
        "--allow-dir",
        "/path/to/workbooks"
      ]
    }
  }
}
  1. Save the file and restart Claude Desktop.

Needs uv (Python) on your computer. The file lives in ~/Library/Application Support/Claude/ on macOS and %APPDATA%\Claude\ on Windows.

Cursor

Or add it by hand to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project):

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

Needs uv (Python) on your computer.

VS Code

Or from a terminal:

code --add-mcp '{"name":"excel","type":"stdio","command":"uvx","args":["excel-mcp-server","stdio","--allow-dir","/path/to/workbooks"]}'

Or commit it to the repo in .vscode/mcp.json:

.vscode/mcp.json
{
  "servers": {
    "excel": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "excel-mcp-server",
        "stdio",
        "--allow-dir",
        "/path/to/workbooks"
      ]
    }
  }
}

Needs uv (Python) on your computer.

Devin Desktop

  1. Add it to ~/.config/devin/mcp_config.json (macOS and Linux) or %APPDATA%\devin\mcp_config.json (Windows):
mcp_config.json
{
  "mcpServers": {
    "excel": {
      "command": "uvx",
      "args": [
        "excel-mcp-server",
        "stdio",
        "--allow-dir",
        "/path/to/workbooks"
      ]
    }
  }
}
  1. Refresh the MCP server list in Cascade.

Devin Desktop is the new name for Windsurf.

Codex

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

Or edit ~/.codex/config.toml directly:

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

Needs uv (Python) on your computer.

Gemini CLI

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

This adds it to the current project. Add -s user to use it everywhere.

Any client

Most clients that start local servers accept this shape:

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

Zed puts servers under context_servers in its settings, with the same command, args and env fields.

Needs uv (Python) on your computer.

Embed

Show Excel in a README or on your site. Each embed links to this page, uses the server’s own install command, and sets no cookies. How embeds work

The card, the iframe and the JSON are in English. Add ?lang=it, fr, de or es to their address for another language.

README badge

Badge preview, lightBadge preview, dark
Markdown
[![Excel on mcp.tc](https://mcp.tc/i/excel/badge.svg)](https://mcp.tc/i/excel)
HTML
<a href="https://mcp.tc/i/excel"><img src="https://mcp.tc/i/excel/badge.svg" alt="Excel on mcp.tc" height="20"></a>

It follows the reader’s light or dark mode. Add ?theme=light or ?theme=dark to fix it, or ?style=compact to show the mark without the word.

Website card

HTML
<script src="https://mcp.tc/w/excel.js" async></script>

The card appears where the tag is. Add data-theme="dark" or data-size="compact" to the tag to change it. The file holds everything it needs, so it makes no other requests and sets no cookies.

iframe

HTML
<iframe src="https://mcp.tc/embed/excel" title="Excel on mcp.tc" width="420" height="200" loading="lazy" allow="clipboard-write" style="border:0;border-radius:8px;max-width:100%"></iframe>

Use it on pages that don’t allow scripts. Add ?theme=light or ?theme=dark to the address to fix the colors.

JSON

The listing as data for your own pages and tools: name, tagline, install command, tools and the “Add to” links. Any site can read it (CORS is open).

https://mcp.tc/i/excel.json

What each field means

AI prompt

Paste this into an AI coding assistant, such as Claude Code or Cursor, and it adds the Excel card to your site.

Markdown
Add the mcp.tc card for Excel, an MCP server, to my website. It is one static script: no build step, no package to install, no cookies.

Put this tag where the card should appear. The card renders right before it:

```html
<script src="https://mcp.tc/w/excel.js" async></script>
```

To show the card somewhere else, put this placeholder there and load the same script once, for example before `</body>`. Keep the link inside: visitors without JavaScript see it.

```html
<div data-mcptc="excel"><a href="https://mcp.tc/i/excel">Excel on mcp.tc</a></div>
```

Options:
- `data-theme="light"` or `"dark"` on the tag or the placeholder fixes the colors. Without it, the card follows the visitor’s light or dark mode.
- `data-size="compact"` gives a smaller card without the tagline.
- The CSS variable `--mcptc-max-width` on the placeholder or a parent sets the width (default `520px`).
- `?lang=` on the script URL sets the card’s language: `en`, `it`, `fr`, `de` or `es`.

If the site has a Content Security Policy, allow `script-src https://mcp.tc` and `img-src data:` (the icon is inline).

For a README or other Markdown docs, use the badge instead:

```markdown
[![Excel on mcp.tc](https://mcp.tc/i/excel/badge.svg)](https://mcp.tc/i/excel)
```

Reference: https://mcp.tc/embed

Change history

We read the tool list in this server’s bundle manifest on GitHub every 3 hours and record what changes. Last read 18 Nov 2026, 05:29 UTC.

Follow Excel and we’ll email you when something changes.

  1. , Automatic check

    New version 2.3.1 (was 2.3.0). Read from PyPI.

  2. , Automatic check

    New version 2.2.7 (was 2.2.6). Read from PyPI.

  3. , Automatic check

    New version 2.2.4 (was 2.2.3). Read from PyPI.

  4. , Automatic check

    New version 2.2.3 (was 2.2.2). Read from PyPI.

  5. , Automatic check

    New version 2.2.2 (was 2.2.1). Read from PyPI.

  6. , Automatic check

    New version 2.2.0 (was 2.1.1). Read from PyPI.

  7. , Automatic check

    4 tools added.

    Details, 18 Oct 2026, 10:38 UTC

    Added 4

    • export_csv

      Export a range as a CSV file, formula results included.

    • goal_seek

      Change an input cell until a formula reaches a value, like Excel's Goal Seek.

    • import_csv

      Import a CSV file into a sheet, with numbers and dates typed and never formulas.

    • trace_formula

      Trace precedents and dependents of formulas across the workbook, or evaluate a formula step by step, like Excel's Formulas auditing tools.

  8. , Automatic check

    New version 2.1.0 (was 2.0.0). Read from PyPI.

  9. , Automatic check

    New version 2.0.0 (was 1.1.2). Read from PyPI.

  10. , Automatic check

    1 tool added, 2 tools removed and 8 tools changed.

    Details, 9 Oct 2026, 19:29 UTC

    Added 1

    • set_table

      Create a table, or change one: totals row, calculated columns, banding, filter buttons, resizing.

    Removed 2

    • create_table

      Turn a range with a header row of unique text labels into an Excel table, with totals row, calculated columns, banding and filter buttons.

    • edit_table

      Change a table's options, add calculated columns and totals, or resize it.

    Changed 8

    • add_sparklinesdescription
      Before

      Add a group of sparklines (Insert > Sparklines): a line, column or win/loss chart in each cell of `location`, one per row of `data` (or per column when the cell count matches the columns).

      After

      Add a group of sparklines (Insert > Sparklines): a line, column or win/loss chart in each cell of `range`, one per row of `source` (or per column when the cell count matches the columns).

    • create_chartdescription
      Before

      Add a chart to `sheet`, or replace one.

      After

      Add a chart to `sheet`, or replace one by name.

    • delete_chartdescription
      Before

      Remove a chart from a sheet. The data it plotted is left untouched.

      After

      Remove a chart from a sheet by name. The data it plotted is left untouched.

    • delete_imagedescription
      Before

      Remove a picture from a sheet.

      After

      Remove an image from a sheet.

    • delete_rows_or_columnsdescription
      Before

      Delete rows or columns starting at position `at`, updating every reference like Excel.

      After

      Delete rows or columns from position `start`, updating every reference like Excel.

    • describe_workbookdescription
      Before

      List a workbook's sheets with their used ranges, plus its defined names, properties and calculation settings.

      After

      List a workbook's sheets (visibility, used range, counts of tables, charts, PivotTables, slicers and images), plus its defined names, properties and calculation settings.

    • insert_imagedescription
      Before

      Place a PNG or JPEG picture with its top-left corner at a cell.

      After

      Place a PNG or JPEG image with its top-left corner at a cell.

    • insert_rows_or_columnsdescription
      Before

      Insert empty rows or columns before position `at`, updating every reference like Excel.

      After

      Insert empty rows or columns before position `start`, updating every reference like Excel.

  11. , Automatic check

    6 tools added and 11 tools changed.

    Details, 8 Oct 2026, 19:33 UTC

    Added 6

    add_slicer add_sparklines delete_slicer delete_sparklines edit_table set_workbook_settings

    Changed 11

    clear_range create_pivot_table create_table delete_rows_or_columns describe_sheet describe_workbook format_range insert_rows_or_columns rename_sheet set_sheet_layout write_range

    The 10 newest entries show every detail; older ones show names only.

  12. , Automatic check

    2 tools added and 2 tools changed.

    Details, 8 Oct 2026, 16:38 UTC

    Added 2

    replace_cells transform_range

    Changed 2

    copy_range create_chart

    The 10 newest entries show every detail; older ones show names only.

  13. , Automatic check

    10 tools added, 1 tool removed and 4 tools changed.

    Details, 8 Oct 2026, 13:35 UTC

    Added 10

    create_pivot_table delete_chart delete_defined_name delete_image delete_note delete_pivot_table insert_image set_defined_name set_note sort_range

    Removed 1

    create_summary_table

    Changed 4

    copy_sheet describe_sheet describe_workbook set_sheet_layout

    The 10 newest entries show every detail; older ones show names only.

  14. , Automatic check

    New version 1.1.2 (was 1.1.1). Read from PyPI.

  15. , Automatic check

    Tracking started: 26 tools.

FAQ

Can I paste mcp.tc/i/excel into my MCP client?

No. Excel runs on your own computer, started by your client, so it has no web address to connect to. The quick link is the page to share; the install command is uvx excel-mcp-server stdio --allow-dir /path/to/workbooks.

Does Excel need an API key?

No. It doesn’t declare any keys or environment variables. It runs with your user account’s permissions, so check what its tools can reach.

Is Excel a remote or a local server?

Local. Your client starts it as a process on your computer with uvx excel-mcp-server stdio --allow-dir /path/to/workbooks, which needs uv (Python).

What can Excel do?

It has 46 tools, including create_workbook, describe_workbook and set_workbook_settings. You can create workbooks and list or describe sheets, read, write, copy, clear and search cell ranges and format fonts, fills, borders and number formats.

Which clients can use it?

Any client that starts local servers: Claude Code, Claude Desktop, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed and others. claude.ai and ChatGPT only connect to remote servers.

Does mcp.tc track changes to Excel?

Yes. We follow the tool list in Excel’s bundle manifest, and its History tab shows each change we find, plus new versions and edits by its owner. Follow the listing to get an email when it changes.

Who wrote this page?

mcp.tc’s robot read Excel’s public metadata (its package and repository pages), and an AI model drafted the text from it. A person reviews anything the checks can’t confirm. The text can still be wrong, so if you spot a mistake, use Report this listing on this page.

mcp.tc isn’t affiliated with Haris Musa. This page was built from Excel’s public metadata, last checked on 3 Oct 2026, and an AI model wrote the description, so it can be wrong. Names and marks belong to their owners. Something off? Report this listing.