About
Semantic + BM25 Document search MCP server
README
docent
Semantic + BM25 Document search — an experimental MCP server written in Rust that indexes markdown documents, letting agents query why code looks the way it does.
files ──▼── index (in-memory) ──▶ MCP server ◀──── query
(HTTP)
Quick Start
docent init # generate docent.toml config
docent serve # start MCP server on port 7878 (indexes doc_dirs in the background)
Open http://localhost:7878 for the built-in Web UI.
Usage
| Command | Description |
|---|---|
docent init |
Generate a docent.toml config file |
docent serve |
Start the MCP server (streamable HTTP); indexes in the background |
docent list-models |
List supported embedding models |
Flags: --config <path> (default ./docent.toml).
How It Works
- Sources — Reads markdown files from
[index] doc_dirs(default:./). - Section-aware chunking — Splits documents into chunks, preserving heading structure.
- Embedding — Converts chunks to vectors via
fastembed(configurable model). - In-memory index — Builds an in-memory semantic + BM25 index on
servestartup; nothing is persisted to disk. - Auto-refresh — Watches
doc_dirsfor changes (debounced) and incrementally reindexes edited files. Stale results during reindex are flagged viaSearchResult.stale = true. - Semantic + BM25 search — Hybrid scoring with configurable algorithm.
- MCP server — Exposes
search_doctool over streamable HTTP.
Install
TBC
Documentation
Installing Docent
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/cuzfrog/docent-mcpFAQ
Is Docent MCP free?
Yes, Docent MCP is free — one-click install via Unyly at no cost.
Does Docent need an API key?
No, Docent runs without API keys or environment variables.
Is Docent hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Docent in Claude Desktop, Claude Code or Cursor?
Open Docent 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 Docent with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
