Skip to main content
Glama

Excel MCP サーバー

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

特徴

  • 📊 Excel ブックの作成と変更

  • 📝 データの読み取りと書き込み

  • 🎨 書式とスタイルを適用する

  • 📈 チャートと視覚化を作成する

  • 🔄 ワークシートと範囲を管理する

Related MCP server: Spire.XLS MCP Server

クイックスタート

前提条件

  • Python 3.10以上

インストール

  1. リポジトリをクローンします。

git clone https://github.com/Aifornorms/ExcelMCP.git
cd ExcelMCP
  1. uv を使用してインストールします。

python -m venv .venv
.venv/scripts/activate
pip install 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": "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 ライセンス - 詳細についてはライセンスを参照してください。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server designed for AI assistants to directly process spreadsheet files, enabling them to read, display, modify, and save various table formats like CSV and Excel.
      3
      3
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI agents to freely operate Excel spreadsheets, providing tools for workbook creation, cell manipulation, formatting, formula handling, and data export.
      11
      ISC