The Excel MCP Server is a Model Context Protocol server that allows you to interact with Microsoft Excel files, enabling you to read and write data, work with formulas, create new sheets, and more.
The Excel MCP server can be installed by adding the appropriate configuration to your MCP servers configuration.
For Windows:
{
"mcpServers": {
"excel": {
"command": "cmd",
"args": ["/c", "npx", "--yes", "@negokaz/excel-mcp-server"],
"env": {
"EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
}
}
}
}
For other platforms:
{
"mcpServers": {
"excel": {
"command": "npx",
"args": ["--yes", "@negokaz/excel-mcp-server"],
"env": {
"EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
}
}
}
}
You can install Excel MCP Server automatically via Smithery:
npx -y @smithery/cli install @negokaz/excel-mcp-server --client claude
List all sheet information in an Excel file:
excel_describe_sheets
Arguments:
fileAbsolutePath
: Absolute path to the Excel fileRead values from an Excel sheet with pagination:
excel_read_sheet
Arguments:
fileAbsolutePath
: Absolute path to the Excel filesheetName
: Sheet name in the Excel filerange
: Range of cells to read (e.g., "A1:C10"). Default: first paging rangeshowFormula
: Show formula instead of value (default: false)showStyle
: Show style information for cells (default: false)Take a screenshot of an Excel sheet with pagination:
excel_screen_capture
Arguments:
fileAbsolutePath
: Absolute path to the Excel filesheetName
: Sheet name in the Excel filerange
: Range of cells to read (e.g., "A1:C10"). Default: first paging rangeWrite values to an Excel sheet:
excel_write_to_sheet
Arguments:
fileAbsolutePath
: Absolute path to the Excel filesheetName
: Sheet name in the Excel filenewSheet
: Create a new sheet if true, otherwise write to the existing sheetrange
: Range of cells to write to (e.g., "A1:C10")values
: Values to write to the sheet. If the value is a formula, it should start with "="Create a table in an Excel sheet:
excel_create_table
Arguments:
fileAbsolutePath
: Absolute path to the Excel filesheetName
: Sheet name where the table is createdrange
: Range to be a table (e.g., "A1:C10")tableName
: Table name to be createdCopy an existing sheet to a new sheet:
excel_copy_sheet
Arguments:
fileAbsolutePath
: Absolute path to the Excel filesrcSheetName
: Source sheet name in the Excel filedstSheetName
: Sheet name to be copiedFormat cells in an Excel sheet with style information:
excel_format_range
Arguments:
fileAbsolutePath
: Absolute path to the Excel filesheetName
: Sheet name in the Excel filerange
: Range of cells to format (e.g., "A1:C3")styles
: 2D array of style objects for each cellYou can customize the MCP Server behavior using environment variables:
The maximum number of cells to read in a single paging operation. Default value: 4000
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "excel" '{"command":"npx","args":["--yes","@negokaz/excel-mcp-server"],"env":{"EXCEL_MCP_PAGING_CELLS_LIMIT":"4000"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"excel": {
"command": "npx",
"args": [
"--yes",
"@negokaz/excel-mcp-server"
],
"env": {
"EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"excel": {
"command": "npx",
"args": [
"--yes",
"@negokaz/excel-mcp-server"
],
"env": {
"EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect