Enables AI assistants to navigate and search documentation organized in markdown files, supporting hierarchical structures and YAML frontmatter for metadata extraction.
Provides support for parsing and querying documentation written in the MDX format, allowing assistants to access structured content and associated metadata.
Supports the loading and querying of OpenAPI 3.x specifications in YAML format and enables the extraction of document metadata from YAML frontmatter.
Click on "Install 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., "@Documentation MCP Serversearch for the getting started guide and summarize the setup steps"
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.
Documentation MCP Server
Turn your documentation into an intelligent, AI-accessible knowledge base
Give AI assistants like Claude, ChatGPT, and Copilot structured access to your documentation through the Model Context Protocol (MCP). Navigate hierarchical docs, search semantically, generate PDFs, and browse via web interface—all from a single server.
⚡ Quick Start (60 seconds)
That's it! Your docs are now:
✅ Accessible to AI assistants via MCP
✅ Browseable at http://localhost:8123
✅ Searchable with full-text and metadata filters
✅ Ready for PDF generation
🎯 What Can You Do?
For AI Assistants
Once connected, ask your AI:
"Show me the getting started guide"
"List all API endpoints for user management"
"Search for authentication documentation"
"Generate a PDF of all documentation"
For Humans
Browse documentation in your browser at
http://localhost:8123Search with semantic understanding (with
[vector]extra)Generate PDF releases with custom branding
Access documentation via REST API
📦 Installation
From PyPI (Recommended)
Basic install (keyword search only):
With semantic search (CPU-optimized, recommended):
With PDF generation:
All features:
From Source
🔧 Setup for AI Assistants
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
VS Code (create .vscode/mcp.json):
Other MCP Clients: Use the your-docs-mcp command with DOCS_ROOT environment variable.
🛠️ Available MCP Tools
Once connected, AI assistants can use these tools:
Tool | Description |
| Full-text search with relevance scoring and hierarchical context |
| Navigate to specific docs by URI (e.g., |
| Get complete documentation hierarchy |
| Retrieve full document content with metadata |
| Filter documentation by tags (e.g., |
| List all available tags across documentation |
| Generate PDF documentation with custom branding |
📄 Supported Documentation Formats
Markdown with YAML frontmatter:
OpenAPI 3.x Specifications (.yaml, .json):
📊 Key Features
🗂️ Hierarchical Navigation: Unlimited nesting depth, automatic breadcrumbs
🔍 Intelligent Search: Full-text + semantic search (with vector extra)
📝 Markdown & OpenAPI: Parse markdown with frontmatter + OpenAPI specs
🌐 Web Interface: Browser-based documentation access (same tools as AI)
📑 PDF Generation: Create professional PDF releases with branding
🔒 Security: Path validation, query sanitization, audit logging
⚡ Performance: Smart caching with automatic invalidation
🔌 Cross-Platform: Works with Claude Desktop, VS Code, any MCP client
🌐 Web Interface & REST API
Access the Web UI
Open http://localhost:8123 in your browser.
Features:
🔍 Search with relevance scoring and highlighted excerpts
📚 Browse hierarchical table of contents
🏷️ Filter by tags
📖 View formatted documents
📊 Real-time stats
REST API
Endpoints:
Example:
📑 PDF Generation
Generate professional PDF documentation releases:
PDF Features:
📚 Automatic table of contents with page numbers
🎨 Custom branding (title, subtitle, author, owner)
🔒 Confidential markings (watermark, headers/footers)
🔗 Preserves document hierarchy and navigation
📄 Professional LaTeX rendering via Pandoc
Requirements (system packages):
⚙️ Configuration
Environment Variables
Multi-Source Configuration
For complex setups, create .mcp-docs.yaml:
Running Modes
🔒 Security Features
✅ Path Validation: Prevents directory traversal attacks
✅ Hidden Files Exclusion:
.files excluded by default✅ Query Sanitization: Search queries sanitized against injection
✅ Audit Logging: All file access logged for security review
🧪 Development
Setup
Testing
Code Quality
Project Structure
📚 Example: Try It Now
This repo includes sample docs in the docs/ folder:
The sample docs demonstrate:
✅ Hierarchical structure with nested categories
✅ Markdown with YAML frontmatter
✅ OpenAPI specification integration
✅ Best practices for organization
💡 Tips & Best Practices
Document Organization:
Frontmatter:
For Best Results:
Use descriptive titles in frontmatter
Tag documents consistently
Organize by topic in subdirectories
Include README.md in each category
Keep documents focused and modular
🤝 Contributing
Contributions welcome! See Contributing Guide for details.
📄 License
MIT License - see LICENSE for details.
🔗 Links
Documentation: docs/
Issues: https://github.com/esola-thomas/your-docs-mcp/issues
MCP Spec: https://modelcontextprotocol.io
Questions? Open an issue or check the documentation.