Skip to main content
Glama
shrish346

docs-rag-mcp

by shrish346

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

search_docs

query + k — returns ranked chunks with path, score, excerpt

Resource

doc://{path}

Full markdown for a relative path (e.g. doc://rag-patterns.md)

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 Inspector

Test

uv run fastmcp list server.py
uv run fastmcp call server.py search_docs --query "TF-IDF" --k 3

Add 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.

Searching Completed

F
license - not found
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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