Skip to main content

MCP server for Excel file manipulation

Project description

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, edit, and convert Excel workbooks seamlessly

Main Features:

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

The following visual guide illustrates the three-step process to integrate Spire.XLS MCP Server with supported AI development environments:

Step 1 and Step 2: Start the server and configure AI tool Step 1 and Step 2: Start the server and configure AI tool

Step 3: Use Excel features through AI interface Step 3: Use Excel features through AI interface

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

Variable Description Default
FASTMCP_PORT Server port 8000
EXCEL_FILES_PATH Directory for Excel files ./excel_files

Available Tools

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

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

FAQ from Spire.XLS MCP Server?

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

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

Q2. Is Spire.XLS MCP Server free to use?

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

Q3. What programming languages does Spire.XLS MCP Server support?

It is built with Python.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_spire_xls_mcp_server-0.1.1.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_spire_xls_mcp_server-0.1.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_spire_xls_mcp_server-0.1.1.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_spire_xls_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1d3931ea5c8ed21ab040e5f2c1f559723ef675da9a9d057adb4f95780eec43cf
MD5 dbe371204e563072cbb9b5e8581e44d7
BLAKE2b-256 4995fede7ce3b239270994fb0972ee56100025c670a3e1b8c29853701a613592

See more details on using hashes here.

File details

Details for the file iflow_mcp_spire_xls_mcp_server-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_spire_xls_mcp_server-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_spire_xls_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9501616850f2c1e4f74201c1a239886329f36a8a111d7d9df41bbbbded5d8649
MD5 f4bf8542825d21e547950f491d55beb5
BLAKE2b-256 9b45cbe39717071f0dfd96a80850bd2764a4b9a62012f23dabd32ca79d17a89b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page