mcp-excel-server

MCP.Pizza Chef: yzfly

The Excel MCP Server is a robust MCP server that facilitates natural language interaction with Excel files. It supports reading, writing, and updating multiple Excel formats including XLSX, XLS, CSV, TSV, and JSON. It offers advanced data analysis features such as summary statistics, pivot tables, and data quality assessments, along with visualization capabilities like chart generation and data previews. This server streamlines Excel file operations and analytics within MCP-enabled workflows.

Use This MCP server To

Read and extract data from various Excel file formats Write and update Excel files programmatically Generate summary statistics and descriptive data analysis Create pivot tables for data summarization Filter and query Excel data using natural language Produce charts and visualizations from Excel datasets Export Excel data visualizations as image files Retrieve Excel file metadata and sheet names

README

Excel MCP Server

An MCP server that provides comprehensive Excel file management and data analysis capabilities.

Features

  • Excel File Operations

    • Read multiple Excel formats (XLSX, XLS, CSV, TSV, JSON)
    • Write and update Excel files
    • Get file information and sheet names
  • Data Analysis

    • Summary statistics and descriptive analysis
    • Data quality assessment
    • Pivot tables
    • Filtering and querying data
  • Visualization

    • Generate charts and plots from Excel data
    • Create data previews
    • Export visualizations as images

Installation

  1. Create a new Python environment (recommended):
# Using uv (recommended)
uv init excel-mcp-server
cd excel-mcp-server
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Or using pip
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies:
# Using uv
uv pip install -e .

Integration with Claude Desktop

  1. Install Claude Desktop
  2. Open Settings and go to the Developer tab
  3. Edit claude_desktop_config.json:
{
  "mcpServers": {
      "command": "uvx",
      "args": [
        "mcp-excel-server"
      ],
      "env": {
        "PYTHONPATH": "/path/to/your/python"
      }
  }
}

Available Tools

mcp-excel-server FAQ

How do I install the Excel MCP Server?
Install by creating a Python virtual environment and running 'uv pip install -e .' as per the provided instructions.
What Excel file formats does the server support?
It supports XLSX, XLS, CSV, TSV, and JSON formats for reading and writing.
Can the server generate visualizations from Excel data?
Yes, it can create charts, plots, and data previews, and export them as images.
How does the server handle data analysis?
It provides summary statistics, descriptive analysis, pivot tables, filtering, and data quality assessments.
Is the Excel MCP Server compatible with multiple LLM providers?
Yes, it integrates with MCP clients that can use models like OpenAI, Claude, and Gemini.
Can I update existing Excel files using this server?
Yes, the server supports writing and updating Excel files programmatically.
How do I get metadata like sheet names from an Excel file?
The server provides endpoints to retrieve file information including sheet names.
What programming environment is recommended for installation?
A Python virtual environment is recommended for clean dependency management.