Home›MCP / Tooling›Blumeで作る、LLMに読ませるドキュメントの3つの出口

Blumeで作る、LLMに読ませるドキュメントの3つの出口This article explains how to use Blume as an MCP tool to export LLM-readable…

元記事を読むRead original articlezenn.dev(新しいタブで開きます)(opens in a new tab)
AI2 点サマリSummary highlight
  • BlumeをMCPツールとして活用し、LLMが参照しやすいドキュメントをMarkdown・JSON・埋め込みベクターの3形式で出力する方法を解説した記事。
  • ドキュメント設計の観点からLLM連携の実践的なアプローチを示している。

This article explains how to use Blume as an MCP tool to export LLM-readable documents in three formats—Markdown, JSON, and embedded vectors—offering practical guidance for structuring documentation in AI-integrated workflows.

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

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

大規模言語モデル(LLM)にドキュメントを正しく読ませるには、人間向けの体裁とは異なる「機械が扱いやすい形」への変換が欠かせない。この課題に対し、BlumeをMCP(Model Context Protocol)ツールとして活用し、ドキュメントをMarkdown・JSON・埋め込みベクターの3形式で出力するアプローチを紹介する記事が公開された。ドキュメント設計の観点からLLM連携を捉え直す、実践的な内容となっている。

MCPは、AIモデルと外部データソースやツールを標準化された方法で接続するためのプロトコルで、Anthropicが提唱して以降、対応クライアントやサーバー実装が広がりつつある。BlumeをMCPサーバーとして組み込むことで、LLMがドキュメントを必要に応じて取得・参照できる経路を用意できると見られる。ローカルの資料や社内ナレッジをAIの文脈に載せる際の橋渡しとして機能する構成だ。

記事が示す3つの出口は、それぞれ用途が異なる。Markdownは見出しやコードブロックの構造を保ちつつ、LLMが解釈しやすいプレーンな形式として扱える。JSONはメタデータやフィールドを明示的に構造化でき、プログラムからの機械的な処理や後段のパイプラインとの連携に向く。そして埋め込みベクターは、テキストを数値表現へ変換することで、RAG(Retrieval-Augmented Generation)における意味的な検索を可能にする。質問に近い内容の文書片を類似度で引き当てる仕組みは、近年のAIアプリケーションで広く採用されている。

これら3形式を使い分ける発想は、単にドキュメントを出力するだけでなく、「どの段階でLLMに何を渡すか」を設計する視点につながる。人間向けの表示にはMarkdown、システム間連携にはJSON、検索基盤にはベクターという役割分担は、AIを前提とした情報設計の一つの型と言えるだろう。

同種の取り組みとしては、LangChainやLlamaIndexといったフレームワークがドキュメントのチャンク分割やベクトル化を支援しており、ベクターデータベースの選択肢も増えている。そうした周辺エコシステムを踏まえると、MCPを介してドキュメントの出口を整理するこのアプローチは、既存のRAG構築ノウハウと組み合わせて応用できる可能性がある。ドキュメントをAIに読ませる前提で設計する動きは、今後さらに一般化していくと見られる。

As large language models become part of everyday development workflows, the way documentation is prepared for machine consumption is becoming nearly as important as how it is written for people. A recent tutorial published on Zenn addresses this shift using Blume, a documentation tool that can operate as a Model Context Protocol (MCP) server, and it lays out three distinct output formats—Markdown, JSON, and embedding vectors—each suited to a different method of feeding content to an LLM. The framing matters because the format in which documentation reaches a model can strongly influence how reliably that model retrieves and uses the information.

The Model Context Protocol is an open standard, introduced by Anthropic in late 2024, that defines how AI applications connect to external tools and data sources. Instead of building a custom integration for every combination of model and system, developers can expose a resource once through an MCP server and let any compatible client—such as Claude Desktop, IDE assistants, or custom agents—consume it. Treating Blume as an MCP tool means a model can request documentation on demand during a task, rather than depending on whatever text a user happened to paste into the prompt. This positions documentation as a live, queryable resource instead of a static file.

The article organizes its guidance around the idea of three "exits," the notion that the same underlying documentation can leave the system through three different doors depending on who or what is consuming it. The first exit is Markdown, which remains the most direct option for placing content into a model's context window. Markdown is lightweight, human-readable, and preserves structural cues such as headings, lists, and code blocks that models generally parse well. It is a sensible default when the goal is to hand a model a self-contained document to read and reason over in a single pass.

The second exit is JSON, aimed at programmatic and agentic consumption. By expressing documentation as structured data with predictable fields, JSON allows an agent to navigate sections, extract metadata, or pull only the parts it needs without interpreting free-form prose. This is especially useful in multi-step workflows where a tool or orchestration layer processes the documentation before it ever reaches the model, or where consistency and validation matter more than readability.

The third exit is embedding vectors, the numerical representations that underpin semantic search and retrieval-augmented generation, commonly abbreviated as RAG. Here, documentation is split into chunks and passed through an embedding model to produce vectors that capture meaning rather than exact wording. Those vectors are typically stored in a vector database—options in this space include pgvector, Chroma, Weaviate, and Pinecone—so that a query can retrieve the most semantically relevant passages by similarity. This exit is intended for large corpora that cannot fit into a context window, where the system fetches only the passages most likely to answer a given question.

Taken together, the three formats reflect a broader principle in AI-integrated documentation: the right representation depends on the retrieval pattern. Markdown suits direct reading, JSON suits structured programmatic access, and embeddings suit similarity-based search across large collections. Some workflows are likely to combine them, for instance using vector search to locate relevant documents and then serving the underlying Markdown for the final generation step. The article appears to emphasize this design perspective, treating documentation structure as an upstream decision that shapes downstream LLM behavior.

For readers unfamiliar with the surrounding ecosystem, a few prerequisite concepts help. Embedding models differ from the generative models that produce answers, and the choice of embedding model affects retrieval quality. Chunking strategy—how documents are divided before embedding—also influences results, since overly large or poorly bounded chunks can dilute relevance. MCP itself continues to gain adoption across editors and agent frameworks, which makes tooling that speaks the protocol more broadly reusable.

The practical value of an approach like Blume's is that it consolidates these output paths behind a single interface, reducing the need to maintain separate pipelines. As with any tutorial, readers should verify current behavior against the tool's documentation, since MCP tooling and Blume's own features may evolve. Still, the underlying guidance—matching document format to how an LLM will actually consume it—is likely to remain relevant as retrieval-centric AI systems mature.

ポコと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生Markdown、llms.txt、MCPって、なんで読み口を3つも用意するの?Why provide three ways in—raw Markdown, llms.txt, and MCP?
  2. TECHガイドTECH Guide用途を分けるためだね。ページ単位の取得、索引と全文、検索やページ取得のツールとして使い分けられるんだ。They serve different needs: fetching one page, accessing an index or full text, and using tools to search or retrieve pages.
  3. ポコPokoじゃあ、エージェントが必要なページだけ選んで、どの説明を使ったか追いやすくなるってこと?So an agent can choose only the pages it needs, making it easier to trace which explanation it used?
  4. TECHガイドTECH Guideうん。まずナビゲーションを見て、検索結果から1ページを取る流れなら、読む範囲と根拠を絞りやすいと述べているよ。Yes. The suggested flow is to inspect the navigation first, then retrieve one page from search results, narrowing both the reading scope and the source.
  5. ポコPoko全文をまとめて渡すより、必要な文書を順に選ばせる設計が大事なんだね。Got it—the key is letting the agent select needed documents step by step, rather than handing over everything at once.
  6. TECHガイドTECH Guideただし、本文に版や短い識別子がなければ後から検証しにくい。MCPで検索できるだけでは十分ではない、という注意もあるよ。One caution: without a version or short identifier in the document, later verification is difficult. Search through MCP alone isn’t enough.
記事情報・収集記録Article details & collection record
出典Source
Zenn 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.0 / 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