mcp-doc-search
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-doc-search Search docs for onboarding checklist and retrieve the full document"
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-doc-search
A small Model Context Protocol (MCP) server that gives
an LLM grounded search and retrieval over a local folder of documents. The model calls
search_docs to find relevant sources, then get_document to read and cite them, so
answers stay grounded in your files instead of the model's memory.
Built as a focused, forward-deployed pattern: the simplest thing that makes retrieval real and citable, ready to drop into an enterprise workflow and extend with embeddings or evals.
Tools
Tool | What it does |
| Ranks documents in the docs folder against a query and returns top matches with snippets and scores. |
| Returns the full text of a document by id, for citation or deeper reading. |
Related MCP server: directory-indexer
Quick start
npm install
npm run build
DOCS_DIR=./docs npm startThe server speaks MCP over stdio, so it is launched by an MCP client rather than used directly.
Use with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"doc-search": {
"command": "node",
"args": ["/absolute/path/to/mcp-doc-search/dist/index.js"],
"env": { "DOCS_DIR": "/absolute/path/to/your/docs" }
}
}
}Then ask Claude something answerable from your docs, for example: "Search the docs for the KYC retry policy and cite the source."
How it works
On startup the server indexes every
.md/.txtfile inDOCS_DIR.search_docsscores documents with a term-frequency relevance measure and returns ranked snippets.get_documentreturns full text for citation.
Scoring is intentionally simple. The point is the grounded retrieval contract, which is swappable for vector embeddings without changing the tool interface.
Roadmap
Vector embeddings + chunking for semantic search
PDF ingestion with OCR for scanned documents
A small eval set to measure answer groundedness
License
MIT
Available Tools
2 toolsget_documentGet documentA
Return the full text of a document by its id (filename), for citation or deeper reading.
Inputs: id (required).
search_docsSearch documentsA
Search the local document set for a query and return the most relevant documents with snippets. Use this to ground answers in real sources before responding.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes: one for searching documents with snippets, the other for retrieving full text by ID. No ambiguity exists.
Both names follow a consistent verb_noun pattern in snake_case (search_docs, get_document), making them predictable and easy to distinguish.
With only two tools, the server is minimal but adequately scoped for a focused document search and retrieval purpose. It is slightly thin but not inappropriate.
The tool surface covers the essential workflow for a read-only document search: searching and retrieving full documents. No obvious gaps for its stated purpose.
Maintenance
Related MCP Connectors
Read and search folders on your own computer with explicit consent. Files are never uploaded.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Securely search and manage workspace context files for AI agents and teams.
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides intelligent retrieval capabilities for local files by scanning directories, generating vector indexes, and enabling semantic search through RAG (Retrieval Augmented Generation) with incremental indexing support.2-
- AlicenseNot gradedqualityBmaintenanceProvides AI assistants with semantic search and read access to local files and directories, enabling knowledge retrieval from indexed content.36 npm17MIT
- FlicenseNot gradedqualityDmaintenanceEnables retrieval-augmented generation by allowing LLMs to search documents in a local folder using vector similarity, supporting multiple file formats.-
- AlicenseAqualityFmaintenanceProvides 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.35 npmMIT