excel-mcp-server

by haris-musa
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • The MCP server uses Python and the OpenPyXL library to provide Excel file manipulation capabilities without requiring Microsoft Excel installation

Excel MCP サーバー

モデルコンテキストプロトコル(MCP)サーバーを使えば、Microsoft ExcelをインストールしなくてもExcelファイルを操作できます。AIエージェントを使ってExcelワークブックを作成、読み取り、変更できます。

特徴

  • 📊 Excel ブックの作成と変更
  • 📝 データの読み取りと書き込み
  • 🎨 書式とスタイルを適用する
  • 📈 チャートと視覚化を作成する
  • 📊 ピボットテーブルを生成する
  • 🔄 ワークシートと範囲を管理する

クイックスタート

前提条件

  • Python 3.10以上

インストール

  1. リポジトリをクローンします。
git clone https://github.com/haris-musa/excel-mcp-server.git cd excel-mcp-server
  1. uv を使用してインストールします。
uv pip install -e .

サーバーの実行

サーバーを起動します (デフォルト ポート 8000)。

uv run excel-mcp-server

カスタム ポート (例: 8080):

# Bash/Linux/macOS export FASTMCP_PORT=8080 && uv run excel-mcp-server # Windows PowerShell $env:FASTMCP_PORT = "8080"; uv run excel-mcp-server

AIツールと併用する

カーソルIDE

  1. この構成をカーソルに追加します。
{ "mcpServers": { "excel": { "url": "http://localhost:8000/sse", "env": { "EXCEL_FILES_PATH": "/path/to/excel/files" } } } }
  1. Excel ツールは AI アシスタントを通じて利用できるようになります。

リモートホスティングとトランスポートプロトコル

このサーバーは、Server-Sent Events(SSE)トランスポートプロトコルを使用します。様々なユースケースに対応しています。

  1. Claude Desktop で使用する (stdio が必要):
    • Supergatewayを使用して SSE を stdio に変換します。
  2. MCP サーバーのホスティング:

環境変数

  • FASTMCP_PORT : サーバーポート (デフォルト: 8000)
  • EXCEL_FILES_PATH : Excelファイルのディレクトリ(デフォルト: ./excel_files

利用可能なツール

サーバーは包括的なExcel操作ツールセットを提供します。利用可能なすべてのツールの完全なドキュメントについては、 TOOLS.mdをご覧ください。

ライセンス

MIT ライセンス - 詳細についてはライセンスを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

Excelファイル操作機能を提供します。このサーバーは、ワークブックの作成、データ操作、書式設定、および高度なExcel機能を可能にします。

  1. Features
    1. Quick Start
      1. Prerequisites
      2. Installation
      3. Running the Server
    2. Using with AI Tools
      1. Cursor IDE
      2. Remote Hosting & Transport Protocols
    3. Environment Variables
      1. Available Tools
        1. License
          ID: bnuy0j3jrt