The Excel Reader Server is a Model Context Protocol (MCP) implementation that provides tools for reading and parsing Excel (xlsx) files. It makes extracting data from Excel files easy, converting the contents into a structured JSON format that can be used in various applications.
The server requires Python 3.10 or higher to run. You can install it using pip or uv:
# Using pip
pip install excel-reader-server
# Using uv (recommended)
uv pip install excel-reader-server
The Excel Reader Server provides three different tools for accessing Excel data.
The read_excel
tool reads content from all sheets in an Excel file:
{
"file_path": "path/to/your/excel/file.xlsx"
}
Use read_excel_by_sheet_name
to read content from a specific sheet by its name:
{
"file_path": "path/to/your/excel/file.xlsx",
"sheet_name": "Sheet1" # optional - reads first sheet if omitted
}
Use read_excel_by_sheet_index
to read content from a specific sheet by its index:
{
"file_path": "path/to/your/excel/file.xlsx",
"sheet_index": 0 # optional - reads first sheet (index 0) if omitted
}
The server returns data in a structured JSON format:
{
"Sheet1": [
["Header1", "Header2", "Header3"],
["Value1", "Value2", "Value3"],
["Value4", "Value5", "Value6"]
]
}
Key characteristics of the response:
The server provides helpful error messages for common issues you might encounter:
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 > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.