docs-rag-mcp
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., "@docs-rag-mcpsearch for documentation about TF-IDF indexing"
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.
docs-rag-mcp
MCP server that searches a local markdown corpus with TF-IDF retrieval and serves full documents as resources.
Architecture: docs/*.md → chunk + TF-IDF index (rag.py) → FastMCP exposes search_docs tool and doc://{path} resource (server.py).
MCP surface
Kind | Name | Description |
Tool |
|
|
Resource |
| Full markdown for a relative path (e.g. |
Related MCP server: Inkdex
Run
uv sync
uv run fastmcp run server.py # stdio (Claude Desktop, Cursor)
uv run fastmcp run server.py -t http -p 8000 # HTTP for MCP InspectorTest
uv run fastmcp list server.py
uv run fastmcp call server.py search_docs --query "TF-IDF" --k 3Add your own notes under docs/ and restart the server (or re-run) to re-index.
Claude Desktop
See docs/claude-desktop-config.md for claude_desktop_config.json snippet. Use an absolute --directory path.

Available Tools
1 toolsearch_docsA
Search the documentation corpus with TF-IDF retrieval.
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Maximum number of chunks to return (default 5). | |
| query | Yes | Natural-language search query. |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description mentions 'TF-IDF retrieval,' which discloses the algorithmic approach, but provides no insight into return behavior, sorting, or side effects. With no annotations, the description carries the burden, yet it lacks detail on what happens when invoking the tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence that conveys the core functionality without unnecessary words. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple 2-parameter tool and the existence of an output schema, the description adequately covers the purpose. The schema handles parameter details, and the description completes the context. A full 5 would require more detail on expected output or limits, which is already present in schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Since the schema covers 100% of parameters with descriptions, the description does not need to add parameter information. It adds no extra semantic value beyond the schema, so baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Search the documentation corpus' with a specific verb and resource, and also specifies the retrieval method (TF-IDF). This clearly distinguishes the tool's purpose even without sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for searching documentation, but does not provide explicit guidance on when to use this tool versus alternatives or any prerequisites. No sibling tools are listed, so it relies on the verb 'Search' to convey its intended use.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.0- First observed
search_docs
TDQS
Only one tool exists, so there is no possibility of confusion between overlapping tools. The purpose of search_docs is singular and clear.
The single tool name 'search_docs' follows a clear verb_noun pattern, which is consistent for the server's scope. There are no other names to compare, so it is perfectly consistent.
A single tool for a docs RAG server is borderline but acceptable, as search is the primary function. However, it feels slightly thin, and additional tools like list_docs or get_doc could enhance usability.
For a documentation search server, search_docs covers the core retrieval need. Minor gaps exist such as no ability to list available document sources or fetch a specific document directly, but these are not critical for basic RAG workflows.
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 Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Read-only MCP server for the OrchestKit docs: full-text search + Markdown fetch. No auth.
Read-only search and Markdown access to liz's public docs, prompts, resources, and an MCP App.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides structured, addressable access to a local markdown vault with heading-anchored fragments, BM25 search, and stable IDs for verifiable retrieval.142MIT
- AlicenseAqualityCmaintenanceEnables semantic search over local markdown documentation by indexing files and ranking results using vector similarity and BM25 fusion.114Apache 2.0
- FlicenseAqualityCmaintenanceEnables AI assistants to search and retrieve content from local Markdown notes using term-frequency scoring.2-
- AlicenseNot gradedqualityAmaintenanceServes local Markdown wikis as a read-only knowledge source with MCP tools for agent context retrieval.6Apache 2.0
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/shrish346/docs-rag-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server