Overview
What is Spire XLS MCP Server?
Spire XLS MCP Server is a Python-based MCP server that enables AI agents to create, read, modify, and convert Excel files without requiring Microsoft Office. It provides a robust set of tools for programmatic Excel manipulation through the Model Context Protocol.
How to use Spire XLS MCP Server?
Install Python 3.10+, clone the repository, install with uv pip install -e ., then start the server using uv run spire-xls-mcp-server (default port 8000). Configure the FASTMCP_PORT environment variable to change the port. Integrate with Cursor IDE by adding a JSON configuration pointing to http://localhost:8000/sse and setting the EXCEL_FILES_PATH environment variable.
Key features of Spire XLS MCP Server
- Convert Excel to PDF, HTML, CSV, image, XML, and more
- Create, modify, and manage Excel workbooks
- Manage worksheets: rename, move, hide, freeze panes
- Read and write cell data with formulas and formatting
- Add various chart types and pivot tables
- Apply conditional formatting and merge cells
Use cases of Spire XLS MCP Server
- Automate creation of Excel reports from AI agents
- Convert Excel files to multiple formats for distribution
- Build interactive dashboards with charts and pivot tables
- Integrate Excel data manipulation into AI-powered workflows
- Process and analyze spreadsheet data without human intervention
FAQ from Spire XLS MCP Server
Can I use Spire XLS MCP Server for any directory?
Yes, it works for any directory. Set the EXCEL_FILES_PATH environment variable to specify the working folder (default: ./excel_files).
Is Spire XLS MCP Server free to use?
Yes, it is licensed under the MIT License, allowing free use and modification.
What transport protocol does it use?
It uses Server-Sent Events (SSE). For use with Claude Desktop (which requires stdio), you need to convert the SSE transport using a tool like Supergateway.
Does it require Microsoft Office to be installed?
No, the server is totally independent and does not require Microsoft Office to be installed on the system.