Skip to main content
Glama
Excel MCP Server
by negokaz

Excel MCP サーバー

NPMバージョン 鍛冶屋のバッジ

MS Excel データを読み書きするモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • テキスト値の読み取り/書き込み

  • 数式の読み取り/書き込み

  • 新しいシートを作成する

🪟Windows のみ:

  • ライブ編集

  • シートから画面イメージをキャプチャする

詳細については、ツールのセクションを参照してください。

Related MCP server: MCP Sheet Parser

要件

  • Node.js 20.x 以降

サポートされているファイル形式

  • xlsx(Excelブック)

  • xlsm(Excelマクロ対応ブック)

  • xltx(Excel テンプレート)

  • xltm(Excel マクロ対応テンプレート)

インストール

NPM経由でインストール

excel-mcp-server は、MCP サーバーの構成に次の構成を追加することで自動的にインストールされます。

Windowsの場合:

{
    "mcpServers": {
        "excel": {
            "command": "cmd",
            "args": ["/c", "npx", "--yes", "@negokaz/excel-mcp-server"],
            "env": {
                "EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
            }
        }
    }
}

その他のプラットフォームの場合:

{
    "mcpServers": {
        "excel": {
            "command": "npx",
            "args": ["--yes", "@negokaz/excel-mcp-server"],
            "env": {
                "EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
            }
        }
    }
}

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Excel MCP Server を自動的にインストールするには:

npx -y @smithery/cli install @negokaz/excel-mcp-server --client claude

excel_describe_sheets

指定された Excel ファイルのすべてのシート情報を一覧表示します。

引数:

  • fileAbsolutePath

    • Excelファイルへの絶対パス

excel_read_sheet

ページ区切りを使用して Excel シートから値を読み取ります。

引数:

  • fileAbsolutePath

    • Excelファイルへの絶対パス

  • sheetName

    • Excelファイル内のシート名

  • range

    • Excelシートで読み込むセルの範囲(例:"A1:C10")。[デフォルト: 最初のページ範囲]

  • knownPagingRanges

    • すでに読み取られたページング範囲のリスト

  • showFormula

    • 値の代わりに数式を表示する

excel_screen_capture

**[Windows のみ]**ページ区切り付きの Excel シートのスクリーンショットを撮ります。

引数:

  • fileAbsolutePath

    • Excelファイルへの絶対パス

  • sheetName

    • Excelファイル内のシート名

  • range

    • Excelシートで読み込むセルの範囲(例:"A1:C10")。[デフォルト: 最初のページ範囲]

  • knownPagingRanges

    • すでに読み取られたページング範囲のリスト

excel_write_to_sheet

Excel シートに値を書き込みます。

引数:

  • fileAbsolutePath

    • Excelファイルへの絶対パス

  • sheetName

    • Excelファイル内のシート名

  • newSheet

    • true の場合は新しいシートを作成し、そうでない場合は既存のシートに書き込みます

  • range

    • Excel シートで読み取るセルの範囲 (例: "A1:C10")。

  • values

    • Excelシートに書き込む値。値が数式の場合は、「=」で始まる必要があります。

excel_create_table

Excelシートにテーブルを作成する

引数:

  • fileAbsolutePath

    • Excelファイルへの絶対パス

  • sheetName

    • テーブルが作成されるシート名

  • range

    • テーブルにする範囲(例:"A1:C10")

  • tableName

    • 作成するテーブル名

excel_copy_sheet

既存のシートを新しいシートにコピーする

引数:

  • fileAbsolutePath

    • Excelファイルへの絶対パス

  • srcSheetName

    • Excelファイル内のソースシート名

  • dstSheetName

    • コピーするシート名

次の環境変数によって MCP サーバーの動作を変更できます。

EXCEL_MCP_PAGING_CELLS_LIMIT

1 回のページング操作で読み取るセルの最大数。
[デフォルト: 4000]

ライセンス

Copyright (c) 2025 根来一樹

excel-mcp-serverはMITライセンスの下でリリースされています

Available Tools

6 tools
excel_copy_sheetB
Destructive

Copy existing sheet to a new sheet

Inputs: dstSheetName (required), fileAbsolutePath (required), srcSheetName (required).

excel_create_tableA
Destructive

Create a table in the Excel sheet

Inputs: fileAbsolutePath (required), sheetName (required), tableName (required), range.

excel_describe_sheetsB
Destructive

List all sheet information of specified Excel file

Inputs: fileAbsolutePath (required).

excel_format_rangeB
Destructive

Format cells in the Excel sheet with style information

Inputs: fileAbsolutePath (required), range (required), sheetName (required), styles (required).

excel_read_sheetB
Destructive

Read values from Excel sheet with pagination.

Inputs: fileAbsolutePath (required), sheetName (required), range, showFormula, +1 more.

excel_write_to_sheetC
Destructive

Write values to the Excel sheet

Inputs: fileAbsolutePath (required), newSheet (required), range (required), sheetName (required), +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific Excel operations: copying sheets, creating tables, describing sheets, formatting ranges, reading data, and writing data. There is no overlap or ambiguity between these functions, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tool names follow a consistent 'excel_verb_noun' pattern (e.g., excel_copy_sheet, excel_create_table), using snake_case throughout. This predictable naming convention enhances readability and reduces cognitive load for agents.

    Tool Count4/5

    With 6 tools, the server is well-scoped for basic Excel operations, covering key tasks like reading, writing, formatting, and sheet management. It could benefit from additional tools for advanced features (e.g., formulas, charts), but the current set is reasonable and focused.

    Completeness4/5

    The tools provide solid coverage for core Excel workflows: reading and writing data, sheet management, formatting, and table creation. Minor gaps exist, such as lacking tools for formulas, charts, or cell manipulation (e.g., delete, merge), but agents can handle common tasks effectively with this surface.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    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
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to automate Microsoft Excel tasks such as reading/writing cells, formatting, creating charts, and managing sheets through natural language using the Model Context Protocol.
      1
      Apache 2.0