ES

eiceblue/spire-xls-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 3 forks 质量 68 趋势 14MIT

Spire.XLS MCP Server, using Spire.XLS on mcp tools

概览

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 - Convert Excel to PDF, Excel to HTML, Excel to CSV, Excel to image, Excel to 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. The following visual guide illustrates the three-step process to integrate Spire.

README

以下为原文 README 节选,完整内容请查看原文。

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:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "excel": { "url": "http://localhost:8000/sse", "env": { "EXCEL_FILES_PATH": "/path/to/excel/files" } } } }