Skip to main content
Glama

excel-mcp-server-ts

Excel Model Context Protocol (MCP) サーバー — TypeScript 版。MCP クライアント(Claude Desktop、Claude Code、その他の MCP 対応ホスト)が Excel ワークブックをプログラムで作成・操作できるようにします: シート、セルデータ、書式設定、計算、グラフ、ピボットテーブル。ExcelJS 上に構築されており、Excel のインストールは不要です。

機能

  • ワークブックとワークシートの管理

  • セルデータの読み書き (src/data.ts, src/cellUtils.ts)

  • セルの書式設定 (src/formatting.ts)

  • 数式と計算 (src/calculations.ts)

  • グラフ (src/chart.ts) とピボットテーブル (src/pivot.ts)

Related MCP server: mcp-xlsx-server

インストールとビルド

npm install
npm run build   # tsc -> dist/

実行

npm start       # node dist/cli.js
# or during development:
npm run dev     # ts-node src/cli.ts

MCP クライアントでの使用

claude_desktop_config.json(または任意の MCP ホスト設定)の設定例:

{
  "mcpServers": {
    "excel": {
      "command": "node",
      "args": ["<path-to-repo>/dist/cli.js"]
    }
  }
}

プロジェクト構成

src/
  cli.ts           entry point (bin: excel-mcp)
  server.ts        MCP server wiring
  data.ts          cell/range data operations
  formatting.ts    styles and formats
  calculations.ts  formulas
  chart.ts         charts
  pivot.ts         pivot tables
  cellUtils.ts     helpers
excel_files/       sample workbook for local testing

ライセンス

ISC

Related MCP Connectors

Related MCP Servers