Markdown Rag
FreeNot checkedπ A Retrieval-Augmented Generation (RAG) MCP server for markdown documentation with semantic search capabilities
About
π A Retrieval-Augmented Generation (RAG) MCP server for markdown documentation with semantic search capabilities
README
A Retrieval-Augmented Generation (RAG) MCP server for markdown documentation with semantic search capabilities.
π― Core Capabilities
- Document Indexing: Process markdown files with YAML frontmatter support, automatic chunking, and metadata extraction
- Semantic Search: Find relevant content using natural language queries with configurable similarity thresholds
- Incremental Updates: Change detection and indexing for large document collections
- Real-time Monitoring: Automatic file system monitoring with live index updates
- Advanced Embeddings: HuggingFace sentence-transformers with local model execution
- Vector Storage: High-performance Milvus vector database with Docker Compose setup
- CLI Interface: Beautiful command-line tools with progress tracking and interactive demos
π€ MCP Server Integration
This system is designed as an MCP server, providing a search tool with semantic search functionality accessible via MCP protocol.
ποΈ Architecture
For the full system architecture and components overview, check the Architecture Guide.
π Quick Start
Prerequisites
- Python 3.12+
- Docker and Docker Compose
Installation
Clone and setup:
git clone <repository-url> cd markdown-rag-mcpStart Milvus database:
docker-compose -f docker/docker-compose.yml up -dInstall dependencies using uv
uv syncInstall the package:
pip install -e .
Basic Usage
CLI Interface
# Index documents (with optional monitoring)
markdown-rag-mcp index ./documents --recursive --watch
# Semantic search with confidence scoring
markdown-rag-mcp search "authentication setup" --limit 5
# System health monitoring
markdown-rag-mcp status
For the full overview of the CLI interface, check the CLI Guide.
Demo Scripts
# Experience incremental indexing with performance metrics
python examples/incremental_indexing_demo.py --setup --runs 5
# Complete RAG pipeline demonstration
python examples/milvus_embeddings_demo.py
For the full list of demo scripts, check the Examples Guide.
π§ Configuration
Configure via environment variables or .env file, you can use .env.example for some defaults:
# Vector Database Configuration
MARKDOWN_RAG_MCP_MILVUS_HOST=localhost
MARKDOWN_RAG_MCP_MILVUS_PORT=19530
MARKDOWN_RAG_MCP_COLLECTION_NAME=markdown_docs
# Embedding Model Settings
MARKDOWN_RAG_MCP_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
MARKDOWN_RAG_MCP_EMBEDDING_DEVICE=auto # cpu, cuda, mps, auto
MARKDOWN_RAG_MCP_EMBEDDING_DIMENSIONS=384
# Search and Processing
MARKDOWN_RAG_MCP_SIMILARITY_THRESHOLD=0.7
MARKDOWN_RAG_MCP_CHUNK_SIZE_LIMIT=1000
MARKDOWN_RAG_MCP_CHUNK_OVERLAP=200
MARKDOWN_RAG_MCP_MAX_CONCURRENT_INDEXING=2
# File Monitoring
MARKDOWN_RAG_MCP_WATCH_DEBOUNCE_SECONDS=2
MARKDOWN_RAG_MCP_WATCH_PATTERNS="**/*.md,**/*.markdown"
π Project Structure
markdown-rag-mcp/
βββ src/markdown_rag_mcp/ # Core library implementation
β βββ cli/ # Command-line interface
β βββ config/ # Configuration management
β βββ core/ # RAG engine and interfaces
β βββ embeddings/ # Embedding providers
β βββ indexing/ # Document processing pipeline
β βββ models/ # Data models and schemas
β βββ monitoring/ # File system monitoring
β βββ parsers/ # Markdown and frontmatter parsing
β βββ search/ # Query processing and search
β βββ storage/ # Vector database integration
βββ tests/ # Comprehensive test suite
βββ examples/ # Demo scripts
βββ docker/ # Docker Compose configuration
βββ specs/ # Technical specifications
βββ documents/ # Markdown documents for indexing and searching
π§ͺ Testing
To run the test suite, use the following commands:
# Run complete test suite
uv sync --all-extras
pytest
# Run specific component tests
pytest tests/indexing/ -v
pytest tests/search/ -v
pytest tests/embeddings/ -v
π Documentation
- Architecture Guide: Detailed system architecture and components overview
- CLI Guide: Command-line interface guide
- Examples Guide: Demo scripts
π License
MIT License - see LICENSE file for details.
Built with β€οΈ for developers who need intelligent, markdown-based document search capabilities
Installing Markdown Rag
This server has no published package β it is built from source. Open the repository and follow its README.
βΈ github.com/mohllal/markdown-rag-mcpFAQ
Is Markdown Rag MCP free?
Yes, Markdown Rag MCP is free β one-click install via Unyly at no cost.
Does Markdown Rag need an API key?
No, Markdown Rag runs without API keys or environment variables.
Is Markdown Rag hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Markdown Rag in Claude Desktop, Claude Code or Cursor?
Open Markdown Rag on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install β the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Markdown Rag with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
