DocDex
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., "@DocDexwhat's our rollback procedure?"
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.
DocDex - Documentation MCP Server
An MCP (Model Context Protocol) server that turns a directory of markdown documentation (wikis, runbooks, policy docs) into tools an AI assistant can search and cite. Point it at a docs folder, and Claude (or any MCP client) can find, read, and reference specific sections instead of guessing.
Tools exposed
Tool | What it does |
| Ranked search over all sections; returns refs + excerpts |
| Full text of one section by its stable ref |
| Corpus overview: every doc with its section outline |
The server's instructions tell the model to cite the ref of any section it relies on, so retrieval stays auditable instead of just trusting the model.
Related MCP server: Documentation MCP Server
Design decisions
Heading-based chunking. Docs are split at markdown headings, and each chunk carries its full heading path (
Runbook > Rollback procedure). Refs are stable (path#heading-path), so a citation today still resolves tomorrow if the doc hasn't changed.TF-IDF keyword ranking, no embeddings. This is deliberate: zero external services, zero API keys, runs anywhere, and the results are inspectable. You can see exactly why a chunk ranked. Heading matches get a 1.5x boost because headings carry dense signal. The
KnowledgeIndexclass is kept separate from the MCP wiring specifically so the ranker can be swapped for embeddings later without touching the server.Search-then-fetch, not dump-everything.
search_docsreturns short excerpts, and the model callsget_sectiononly for what it needs. Keeps context windows small even on large corpora.
Quick start
pip install mcp
PYTHONPATH=src python -m docdex.server --docs ./sample_docsClaude Desktop config
{
"mcpServers": {
"docdex": {
"command": "python",
"args": ["-m", "docdex.server", "--docs", "/path/to/your/docs"],
"env": { "PYTHONPATH": "/path/to/docdex-mcp/src" }
}
}
}Then ask Claude things like "what's our rollback procedure?" or "how long do we keep debug logs?" and it will search, fetch the section, and cite the ref.
Tests
python tests/test_index.pyCovers relevant-section ranking, heading-boost ordering, ref roundtrips, unknown-ref handling, corpus listing, and empty/stopword-only queries.
Layout
src/docdex/index.py KnowledgeIndex: chunking, TF-IDF search, refs (no MCP dependency)
src/docdex/server.py MCP wiring: 3 tools over the index
sample_docs/ small policy + runbook corpus to try it on
tests/test_index.py index test suite (no pytest dependency)Extension ideas
Pluggable embedding ranker (the index/server split exists for this)
File watcher for live reindexing on doc edits
Confluence / Notion loaders alongside the markdown loader
Per-source access scoping for multi-team corpora
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides direct access to local documentation files through simple search and overview tools, enabling LLMs to query project-specific markdown documentation without requiring vector databases or RAG pipelines.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to navigate and query hierarchical documentation structures, supporting markdown files with YAML metadata and OpenAPI 3.x specifications. It features intelligent full-text search, metadata filtering, and a built-in web interface for both human and AI-driven documentation access.6MIT
- Alicense-qualityDmaintenanceGives AI agents full-text search over any Markdown/MDX documentation folder.14MIT
- Alicense-qualityFmaintenanceProvides AI assistants with direct access to local Markdown documentation libraries, enabling them to list, read, and search through docs on demand.MIT
Related MCP Connectors
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
The document publishing layer for AI tools. Convert markdown to 6 destinations, 62 templates.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/trushantgautam/docdex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server