claude-rag
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., "@claude-ragfind notes about deploying on AWS"
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.
claude-rag — MCP RAG Server for Markdown Knowledge Bases
MCP server that indexes a folder of .md files into a local SQLite vector store and exposes semantic search as Claude Code tools.
Stack: Python · sentence-transformers (all-MiniLM-L6-v2, ~90MB, CPU-only) · SQLite · MCP stdio
Tools exposed
Tool | Description |
| Semantic search — returns top-K chunks with source file and section |
| Re-indexes files modified since last run (mtime-based) |
| Shows indexed files, chunk counts, last update timestamps |
Related MCP server: flightlog
Setup
1. Clone
# Default layout: repo sits inside the KB folder
# KB files (.md) go in the parent directory
git clone https://github.com/sangelastro/claude-rag ~/.claude/my-kb/ragOr clone anywhere and point to your KB folder via env var (see step 3).
2. Install dependencies
cd ~/.claude/my-kb/rag
pip install -r requirements.txtOn first run the model (all-MiniLM-L6-v2, ~90MB) is downloaded automatically from HuggingFace.
3. Register in Claude Code
Add to ~/.claude.json under mcpServers:
"my-kb": {
"command": "python",
"args": ["/absolute/path/to/rag/server.py"],
"env": {
"KB_RAG_DIR": "/absolute/path/to/your/kb/folder"
}
}KB_RAG_DIR— folder containing your.mdfiles (default:../relative toserver.py)KB_RAG_DB— SQLite database path (default:kb.dbnext toserver.py)
If the repo is cloned inside the KB folder (as in the example above), both env vars can be omitted.
4. Restart Claude Code
The server starts automatically. On first launch it indexes all .md files in KB_RAG_DIR.
File structure
rag/
├── server.py # MCP server
├── requirements.txt
├── .gitignore
├── README.md
├── architecture.html # Technical documentation
└── kb_rag_slides.html # Architecture slide deckkb.db is generated locally and excluded from git.
How it works
Chunking — each
.mdfile is split on##headers; frontmatter is strippedEmbedding — chunks are encoded with
all-MiniLM-L6-v2(384 dimensions)Storage — vectors stored as
float32BLOBs in SQLite (no external vector DB)Search — cosine similarity computed in numpy over all chunks; top-K returned
Invalidation — mtime-based: only modified files are re-indexed on startup
Environment variables
Variable | Default | Description |
|
| Folder with |
|
| SQLite database path |
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-qualityDmaintenanceA local MCP server that indexes and searches your Claude Code conversation history with both keyword and semantic search, fully private and running locally.Last updatedMIT
- AlicenseAqualityDmaintenanceAn MCP server that indexes Claude Code conversation history into SQLite, enabling full-text search across past sessions for context recovery and cross-agent observability.Last updated103MIT
- AlicenseAqualityCmaintenanceA local MCP server that indexes and searches your past Claude sessions using SQLite FTS5. No cloud, runs entirely on your machine.Last updated3MIT
- Flicense-qualityBmaintenanceA local MCP server that enables LLM clients like Claude to perform semantic code search and answer questions about a codebase using tree-sitter parsing and sqlite-vec vector storage.Last updated
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
An MCP server that gives your AI access to the source code and docs of all public github repos
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/sangelastro/claude-rag'
If you have feedback or need assistance with the MCP directory API, please join our Discord server