Skip to main content
Glama

Excel MCP Server

Excel MCP Server

AIエージェントがExcelを自由に操作できるModel Context Protocol (MCP) サーバーです。

📚 詳細ガイド

初心者の方は guide/ ディレクトリの詳細ガイドを参照してください:

機能

このMCPサーバーは以下のExcel操作機能を提供します:

ワークブック・ワークシート操作

  • create_workbook - 新しいExcelワークブックを作成
  • add_worksheet - ワークシートを追加

セル・範囲操作

  • set_cell_value - セルに値を設定
  • get_cell_value - セルの値を取得
  • set_range_values - 範囲に2次元配列データを設定
  • get_range_values - 範囲のデータを取得

書式設定

  • format_cell - セルの書式(フォント、塗りつぶし、罫線)を設定

数式・計算

  • add_formula - セルに数式を追加

データ操作

  • find_data - ワークシート内でデータを検索

出力

  • export_to_csv - ワークシートをCSVファイルにエクスポート

セットアップ

  1. 依存関係をインストール:
npm install
  1. TypeScriptをコンパイル:
npm run build
  1. サーバーを起動:
npm start

開発

開発モード(コンパイル後に実行):

npm run dev

使用例

MCPクライアントから以下のようにツールを呼び出せます:

// 新しいワークブックを作成 await callTool("create_workbook", { filePath: "C:/path/to/workbook.xlsx" }); // ワークシートを追加 await callTool("add_worksheet", { filePath: "C:/path/to/workbook.xlsx", sheetName: "Sheet1" }); // セルに値を設定 await callTool("set_cell_value", { filePath: "C:/path/to/workbook.xlsx", sheetName: "Sheet1", cell: "A1", value: "Hello, Excel!" }); // 範囲にデータを設定 await callTool("set_range_values", { filePath: "C:/path/to/workbook.xlsx", sheetName: "Sheet1", startCell: "A1", values: [ ["名前", "年齢", "職業"], ["田中", 30, "エンジニア"], ["佐藤", 25, "デザイナー"] ] }); // セルの書式を設定 await callTool("format_cell", { filePath: "C:/path/to/workbook.xlsx", sheetName: "Sheet1", cell: "A1", format: { font: { bold: true, size: 14, color: "FF0000FF" }, fill: { type: "pattern", pattern: "solid", fgColor: "FFFF00" } } });

技術仕様

  • 言語: TypeScript
  • ランタイム: Node.js
  • MCP SDK: @modelcontextprotocol/sdk
  • Excel ライブラリ: ExcelJS
  • スキーマ検証: Zod

VS Code での デバッグ

このプロジェクトはVS Codeでデバッグできるように設定されています。.vscode/mcp.jsonファイルにMCPサーバーの設定が含まれています。

ライセンス

ISC

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

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

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.

  1. 📚 詳細ガイド
    1. 機能
      1. ワークブック・ワークシート操作
      2. セル・範囲操作
      3. 書式設定
      4. 数式・計算
      5. データ操作
      6. 出力
    2. セットアップ
      1. 開発
        1. 使用例
          1. 技術仕様
            1. VS Code での デバッグ
              1. ライセンス

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that enables AI assistants to read from and write to Microsoft Excel files, supporting formats like xlsx, xlsm, xltx, and xltm.
                  Last updated -
                  5
                  6,317
                  407
                  Go
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that enables AI agents to create, read, and modify Excel workbooks without requiring Microsoft Excel installation.
                  Last updated -
                  Python
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server for intelligent Excel processing and data analysis, offering tools for reading, validating, executing code, and generating interactive visualizations with Excel files.
                  Last updated -
                  17
                  Python
                  MIT License
                  • Apple
                  • Linux
                • -
                  security
                  A
                  license
                  -
                  quality
                  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.
                  Last updated -
                  3
                  Python
                  MIT License
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/SuperPyonchiX/excel_mcp_server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server