mcp-rtfm
The MCP-RTFM server automates and enhances project documentation processes through analysis, creation, and management capabilities.
Documentation Analysis & Enhancement: Analyze existing documentation with content analysis and metadata generation
Documentation Creation: Initialize structure based on project analysis, generating core files like
techStack.mdandcodebaseDetails.mdContent Management: Update documentation with diff-based changes and support for linking related documents using
[[document-name]]syntaxMetadata Management: Generate or manually update metadata (categories, tags) to organize content
Search Functionality: Perform intelligent searches with fuzzy matching, highlighting, and related document suggestions
Custom Templates: Create or customize documentation templates for consistent formatting
Project Insights: Retrieve structure and documentation status information, including relationships between documents
Provides Git repository context for documentation generation and analysis. The server can extract context from Git repositories when analyzing projects and creating documentation.
Specializes in managing and enhancing Markdown documentation files, providing capabilities for content analysis, metadata generation, and document relationships.
Leverages remark for advanced Markdown processing including AST-based content analysis, heading structure detection, and proper Markdown parsing and manipulation.
Uses TypeScript for type-safe documentation management operations. Example workflows are shown in TypeScript syntax.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-rtfm analyze my project at /code/myapp to create searchable docs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-RTFM
"RTFM!" they say, but what if there's no FM to R? 🤔 Enter MCP-RTFM: an MCP server that helps you create the F*ing Manual everyone keeps telling people to read! Using advanced content analysis, metadata generation, and intelligent search capabilities, it transforms your non-existent or unreadable docs into an interconnected knowledge base that actually answers those "basic questions" before they're asked.
Plot twist: Instead of just telling people to RTFM, now you can actually give them an FM worth R-ing! Because the best response to "read the f*ing manual" is having a manual that's actually worth reading. 📚✨
📚 Table of Contents
Related MCP server: GitMCP
🚀 Quick Start
# 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!✨ Features
Documentation Management Tools
analyze_existing_docs- Analyze and enhance existing documentation with content analysis and metadataanalyze_project_with_metadata- Initialize documentation structure with enhanced content analysis and metadata generationanalyze_project- Basic initialization of documentation structureread_doc- Read a documentation file (required before updating)update_doc- Update documentation using diff-based changesget_doc_content- Get current content of a documentation fileget_project_info- Get project structure and documentation statussearch_docs- Search across documentation files with highlighted resultsupdate_metadata- Update documentation metadataget_related_docs- Find related documentation based on metadata and content linkscustomize_template- Create or update documentation templates
Default Documentation Files
The server automatically creates and manages these core documentation files:
techStack.md- Detailed inventory of tools, libraries, and configurationscodebaseDetails.md- Low-level explanations of code structure and logicworkflowDetails.md- Step-by-step workflows for key processesintegrationGuides.md- Instructions for external system connectionserrorHandling.md- Troubleshooting strategies and practiceshandoff_notes.md- Summary of key themes and next steps
Documentation Templates
Built-in templates for different documentation types:
Standard Documentation Template
API Documentation Template
Workflow Documentation Template
Custom templates can be created using the customize_template tool.
📝 Example Workflows
1. Analyzing Existing Documentation
// 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. Enhanced Project Documentation Setup
// 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. Updating Documentation with Content Links
// 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. Managing Documentation Metadata
// 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. Searching Documentation with Context
// 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. Creating Custom Templates
// 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"]
}
}
});🔧 Installation
VSCode (Roo Cline)
Add to settings file at: Add to settings file at:
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": []
}
}
}Claude Desktop
Add to config file at:
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": []
}
}
}🎯 Advanced Features
Content Linking
Use [[document-name]] syntax to create links between documents. The server automatically tracks these relationships and includes them when finding related documentation.
Metadata-Driven Organization
Documents are organized using:
Categories (e.g., "architecture", "api", "workflow")
Tags for flexible grouping
Automatic relationship discovery based on shared metadata
Content link analysis
Enhanced Content Analysis
The server uses advanced libraries for better documentation management:
unified/remark for Markdown processing:
AST-based content analysis
Accurate heading structure detection
Code block and link extraction
Proper Markdown parsing and manipulation
minisearch for powerful search capabilities:
Fast fuzzy searching across all documentation
Field-weighted search (titles given higher priority)
Full content and metadata indexing
Efficient caching with TTL management
Real-time search index updates
Intelligent Metadata Generation
Automatic content analysis for categorization
Smart tag generation based on content patterns
Structured front matter in documents
AST-based title and section detection
Code snippet identification and tagging
Context-aware result presentation
Template System
Built-in templates for common documentation types
Custom template support with metadata defaults
Template inheritance and override capabilities
Placeholder system for consistent formatting
🛠️ Development
# Install dependencies
npm install
# Build the server
npm run build
# Development with auto-rebuild
npm run watch🐛 Debugging
Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
📄 License
MIT © Model Context Protocol
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.-