ClaudeによるMicrosoft Excel自動化セットアップ
メニューを表示するにはスワイプしてください
Excel MCP サーバー のセットアップとテスト。
Claudeによる自動セットアップ
- このコマンドをコピーしてClaudeで実行:
Add excel mcp server credentials to the Claude config file:
uvx excel-mcp-server stdio
更新された設定ファイルの確認(任意)
確認するには、ショートカット Command + , または Ctrl + , を使用するか、設定 → 開発者タブ → 設定を編集 を開き、テキストエディタでファイルを確認。Excel MCP ブロックが追加されていることを確認。
Claudeの再起動
- Claudeを完全に終了(Mac:
Cmd + Q、Windows:Alt + F4); - Claudeを再起動;
Excel MCP サーバーのテスト
注意
Desktop Commander MCP を無効にし、Claude が特に Excel MCP を使用するように設定。データセット付きのファイルが添付されます。Desktop Commander を無効にすると、Claude はローカルファイルへアクセスできません。
新しいExcelワークブックの作成
- 新しい Claude チャットを開き、次のプロンプトを送信:
Create a new excel workbook on my desktop. Build a pivot table
that groups the data by the product column and summarize the total
quantity and the total revenue for each product. Use the attached file.
Use only python libraries for analysis.
- CSVファイル を添付;
- プロンプトを実行。
追加プロンプト
Claude がデスクトップにExcelファイルを作成しない場合、次のように明確に指示:
Run the script, but don't create excel since I want to test new excel mcp
- Claude から Excel MCP AI エージェントの使用を求められたら、常に許可 または 一度だけ許可 をクリック;
- ファイルが前回指定したフォルダに作成されていない場合は、次のプロンプトで明確に指示、例:
Move the file onto Desktop
- 新しいファイルを確認し、プロンプトの練習で機能を拡張。
すべて明確でしたか?
フィードバックありがとうございます!
セクション 4. 章 2
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください
セクション 4. 章 2