by haris-musa
Manipulate Excel workbooks—create, read, update, format, chart, and pivot—through an MCP server without requiring Microsoft Excel to be installed.
Excel MCP Server provides a programmable interface for full‑fledged Excel file manipulation. It exposes a set of tools that let AI agents or scripts create workbooks, edit cells, apply formulas, style ranges, generate charts, build pivot tables, and manage worksheets, all without a local Excel installation.
pip install excel-mcp-server
uvx excel-mcp-server stdio
uvx excel-mcp-server sse
uvx excel-mcp-server streamable-http
EXCEL_FILES_PATH
– directory where Excel files are stored (defaults to ./excel_files
).FASTMCP_PORT
– port the server listens on (default 8017
).{
"mcpServers": {
"excel": {
"url": "http://localhost:8000/mcp"
}
}
}
Q: Do I need Microsoft Excel installed? A: No. All operations are performed using the underlying Python libraries.
Q: Which transport should I choose? A: Use streamable‑http for remote connections; stdio is ideal for local, single‑process usage.
Q: Where are my Excel files stored?
A: Set the EXCEL_FILES_PATH
environment variable; otherwise they default to ./excel_files
.
Q: Can I run the server on a custom port?
A: Yes, set FASTMCP_PORT
to the desired port number.
Q: Is the SSE transport still supported? A: It is deprecated; prefer streamable‑http.
A Model Context Protocol (MCP) server that lets you manipulate Excel files without needing Microsoft Excel installed. Create, read, and modify Excel workbooks with your AI agent.
The server supports three transport methods:
uvx excel-mcp-server stdio
{
"mcpServers": {
"excel": {
"command": "uvx",
"args": ["excel-mcp-server", "stdio"]
}
}
}
uvx excel-mcp-server sse
SSE transport connection:
{
"mcpServers": {
"excel": {
"url": "http://localhost:8000/sse",
}
}
}
uvx excel-mcp-server streamable-http
Streamable HTTP transport connection:
{
"mcpServers": {
"excel": {
"url": "http://localhost:8000/mcp",
}
}
}
When running the server with the SSE or Streamable HTTP protocols, you must set the EXCEL_FILES_PATH
environment variable on the server side. This variable tells the server where to read and write Excel files.
./excel_files
.You can also set the FASTMCP_PORT
environment variable to control the port the server listens on (default is 8017
if not set).
$env:EXCEL_FILES_PATH="E:\MyExcelFiles"
$env:FASTMCP_PORT="8007"
uvx excel-mcp-server streamable-http
EXCEL_FILES_PATH=/path/to/excel_files FASTMCP_PORT=8007 uvx excel-mcp-server streamable-http
When using the stdio protocol, the file path is provided with each tool call, so you do not need to set EXCEL_FILES_PATH
on the server. The server will use the path sent by the client for each operation.
The server provides a comprehensive set of Excel manipulation tools. See TOOLS.md for complete documentation of all available tools.
MIT License - see LICENSE for details.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.