Home›MCP / Tooling›VBAマネージャーの開発から1年で、Excelの中に住むエージェントの初号機を作った話
VBAマネージャーの開発から1年で、Excelの中に住むエージェントの初号機を作った話

VBAマネージャーの開発から1年で、Excelの中に住むエージェントの初号機を作った話One year after starting an AI-driven Excel VBA manager, the author built a…

元記事を読むRead original articleqiita.com(新しいタブで開きます)(opens in a new tab)
AI2 点サマリSummary highlight
  • AIでExcel VBAを操るツールの開発開始から約1年が経ち、著者はExcel内で自律的に動作するエージェントの初号機を実装した。
  • MCPを活用したこの取り組みは、Excelをただの表計算ツールではなくエージェントの実行環境として捉え直す試みとして注目される。

One year after starting an AI-driven Excel VBA manager, the author built a first-generation agent that lives inside Excel itself, leveraging MCP to treat the spreadsheet as an autonomous execution environment rather than a passive tool.

本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (qiita.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (qiita.com).

要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.

Excelの中で自律的に動くAIエージェントを作った——。ある開発者が、AIでExcel VBAを操作するツールの開発を始めてから約1年を経て、Excel内部に「住む」エージェントの初号機を実装したと報告した。表計算ソフトを単なる道具ではなく、エージェントの実行環境として捉え直す試みとして関心を集めている。

この開発者は昨年8月に「AIでExcel VBAを操る道具」の制作に着手したという。VBA(Visual Basic for Applications)は、ExcelをはじめとするMicrosoft Office製品に組み込まれたスクリプト言語で、セル操作や定型処理の自動化に長く使われてきた。近年はこのVBAをAIと組み合わせ、自然言語の指示から処理を生成・実行する動きが、個人開発者の間で広がりつつある。

今回の取り組みの核となるのがMCP(Model Context Protocol)だ。MCPはAIモデルと外部のツールやデータソースを接続するためのオープンな規格で、生成AIが文章を返すだけでなく、実際の操作を伴う「エージェント」として振る舞うための土台となる。今回のケースでは、Excelそのものをエージェントの実行環境と位置づけ、MCPサーバーを介してAIとExcelの機能をつなぐ構成が採られていると見られる。

開発者は少し前の記事で、目的のファイルを探す仕組みを「ファイル名→本文→AI」の三段構えで解説していた。次回は「AI要約説明」を予告していたが、その前に本稿を差し込んだ形だという。1年という節目での区切りとして、これまで積み上げてきた機能群の延長線上に、より自律的なエージェントを据えようとする狙いがうかがえる。

こうした個人による実装は、Microsoft自身がCopilotを通じてOffice製品へのAI統合を進める大きな流れとも重なる。ただし今回の事例は、既製のAI機能をそのまま使うのではなく、MCPという共通規格を軸に自前でエージェントの実行基盤を組み上げている点に特徴がある。表計算ソフトをAIの「作業場」として再定義しようとする試みが、どこまで実用的な自動化につながるのか、今後の展開が注目される。

An independent developer has marked the first anniversary of an ongoing effort to drive Microsoft Excel's VBA macros with AI, publishing an account of a "first-generation" agent that runs inside the spreadsheet itself. The project, described in a Qiita blog post, treats Excel less as a passive calculation grid and more as an execution environment in which an autonomous agent can operate — a framing the author connects to the Model Context Protocol (MCP).

According to the post, the author began building "a tool to operate Excel VBA with AI" in August of the previous year, and the milestone marks exactly twelve months of development. Over that period the project has accumulated a series of capabilities, each documented in separate write-ups. The agent described here is presented as an early prototype rather than a finished product, and the author frames it as one more installment in a continuing series.

MCP is an open standard, introduced by Anthropic in late 2024, that defines how AI applications connect to external tools, data sources, and services. A program that exposes capabilities through the protocol is generally called an MCP server, while the AI-facing application that consumes them acts as the client. The approach has gained traction across the industry because it offers a consistent interface for wiring language models into software they would otherwise be unable to reach directly. The tags accompanying the post — including mcp-server, agent, and ai-automation — suggest the author is packaging Excel's automation surface behind such a server so that a model can call into it.

VBA, or Visual Basic for Applications, is the macro language embedded in Microsoft Office. It has powered spreadsheet automation for decades and remains widely used in finance, operations, and reporting workflows, despite Microsoft's more recent push toward Office Scripts and the Python-in-Excel integration. Bridging VBA to a modern AI agent is notable precisely because so much existing business logic still lives in these macros; an agent that can read, write, and run them could interact with a large installed base of legacy automation rather than requiring everything to be rebuilt.

The author situates the new agent within earlier work. A previous article described a "three-tier" approach to locating files, escalating from a filename match to a full-text search of file contents and finally to an AI-assisted step when the simpler methods fall short. That layered design — trying cheap, deterministic methods before invoking a model — is a common pattern in AI tooling, where model calls carry cost and latency. The author had also signaled that an "AI summary explanation" feature was coming next, but chose to publish this agent piece first.

The broader significance is that the effort sits at the intersection of two trends. Agentic AI, in which models are given tools and allowed to take multi-step actions rather than simply returning text, has been a central theme across the industry through 2025 and into 2026. At the same time, Microsoft has been embedding its own Copilot assistant into Excel and the wider Microsoft 365 suite. An independent, MCP-based agent that lives inside Excel represents a grassroots take on the same idea, built around an open protocol rather than a vendor-specific assistant, and it points to how individual developers are experimenting with the same architecture the major platforms are commercializing.

As a personal project chronicled on a developer blog, the write-up appears to be exploratory, and the "first-generation" label suggests the author expects significant revision. The post does not, based on the available excerpt, claim production-grade reliability or broad compatibility, and readers evaluating the approach would likely need to consult the full article and any accompanying code for implementation specifics. Even so, the account is a useful data point on how MCP, VBA, and agentic patterns are being combined to extend a tool that remains a fixture of everyday office work. Whether such in-application agents prove practical at scale is still an open question, but the year-long progression documented here shows the concept moving from a simple automation helper toward something closer to a resident assistant.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPoko「Excelの中に住むエージェント」って何? MCPもよく分からないよ。What does an “agent living inside Excel” mean? And what exactly is MCP?
  2. TECHガイドTECH Guide簡単に言うとじゃな、MCPはAIと道具をつなぐ仕組みじゃ。記事では、それを使ってExcel内で自律的に動く初号機を実装したそうじゃよ。Simply put, MCP connects AI with tools. According to the article, the author used it to build a first-generation agent that operates autonomously inside Excel.
  3. ポコPokoへえ! でも、Excelの中で動くと何が嬉しいの?Wow! But what’s useful about having it run inside Excel?
  4. TECHガイドTECH Guide記事のポイントは、Excelをただの表計算ツールではなく、エージェントが動く実行環境として捉え直したことじゃな。The key point, the article says, is treating Excel not just as a spreadsheet tool, but as an environment where an agent can operate.
  5. ポコPokoつまり、AIでVBAを操る道具から一歩進んで、Excel自体をエージェントの居場所にしたんだね。So it goes a step beyond using AI to control VBA—Excel itself becomes the agent’s home.
  6. TECHガイドTECH Guideその理解でよいぞ。まだ初号機なので、ここからどう発展するかが見どころじゃが、具体的な機能や性能は記事情報だけでは分からん点に注意じゃ。Exactly. Since it’s only the first version, its evolution will be worth watching—though the provided article details don’t specify its exact features or performance.
記事情報・収集記録Article details & collection record
出典Source
Qiita MCPコミュニティCommunity
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
JA
重要度の位置づけImportance in this lane
MediumMedium priority(MCP / Tooling 122件中、同等以上 112件)(112 of 122 MCP / Tooling entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.1 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
中期 (チュートリアル)Medium-term (tutorial)

🔗MCP / Tooling の他の記事More from MCP / Toolingもっと見る →View more →

ページ上部へScroll to top