Excel MCP Server

A Model Context Protocol server for Excel file manipulation

Installation

Installing for Claude Desktop

Option 1: One-Command Installation

npx mcpbar@latest install sarayd/excel-mcp-server -c claude

This command will automatically install and configure the Excel MCP Server MCP server for your selected client.

Option 2: Manual Configuration

Run the command below to open your configuration file:

npx mcpbar@latest edit -c claude

After opening your configuration file, copy and paste this configuration:

View JSON configuration
{
  "mcpServers": {
    "Excel MCP Server": {
      "command": "uvx",
      "args": [
        "excel-mcp-server"
      ],
      "env": {
        "FASTMCP_PORT": "${input:fastmcp_port}"
      }
    }
  }
}

Excel MCP Server

A Model Context Protocol (MCP) server that lets you manipulate Excel files without needing Microsoft Excel installed. Create, read, and modify Excel workbooks with your AI agent.

Features

  • πŸ“Š Create and modify Excel workbooks
  • πŸ“ Read and write data
  • 🎨 Apply formatting and styles
  • πŸ“ˆ Create charts and visualizations
  • πŸ“Š Generate pivot tables
  • πŸ”„ Manage worksheets and ranges

Quick Start

Prerequisites

  • Python 3.10 or higher

Installation

  1. Clone the repository:
git clone https://github.com/haris-musa/excel-mcp-server.git
cd excel-mcp-server
  1. Install using uv:
uv pip install -e .

Running the Server

Start the server (default port 8000):

uv run excel-mcp-server

Custom port (e.g., 8080):

# Bash/Linux/macOS
export FASTMCP_PORT=8080 && uv run excel-mcp-server

# Windows PowerShell
$env:FASTMCP_PORT = "8080"; uv run excel-mcp-server

Using 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

  • FASTMCP_PORT: Server port (default: 8000)
  • EXCEL_FILES_PATH: Directory for Excel files (default: ./excel_files)

Available Tools

The server provides a comprehensive set of Excel manipulation tools. See TOOLS.md for complete documentation of all available tools.

License

MIT License - see LICENSE for details.

Share:
Details:
  • Stars


    1
  • Forks


    0
  • Last commit


    3 months ago
  • Repository age


    3 months
  • License


    MIT
View Repository

Auto-fetched from GitHub .

MCP servers similar to Excel MCP Server:

Β 

Β 
Β 
  • Stars


  • Forks


  • Last commit


Β 

Β 
Β 
  • Stars


  • Forks


  • Last commit


Β 

Β 
Β 
  • Stars


  • Forks


  • Last commit


Excel MCP Server: MCP Server – MCP.Bar