Get the FREE Ultimate OpenClaw Setup Guide →

excel

A Model Context Protocol server for Excel file manipulation

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio haris-musa-excel-mcp-server uvx excel-mcp-server stdio \
  --env FASTMCP_PORT="Port for the server to listen on (default 8017)" \
  --env EXCEL_FILES_PATH="Path to directory for Excel files (used by SSE/streamable-http transports; defaults to ./excel_files if not set)"

How to use

This MCP server lets you manipulate Excel workbooks without Microsoft Excel installed. It exposes a suite of Excel-related tools—creating, reading, updating workbooks and worksheets; applying formulas, formatting, charts, and pivot tables; managing tables and sheets; and performing data validation. The server supports three transport methods: a local stdio connection, Server-Sent Events (SSE) which is deprecated, and a remote, streamable HTTP transport for accessing the service over the network. You can choose the transport that best fits your workflow and environment. The stdio option runs locally and accepts file paths from each call, while the streamable-http option exposes an HTTP API you can connect to from remote clients, provided you set the EXCEL_FILES_PATH to indicate where Excel files are stored on the server.

How to install

Prerequisites:

  • Python 3.8+ (or a compatible Python runtime)
  • Access to install Python packages (pip)
  • (optional) The MCP runtime tool uvx is available in your environment for running MCP servers.

Installation steps:

  1. Install the MCP server package from PyPI: pip install excel-mcp-server
  2. Ensure the MCP runtime (uvx) is installed and available in your PATH. Follow your environment's guidance to install uvx (the MCP runtime) if not already installed.
  3. Start the server using the stdio transport (local usage) as shown: uvx excel-mcp-server stdio

If you prefer remote access via HTTP, you can start with the streamable-http transport after configuring environment variables as needed: EXCEL_FILES_PATH=/path/to/excel_files FASTMCP_PORT=8007 uvx excel-mcp-server streamable-http

Additional notes

Environment variables:

  • EXCEL_FILES_PATH: Directory where Excel files are stored for SSE and Streamable HTTP transports. Defaults to ./excel_files if not set.
  • FASTMCP_PORT: Port the server listens on for HTTP transports. Default is 8017 if not set. Common issues:
  • Ensure the EXCEL_FILES_PATH directory exists and is writable by the server process when using streamable-http or SSE.
  • When using stdio transport, the path to the file is supplied with each operation, so EXCEL_FILES_PATH is not required for local calls.
  • If you encounter connection issues with remote transports, verify network accessibility and that the correct port is exposed and not blocked by firewalls.

Related MCP Servers

Sponsor this space

Reach thousands of developers