Provides the runtime environment for the Excel MCP server to operate, enabling Excel file operations on the server-side.
Used as the primary programming language for implementing the Excel MCP server, providing type safety and modern language features.
Implements schema validation for Excel operations, ensuring that inputs to Excel manipulation functions are properly formatted and validated.
Excel MCP Server
AIエージェントがExcelを自由に操作できるModel Context Protocol (MCP) サーバーです。
📚 詳細ガイド
初心者の方は guide/
ディレクトリの詳細ガイドを参照してください:
- 📖 メインガイド - プロジェクト全体の概要
- 🎓 MCP基礎知識 - MCPとは何か、仕組みの理解
- ⚙️ セットアップ手順 - 開発環境の構築方法
- 🚀 使用方法 - 実際の使い方と例
- 🔧 ツール詳細 - 各Excel操作ツールの詳細説明
- 🛠️ トラブルシューティング - よくある問題と解決方法
- 📋 サンプル集 - 実用的な使用例集
機能
この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ファイルにエクスポート
セットアップ
- 依存関係をインストール:
- TypeScriptをコンパイル:
- サーバーを起動:
開発
開発モード(コンパイル後に実行):
使用例
MCPクライアントから以下のようにツールを呼び出せます:
技術仕様
- 言語: TypeScript
- ランタイム: Node.js
- MCP SDK: @modelcontextprotocol/sdk
- Excel ライブラリ: ExcelJS
- スキーマ検証: Zod
VS Code での デバッグ
このプロジェクトはVS Codeでデバッグできるように設定されています。.vscode/mcp.json
ファイルにMCPサーバーの設定が含まれています。
ライセンス
ISC
This server cannot be installed
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.
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -56,317407GoMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI agents to create, read, and modify Excel workbooks without requiring Microsoft Excel installation.Last updated -PythonMIT License
- -securityAlicense-qualityA 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 -17PythonMIT License
- -securityAlicense-qualityA 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 -3PythonMIT License