Skip to main content
Glama

Spire.XLS MCP Server

by eiceblue
MIT License
1
  • Apple
  • Linux

What is Spire.XLS MCP Server?

The Spire.XLS MCP Server is a robust solution that empowers AI agents to work with Excel files using the Model Context Protocol (MCP). It is totally independent and doesn't require Microsoft Office to be installed on system. This tool enables AI agents to create, read, modify, and convert Excel workbooks seamlessly

Main Features:

  • Convert Excel to PDF, HTML, CSV, image, XML, and more with high fidelity.
  • Create, modify, and manage Excel workbooks
  • Manage and control worksheets: rename, move, hide, freeze panes, and more.
  • Manage worksheets and cell ranges
  • Read and write data
  • Analyze Excel data
  • Add various chart types to create visual Excel dashboards from data
  • Create and manipulate pivot tables to summarize, analyze, explore, and present Excel data.

How to use Spire.XLS MCP Server?

Prerequisites

  • Python 3.10 or higher

Installation

  1. Clone the repository:
git clone https://github.com/eiceblue/spire-xls-mcp-server.git cd spire-xls-mcp-server
  1. Install using uv:
uv pip install -e .

Running the Server

Start the server (default port 8000):

uv run spire-xls-mcp-server

Custom port (e.g., 8080):

# Bash/Linux/macOS export FASTMCP_PORT=8080 && uv run spire-xls-mcp-server # Windows PowerShell $env:FASTMCP_PORT = "8080"; uv run spire-xls-mcp-server

Integration with AI Tools

Cursor IDE

  1. Add this configuration to Cursor:
{ "mcpServers": { "excel": { "url": "http://localhost:8000/sse", "env": { "EXCEL_FILES_PATH": "/path/to/excel/files" } } } }
  1. The Excel tools will be available through your AI assistant.

Remote Hosting & Transport Protocols

This server uses Server-Sent Events (SSE) transport protocol. For different use cases:

  1. Using with Claude Desktop (requires stdio):
  2. Hosting Your MCP Server:

Environment Variables

VariableDescriptionDefault
FASTMCP_PORTServer port8000
EXCEL_FILES_PATHDirectory for Excel files./excel_files

Available Tools

The server provides a comprehensive set of Excel manipulation tools. Here are the main categories:

  • Basic Operations: Create, read, write, and delete workbooks and worksheets
  • Data Processing: Read and write cell data, apply formulas, sort and filter
  • Formatting: Apply styles, merge cells, set fonts and colors
  • Advanced Features: Create charts, pivot tables, conditional formatting
  • Conversion: Convert Excel to PDF, HTML, CSV, image, XML, and more with high fidelity.

See TOOLS.md for complete documentation of all available tools.

FAQ from Spire.XLS MCP Server?

Can I use Spire.XLS MCP Server for any directory?

Yes, Spire.XLS MCP Serer works for any directory.

Is Spire.XLS MCP Server free to use?

Yes, it is licensed under the MIT License, allowing free use and modification.

What programming languages does Spire.XLS MCP Server support?

It is built with Python.

License

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

A robust solution that enables AI agents to create, read, modify, and convert Excel files through the Model Context Protocol without requiring Microsoft Office installation.

  1. Main Features:
    1. How to use Spire.XLS MCP Server?
      1. Prerequisites
      2. Installation
      3. Running the Server
    2. Integration with AI Tools
      1. Cursor IDE
      2. Remote Hosting & Transport Protocols
    3. Environment Variables
      1. Available Tools
        1. FAQ from Spire.XLS MCP Server?
          1. License

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables AI assistants to read from and write to Microsoft Excel files, supporting formats like xlsx, xlsm, xltx, and xltm.
              Last updated -
              5,299
              272
              Go
              MIT License
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              Enables seamless reading, writing, and analyzing of Excel files through Model Context Protocol, with features for worksheet management, structure analysis, and automated caching.
              Last updated -
              8
              212
              11
              TypeScript
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              Provides Excel file manipulation capabilities without requiring Microsoft Excel installation, enabling workbook creation, data manipulation, formatting, and advanced Excel features.
              Last updated -
              Python
              MIT License
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that enables AI assistants to create, read, edit, and format Microsoft Word documents through standardized tools and resources.
              Last updated -
              16
              198
              Python
              MIT License
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/eiceblue/spire-xls-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server