mdn
Provides offline semantic search over MDN Web Docs content, combining hybrid vector and BM25 full-text retrieval across Web API, JavaScript, HTML, CSS, SVG, and HTTP documentation.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Offline-first MDN Web Docs RAG-MCP server ready for semantic search with hybrid vector (1024-d) and full‑text (BM25) retrieval.
Example

Related MCP server: linked-docs
Content
The dataset covers the core MDN documentation sections, including:
Web API
JavaScript
HTML
CSS
SVG
HTTP
See dataset repo on HuggigFace for more details.
Usage
1. Download dataset and embedding model
npx -y @deepsweet/mdn@latest downloadBoth dataset (~260 MB) and the embedding model GGUF file (~438 MB) will be downloaded directly from HugginFace and stored in its default cache location (typically ~/.cache/huggingface/), just like the hf download command does.
2. Setup RAG-MCP server
{
"mcpServers": {
"mdn": {
"command": "npx",
"args": [
"-y",
"@deepsweet/mdn@latest",
"server"
],
"env": {}
}
}
}Remove@latest for a full offline experience, but keep in mind that this will cache a fixed version without auto-updating.
The stdio server will spawn llama.cpp under the hood, load the embedding model (~655 MB RAM/VRAM), and query the dataset – all on demand.
Settings
Env variable | Default value | Description |
| HuggingFace cache | Custom dataset directory path |
| HuggingFace cache | Custom model file path |
|
| For how long llama.cpp with embedding model should be kept loaded in memory, in seconds; |
|
| Custom search query description in case your LLM does a poor job asking the MCP tool |
|
| Total search results limit |
| Optional HuggingFace access token, helps with occasional "HTTP 429 Too Many Requests" |
To do
automatically update and upload the dataset artifacts monthly with GitHub Actions
automatically prune old dataset revisions like
hf cache prunefigure out a better query description so that LLM doesn't over-generate keywords
Articles
Парсим MDN и пишем оффлайн RAG-MCP (in Russian)
License
The RAG-MCP server itself and the processing scripts are available under MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Web search, structured extraction, page monitor, link check & CVE scan for AI agents over MCP.
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic search and retrieval over local Markdown/MDX documentation using Node.js-based embeddings. Supports multi-language documentation with offline vector indexing and MCP tool exposure for AI assistants.23 npm4MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to intelligently search and reference documentation using hybrid semantic + keyword search via MCP protocol.-
- FlicenseNot gradedqualityCmaintenanceLocal documentation search server for AI models using hybrid retrieval (phrase, keyword, vector). Provides MCP tools to search and fetch documentation from bundled or custom doc sets without any external API keys.-
- AlicenseAqualityBmaintenanceEnables developers to index and search their own local PDF, DOCX, Markdown, and text documents from an MCP client or terminal, combining semantic similarity with keyword matching for exact technical terms. Everything runs on the user's machine with no API key, Docker, or external database, so private documents stay private and work offline after the initial model download.9MIT