excel-mcp

excel-mcp

An MCP server for safe .xlsx inspection and controlled workbook writes, enabling spreadsheet reads, search, filtering, aggregation, and preview-based writes with workspace confinement and audit logging.

Category
Visit Server

README

excel-mcp

An MCP server for safe .xlsx inspection and controlled workbook writes.

Status

This is an MVP. It supports workbook inspection, sheet/schema discovery, reads, search, simple filtering and numeric aggregation, plus preview-based writes. Writes are guarded by workspace confinement, SHA-256 compare-and-swap, a per-workbook lock, backup, temporary-file save, re-open verification, atomic replacement and JSONL audit logging.

Macro-enabled workbooks, external links, charts, formatting operations and non-.xlsx files are intentionally out of scope.

Quick start from GitHub

You do not need to clone this repository. Install uv once, then configure your MCP client to run the latest version directly from GitHub.

The command is:

uvx --from git+https://github.com/Matsu132/excel-mcp.git excel-mcp

The only local setting you need is the folder containing the Excel files:

EXCEL_MCP_WORKSPACE=/Users/your-name/Documents/Excel

This keeps Excel data on your computer. The public GitHub repository provides the server code and dependencies; it does not upload your workbooks.

Developer installation

uv sync

Set the workbook directory that the server is allowed to access:

export EXCEL_MCP_WORKSPACE="/absolute/path/to/workbooks"

The server accepts only .xlsx files inside this directory. Relative paths are resolved from this workspace.

Starting the server

This server uses MCP over stdio. The command to register in an MCP client is:

uvx --from git+https://github.com/Matsu132/excel-mcp.git excel-mcp

For a direct local check:

EXCEL_MCP_WORKSPACE="/absolute/path/to/workbooks" uv run excel-mcp

Keep the process running when the client starts it; MCP clients normally manage the process lifecycle automatically.

Claude Desktop

Add the following entry to Claude Desktop's MCP configuration file. Replace the paths with absolute paths on your machine.

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "excel-mcp": {
  "command": "uvx",
      "args": ["--from", "git+https://github.com/Matsu132/excel-mcp.git", "excel-mcp"],
      "env": {
        "EXCEL_MCP_WORKSPACE": "/Users/your-name/Documents/Excel"
      }
    }
  }
}

Restart Claude Desktop after saving the file. The excel_* tools should then appear in the MCP tools list.

OpenAI-compatible clients

For an OpenAI application, Agent SDK, or other client that supports local MCP stdio servers, register the same command as a local MCP server:

{
  "name": "excel-mcp",
  "command": "uvx",
  "args": ["--from", "git+https://github.com/Matsu132/excel-mcp.git", "excel-mcp"],
  "env": {
    "EXCEL_MCP_WORKSPACE": "/Users/your-name/Documents/Excel"
  }
}

The exact configuration key varies by product. Use the product's local MCP or stdio server setting and map it to command, args, and env above. If the client only supports remote MCP endpoints, this repository needs an HTTP transport deployment before it can be used directly.

Other MCP clients

Clients such as Cursor, VS Code MCP extensions, Cline, Windsurf, and MCP Inspector generally accept the same stdio definition. Use:

Command: uvx
Arguments: --from git+https://github.com/Matsu132/excel-mcp.git excel-mcp
Environment: EXCEL_MCP_WORKSPACE=/Users/your-name/Documents/Excel

For MCP Inspector, run:

EXCEL_MCP_WORKSPACE="/absolute/path/to/workbooks" uv run mcp dev src/excel_mcp/server.py

Japanese documentation

日本語のセットアップ手順は README_JAPANESE.md を参照してください。

MCP SDK

This project uses the official MCP Python SDK v2 with MCPServer and @mcp.tool(). The default transport is stdio for local MCP clients. See the official v2 documentation for the SDK API and transport details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured