MCP Docs Server
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 Docs Serversearch for database configuration 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.
MCP Docs Server
A lightweight Model Context Protocol (MCP) server that provides direct access to local documentation files - a simple alternative to complex RAG pipelines for project-specific context.
Overview
This MCP server reads a single markdown file (context.md) and exposes its contents through two simple tools:
get_context_overview(): Lists all section titlessearch_context(query): Searches content across all sections
Perfect for giving LLMs access to project documentation without the overhead of vector databases or embedding models.
Related MCP server: md-mcp
Features
Zero dependencies beyond the MCP Python SDK
Lightning fast - direct file access, no vector search
Simple setup - works with both GUI and CLI MCP clients
Cross-platform - includes shell wrapper for macOS/Linux compatibility
Robust error handling - comprehensive logging and debugging support
Installation
Prerequisites
Python 3.11+
MCP client (Claude Desktop, cline, etc.)
Setup
Clone this repository:
git clone https://github.com/unlock-mcp/mcp-docs-server.git
cd mcp-docs-serverInstall dependencies:
pip install -r requirements.txtCreate your documentation file:
# Create a context.md file in the project root with your documentation
echo "# My Project Docs\n\nThis is my documentation." > context.mdClient Configuration
For Claude Desktop (GUI clients)
Use the shell wrapper for reliable execution:
Make the wrapper executable:
chmod +x run_context_server.shInstall the server:
mcp install ./run_context_server.sh --name "docs-server"For cline and CLI clients
Add to your MCP configuration file:
{
"mcpServers": {
"docs-server": {
"timeout": 60,
"type": "stdio",
"command": "/opt/homebrew/bin/python3.11",
"args": [
"/path/to/mcp-docs-server/mcp_context_server.py"
],
"env": {}
}
}
}Note: Update the Python path to match your system (which python3.11)
Development
Testing
Use the MCP development tools for easy testing:
mcp dev ./run_context_server.shThis launches a web-based inspector for testing your server.
Debugging
The server logs to stderr for debugging. Check your MCP client's logs if you encounter issues.
Common issues:
ENOENT errors: Use the shell wrapper or specify full Python path
Import errors: Ensure
mcp[cli]>=1.2.0is installedFile not found: Verify
context.mdexists in the project root
File Structure
mcp-docs-server/
├── mcp_context_server.py # Main server implementation
├── run_context_server.sh # Shell wrapper for GUI clients
├── requirements.txt # Python dependencies
├── context.md # Your documentation (create this)
└── README.md # This fileUsage
Once configured, you can use these tools in your MCP client:
Get overview: "What sections are available in the docs?"
Search content: "Search for authentication in the docs"
Specific queries: "How do I configure the database?"
Tutorial
For a complete walkthrough of building this server from scratch, including common pitfalls and solutions, see the full tutorial: Ditching RAG: Building a Local MCP Server for Your Docs
Contributing
Contributions welcome! Please feel free to submit issues and pull requests.
License
MIT License - see LICENSE file for details.
Built with ❤️ by the UnlockMCP team.
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Securely search and manage workspace context files for AI agents and teams.
Markdown workspace for AI agents: read, write, organize, and share markdown documents.
Open-source Obsidian for MDX - edit local docs with agent assistance
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to seamlessly access and query local markdown technical documentation files, providing automatic documentation context without explicit prompting.9 npm5ISC
- AlicenseAqualityAmaintenanceExposes local markdown documentation, notes, and knowledge bases to AI tools via the Model Context Protocol without embeddings or uploading.41MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with direct access to local Markdown documentation libraries, enabling them to list, read, and search through docs on demand.MIT
- AlicenseAqualityCmaintenanceProvides LLMs with secure, read-only access to local documentation by scanning directories, extracting content from PDF, DOCX, Markdown, and text files, and performing keyword searches.37 npmMIT