mcp-rtfm
MCP-RTFM
「RTFM!」ってよく言われるけど、もしFMがRに繋がらなかったらどうなるの?🤔 MCP-RTFMの登場です。みんなが読むように言ってくるあの「クソマニュアル」の作成をサポートするMCPサーバーです!高度なコンテンツ分析、メタデータ生成、そしてインテリジェントな検索機能により、存在しない、あるいは読めないドキュメントを相互接続されたナレッジベースに変換し、質問される前に「基本的な質問」に答えます。
どんでん返し:ただ「RTFM」とだけ言うのではなく、実際に「R-」する価値のあるFMを提供できるようになりました!「クソマニュアルを読め」という要求に対する最良の対応は、実際に読む価値のあるマニュアルを提供することです。📚✨
📚 目次
Related MCP server: GitMCP
🚀 クイックスタート
# Install dependencies
npm install
# Build the server
npm run build
# Add to your MCP settings and start using
await use_mcp_tool({
server: "mcp-rtfm",
tool: "analyze_project_with_metadata", // Enhanced initialization
args: { projectPath: "/path/to/project" }
});
// This will:
// 1. Create documentation structure
// 2. Analyze content with unified/remark
// 3. Generate intelligent metadata
// 4. Build search index with minisearch
// 5. Add structured front matter
// 6. Make your docs actually readable!✨ 特徴
ドキュメント管理ツール
analyze_existing_docs- コンテンツ分析とメタデータを使用して既存のドキュメントを分析および強化しますanalyze_project_with_metadata- 強化されたコンテンツ分析とメタデータ生成を使用してドキュメント構造を初期化しますanalyze_project- ドキュメント構造の基本的な初期化read_doc- ドキュメントファイルを読み取る(更新前に必要)update_doc- 差分ベースの変更を使用してドキュメントを更新するget_doc_content- ドキュメントファイルの現在のコンテンツを取得するget_project_info- プロジェクトの構造とドキュメントのステータスを取得するsearch_docs- ハイライト表示された結果でドキュメントファイル全体を検索するupdate_metadata- ドキュメントのメタデータを更新するget_related_docs- メタデータとコンテンツリンクに基づいて関連ドキュメントを検索するcustomize_template- ドキュメントテンプレートを作成または更新する
デフォルトのドキュメントファイル
サーバーは、次のコア ドキュメント ファイルを自動的に作成および管理します。
techStack.md- ツール、ライブラリ、構成の詳細なインベントリcodebaseDetails.md- コード構造とロジックの低レベルの説明workflowDetails.md- 主要プロセスのステップバイステップのワークフローintegrationGuides.md- 外部システム接続の手順errorHandling.md- トラブルシューティングの戦略と実践handoff_notes.md- 主要テーマと次のステップの要約
ドキュメントテンプレート
さまざまなドキュメント タイプ用の組み込みテンプレート:
標準ドキュメントテンプレート
APIドキュメントテンプレート
ワークフロードキュメントテンプレート
カスタム テンプレートは、 customize_templateツールを使用して作成できます。
📝 ワークフローの例
1. 既存のドキュメントの分析
// Enhance existing documentation with advanced analysis
await use_mcp_tool({
server: "mcp-rtfm",
tool: "analyze_existing_docs",
args: { projectPath: "/path/to/project" }
});
// This will:
// - Find all markdown files in .handoff_docs
// - Analyze content structure with unified/remark
// - Generate intelligent metadata
// - Build search index
// - Add front matter if not present
// - Establish document relationships
// - Preserve existing content
// The results include:
// - Enhanced metadata for all docs
// - Search index population
// - Content relationship mapping
// - Git context if available2. 強化されたプロジェクトドキュメント設定
// Initialize documentation with advanced content analysis
await use_mcp_tool({
server: "mcp-rtfm",
tool: "analyze_project_with_metadata",
args: { projectPath: "/path/to/project" }
});
// Results include:
// - Initialized documentation files
// - Generated metadata from content analysis
// - Established document relationships
// - Populated search index
// - Added structured front matter
// - Git repository context
// Get enhanced project information
const projectInfo = await use_mcp_tool({
server: "mcp-rtfm",
tool: "get_project_info",
args: { projectPath: "/path/to/project" }
});
// Search across documentation with intelligent results
const searchResults = await use_mcp_tool({
server: "mcp-rtfm",
tool: "search_docs",
args: {
projectPath: "/path/to/project",
query: "authentication"
}
});
// Results include:
// - Weighted matches (title matches prioritized)
// - Fuzzy search results
// - Full content context
// - Related document suggestions3. コンテンツリンクによるドキュメントの更新
// First read the document
await use_mcp_tool({
server: "mcp-rtfm",
tool: "read_doc",
args: {
projectPath: "/path/to/project",
docFile: "techStack.md"
}
});
// Update with content that links to other docs
await use_mcp_tool({
server: "mcp-rtfm",
tool: "update_doc",
args: {
projectPath: "/path/to/project",
docFile: "techStack.md",
searchContent: "[Why this domain is critical to the project]",
replaceContent: "The tech stack documentation provides essential context for development. See [[workflowDetails]] for implementation steps.",
continueToNext: true // Automatically move to next document
}
});4. ドキュメントメタデータの管理
// Update metadata for better organization
await use_mcp_tool({
server: "mcp-rtfm",
tool: "update_metadata",
args: {
projectPath: "/path/to/project",
docFile: "techStack.md",
metadata: {
title: "Technology Stack Overview",
category: "architecture",
tags: ["infrastructure", "dependencies", "configuration"]
}
}
});
// Find related documentation
const related = await use_mcp_tool({
server: "mcp-rtfm",
tool: "get_related_docs",
args: {
projectPath: "/path/to/project",
docFile: "techStack.md"
}
});5. コンテキストを考慮したドキュメントの検索
// Search with highlighted results
const results = await use_mcp_tool({
server: "mcp-rtfm",
tool: "search_docs",
args: {
projectPath: "/path/to/project",
query: "authentication"
}
});
// Results include:
// - File name
// - Line numbers
// - Highlighted matches
// - Context around matches6. カスタムテンプレートの作成
// Create a custom template for architecture decisions
await use_mcp_tool({
server: "mcp-rtfm",
tool: "customize_template",
args: {
templateName: "architecture-decision",
content: `# {title}
## Context
[Background and context for the decision]
## Decision
[The architecture decision made]
## Consequences
[Impact and trade-offs of the decision]
## Related Decisions
[Links to related architecture decisions]`,
metadata: {
category: "architecture",
tags: ["decision-record", "design"]
}
}
});🔧 インストール
VSCode(ルー・クライン)
設定ファイルに追加: 設定ファイルに追加:
Windows:
%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.jsonmacOS:
~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.jsonLinux:
~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
{
"mcpServers": {
"mcp-rtfm": {
"command": "node",
"args": ["<path-to-mcp-rtfm>/build/index.js"],
"disabled": false,
"alwaysAllow": []
}
}
}クロードデスクトップ
次の設定ファイルに追加します:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonMacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-rtfm": {
"command": "node",
"args": ["<path-to-mcp-rtfm>/build/index.js"],
"disabled": false,
"alwaysAllow": []
}
}
}🎯 高度な機能
コンテンツリンク
ドキュメント間のリンクを作成するには、 [[document-name]]構文を使用します。サーバーはこれらの関係を自動的に追跡し、関連ドキュメントの検索時にリンクを含めます。
メタデータ駆動型組織
ドキュメントは以下を使用して整理されます:
カテゴリ(例:「アーキテクチャ」、「API」、「ワークフロー」)
柔軟なグループ化のためのタグ
共有メタデータに基づく自動関係検出
コンテンツリンク分析
強化されたコンテンツ分析
サーバーは、より優れたドキュメント管理のために高度なライブラリを使用します。
Markdown処理のためのunified/remark :
ASTベースのコンテンツ分析
正確な見出し構造検出
コードブロックとリンクの抽出
適切なMarkdownの解析と操作
強力な検索機能を備えたミニサーチ:
すべてのドキュメントにわたる高速あいまい検索
フィールド重み付け検索(タイトルに高い優先順位が付けられます)
完全なコンテンツとメタデータのインデックス作成
TTL管理による効率的なキャッシュ
リアルタイム検索インデックス更新
インテリジェントなメタデータ生成
分類のための自動コンテンツ分析
コンテンツパターンに基づいたスマートタグ生成
文書内の構造化された前付
ASTベースのタイトルとセクションの検出
コードスニペットの識別とタグ付け
コンテキストに応じた結果の提示
テンプレートシステム
一般的なドキュメントタイプ用の組み込みテンプレート
メタデータのデフォルトを使用したカスタム テンプレートのサポート
テンプレートの継承とオーバーライド機能
一貫したフォーマットのためのプレースホルダーシステム
🛠️ 開発
# Install dependencies
npm install
# Build the server
npm run build
# Development with auto-rebuild
npm run watch🐛 デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。MCPインスペクターを使用してください。
npm run inspectorインスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
📄 ライセンス
MIT ©モデルコンテキストプロトコル
Available Tools
11 toolsanalyze_existing_docsC
Analyze existing documentation files with enhanced content analysis and metadata generation
Inputs: projectPath (required).
analyze_projectC
Analyze project structure and create initial documentation files
Inputs: projectPath (required).
analyze_project_with_metadataC
Analyze project structure, create initial documentation files, and enhance with metadata/context
Inputs: projectPath (required).
customize_templateC
Create or update a custom documentation template
Inputs: content (required), templateName (required), metadata.
get_doc_contentC
Get the current content of a documentation file
Inputs: docFile (required), projectPath (required).
get_project_infoC
Get information about the project structure and files
Inputs: projectPath (required).
read_docB
Read a documentation file (required before updating)
Inputs: docFile (required), projectPath (required).
search_docsC
Search across documentation files with highlighted results
Inputs: projectPath (required), query (required).
update_docC
Update a specific documentation file using diff-based changes
Inputs: docFile (required), projectPath (required), replaceContent (required), searchContent (required), +1 more.
update_metadataC
Update metadata for a documentation file
Inputs: docFile (required), metadata (required), projectPath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
The tool set has clear distinctions for most operations like reading, updating, and searching docs, but there is significant overlap between analyze_project and analyze_project_with_metadata, which could confuse agents about which to use for basic analysis. Additionally, analyze_existing_docs and analyze_project serve similar purposes with unclear boundaries, leading to potential misselection.
Most tools follow a consistent verb_noun pattern (e.g., analyze_existing_docs, customize_template, get_doc_content), making them predictable and readable. However, there are minor deviations like read_doc (verb_noun) vs. update_doc (verb_noun), which are still consistent in structure, and no chaotic mixing of conventions, so the naming is largely uniform.
With 11 tools, the count is well-scoped for a documentation management server, covering analysis, retrieval, updating, and metadata handling. Each tool appears to earn its place by addressing specific aspects of the domain, such as project analysis, content management, and search, without feeling overly heavy or thin.
The tool surface provides comprehensive coverage for documentation workflows, including analysis, reading, updating, searching, and metadata management. Minor gaps exist, such as no explicit tool for deleting documentation files or handling versioning, but agents can likely work around these with existing update and metadata tools for most tasks.
Maintenance
Related MCP Connectors
Train your team's AI on what your team knows, with no fine-tuning.
Convert PDFs, Office docs, websites and audio into AI-ready Markdown, then search and ask your docs.
Connect your team's living knowledge base — docs, data, issues, CRM — to Claude and ChatGPT.
Governed, auditable knowledge your team curates for its AI assistants, self-hostable
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTransforms any documentation website (GitBook, Vercel docs, Next.js sites, etc.) into an AI-accessible knowledge base with intelligent caching and automatic domain detection.18MIT
- AlicenseNot gradedqualityDmaintenanceTransforms any GitHub repository into a documentation hub for AI assistants, enabling access to up-to-date documentation and code to eliminate hallucinations. Supports repository-specific and dynamic endpoints with smart search capabilities.Apache 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceTransforms any website's documentation into an MCP-compatible interactive knowledge base with universal scraping, advanced search, and AI-powered tools. Supports GitBook, Notion, Confluence, and custom documentation platforms with real-time synchronization.2MIT
- FlicenseNot gradedqualityDmaintenanceTurns Confluence documentation into an AI-powered knowledge base, enabling natural language questions about your systems with answers retrieved from your actual documentation through semantic search.-