excel-mcp-live
excel-mcp-live
開いているMicrosoft Excelワークブックを編集します — AIは既に開いているウィンドウに接続し、独自のウィンドウを起動しません。
Live editing · Windows (COM) · 19 tools
ほとんどのExcel MCPサーバー(このワークスペースのmcp-server-excelを含む)は、新しい非表示のExcelプロセスを起動し、その中でファイルを開き、完了したら再度閉じるという方法で動作します。これはスクリプトによる自動化には最適ですが、AIがあなたと同じウィンドウを見ることは決してないことを意味します。
excel-mcp-liveはその逆を行います。COMを介して、既に開いているExcelウィンドウに接続します。これはword-mcp-liveのライブ編集ツールと同じ「実行中のアプリケーションを検索する」アプローチを使用しています。Excelを起動することも閉じることもなく、自分で開いたワークブックにのみ触れます。
要件
Windows(COMオートメーションはWindowsのみ — このプロジェクトにはmacOS/Linuxモードはありません)
Microsoft Excelがインストールされ、ワークブックを開いた状態で既に実行中であること
Python 3.11+
Related MCP server: mcp-server-xlwings
インストール
git clone <this-repo-url>
cd excel-mcp-live
pip install -e .または、uvを使用してソースから直接実行できます — インストール手順は不要です:
uv run excel_mcp_server.pyクライアント設定(.mcp.json)
MCPクライアントをプロジェクトディレクトリに指定します。Claude Codeの場合は、プロジェクトの.mcp.json(またはユーザー全体の設定として~/.claude.json)にこれを追加します:
{
"mcpServers": {
"excel-live": {
"command": "uv",
"args": [
"--directory",
"G:/Ai/MCP/excel-mcp-live",
"run",
"excel_mcp_server.py"
],
"env": {
"MCP_AUTHOR": "Your Name"
}
}
}
}代わりにpip install -e .でインストールした場合は、コンソールスクリプトを直接使用できます:
{
"mcpServers": {
"excel-live": {
"command": "excel-mcp-live",
"env": {
"MCP_AUTHOR": "Your Name"
}
}
}
}MCP_AUTHORは、新しいセルコメントに添付される作成者名を設定します(デフォルト:"Author")。
対応機能
すべてのツールは、Excelで既に開いているワークブックに対して動作します。workbook引数とsheet引数はほぼすべての場所でオプションです — 省略すると、アクティブなワークブック/アクティブなシートを対象にします。
Tool | Description |
Workbook | |
| 実行中のすべてのExcelウィンドウで開いているすべてのワークブックを一覧表示 |
| シート名、アクティブシート、シートごとの使用範囲 |
| その場で保存(Ctrl+S) |
Worksheets | |
| タブ順にシート名を一覧表示 |
| 新しいシートを追加(名前と位置を指定可能) |
| シートを削除 |
| シート名を変更 |
| アクティブなタブを切り替え |
Cells & ranges | |
| セル/範囲の値を読み取り |
| 値、行、または2Dの値ブロックを書き込み |
| 数式を読み取り(A1スタイル) |
| 1つのセルに数式またはリテラルを設定 |
| シート全体またはワークブック全体でテキストを検索して置換 |
| 内容をクリア(オプションで書式も含む) |
| 行を挿入または削除し、他の行を上下にシフト |
| 列を挿入または削除し、他の列を左右にシフト |
| 1つの列で範囲を並べ替え、オプションでヘッダー行を固定 |
Formatting | |
| 太字/斜体/下線、フォント、塗りつぶし色、数値書式、配置、折り返し |
| 列幅を自動調整 |
Conditional formatting | |
| 比較条件に一致するセルを強調表示(より大きい、範囲内など) |
| 範囲全体に2色または3色のカラースケールを適用 |
| 範囲に適用されたルールを一覧表示 |
| 範囲からすべてのルールを削除 |
Named ranges | |
| ユーザー定義の名前付き範囲を一覧表示 |
| 名前付き範囲の現在の値を読み取り |
| 名前付き範囲の左上のセルに値を書き込み |
| 新しい名前付き範囲を作成 |
| 既存の名前付き範囲を新しいアドレスに再指定 |
| 名前付き範囲を削除 |
Data validation | |
| 範囲を値のドロップダウンリストに制限 |
| 範囲を比較条件に一致する数値に制限 |
| セルの検証ルールを読み取り |
| 範囲から検証を削除 |
Merging | |
| 範囲を1つのセルに結合、または解除 |
| セルが結合範囲の一部かどうかを確認 |
Hyperlinks | |
| ハイパーリンクを追加(外部URLまたは内部セル参照) |
| セルのハイパーリンクを削除 |
| シート上のすべてのハイパーリンクを一覧表示 |
Excel Tables | |
| 範囲からExcelテーブル(ListObject)を作成 |
| シート上のテーブルを一覧表示 |
| テーブルの列、範囲、行数、スタイルを読み取り |
| テーブルの末尾に1行以上を追加 |
| テーブルのデータ行を2D配列として読み取り |
| 組み込みのテーブルスタイルを適用 |
| テーブルの定義を削除し、基になるデータは保持 |
Charts | |
| 範囲からグラフを作成 |
| シート上のグラフを一覧表示 |
| グラフの種類を変更(縦棒、横棒、折れ線、円、面、散布図、ドーナツ) |
| グラフのタイトルを設定またはクリア |
| グラフにデータ系列を追加 |
| グラフを削除 |
Comments | |
| セルコメント(メモ)を追加 |
| シート上のコメントを一覧表示 |
| セルのコメントを削除 |
まだ対応していないもの:ピボットテーブル、Power Query、DAX、VBA — これらにはmcp-server-excelを使用してください。これは独自のExcelインスタンスを起動し、はるかに広範な操作をカバーしています。
プロンプト例
"I have this budget open in Excel — read A1:F20 and tell me if any totals look wrong."
"Add a new sheet called 'Summary' before the current one."
"Bold row 1 in the sheet I have open and give it a light gray fill."
"Find every 'Q3' in this workbook and replace it with 'Q4'."
"Set B2 to =SUM(B3:B20) and tell me what it calculates to."
"Add a comment on cell D5 asking whether this figure includes tax."既知の制限事項
Windowsのみ。 Excel COMオートメーションはmacOS/Linuxには存在しません。
ワークブックがExcelで既に開いている必要があります。 このサーバーはファイルを作成または開きません — それにはmcp-server-excelを参照してください。
単一の元に戻すグループ化はありません。 WordのCOM APIは複数の編集を1つのCtrl+Zにまとめることができますが、Excelではできません。複数の書き込み(例:複数のセルへの書き込み)を実行するツール呼び出しは、完全に元に戻すために複数回のCtrl+Zが必要になる場合があります。
複数のExcelウィンドウ: 複数のワークブックを開いている場合(別々のExcelプロセスにまたがる可能性があります)、正しいワークブックを対象にするために
workbookを明示的に渡してください — そうしないと、ツールは最初に見つかったExcelインスタンスのアクティブなワークブックをデフォルトで使用します。
開発
アーキテクチャのメモと設計上の制約についてはCLAUDE.mdを参照してください — 特に、このサーバーがExcel自体を起動または終了してはならない理由について。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables reading and writing of values, formulas, and formatting in Microsoft Excel files including .xlsx and .xlsm formats. It supports sheet management, table creation, and provides Windows-exclusive features like live editing and screen capture.14,896MIT
- AlicenseAqualityCmaintenanceEnables Excel automation via xlwings COM, supporting DRM-protected files and live Excel sessions with tools to read, write, format, run macros, and more.111MIT
- AlicenseNot gradedqualityDmaintenanceEnables adding, editing, and running VBA modules on running Excel instances in Windows.526MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to read, write, format, and execute VBA macros in Microsoft Excel in real-time through the Model Context Protocol, connecting directly to an open Excel window via COM integration.
Related MCP Connectors
Formula-backed WorkPaper tools for workbook readback, input edits, and JSON persistence.
Real .docx and .xlsx files from structured data, with automatic Hebrew/Arabic RTL.
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/trustypangolin/excel-mcp-live'
If you have feedback or need assistance with the MCP directory API, please join our Discord server