RAG Notes Search MCP Server
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., "@RAG Notes Search MCP ServerWhat have I written about machine learning pipelines?"
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.
RAG Notes Search — MCP Server
A semantic search system over personal study notes, exposed as an MCP (Model Context Protocol) tool that Claude Desktop can call mid-conversation.
What it does
Ask Claude Desktop anything about your notes and it automatically:
Decides whether to search your notes based on the question
Calls the
search_notestool with a semantic queryRetrieves the most relevant note content with similarity scores
Synthesizes an answer grounded in your actual notes
Example queries that work:
"What have I written about machine learning pipelines?"
"Search my notes for how vector databases work"
"What do my notes say about GCP Cloud Run?"
Related MCP server: Personal RAG MCP Server
Architecture
Claude Desktop (MCP Client) ↓ stdio MCP Server (mcp_server.py) ↓ search_notes() tool ↓ Chroma Vector DB (local) ↓ fastembed (all-MiniLM-L6-v2, ONNX)
Tech stack
MCP — Anthropic's Model Context Protocol (v1.28.1) for tool exposure
Chroma — local vector database storing note embeddings
fastembed — lightweight ONNX-based embedding model (no PyTorch dependency)
sentence-transformers/all-MiniLM-L6-v2 — embedding model, 384 dimensions
Docker — containerized for reproducibility, built for linux/amd64
GCP — Container Registry hosts the image, Cloud Run deployment planned
Key technical decisions
Why fastembed over sentence-transformers? sentence-transformers pulls in PyTorch (~2GB). fastembed uses ONNX runtime (~200MB), making Docker builds 10x faster and the image significantly smaller.
Why a similarity threshold? Without a threshold, vector search always returns something even when nothing is relevant — this is how RAG systems silently hallucinate. A threshold of 0.25 means the system returns "no relevant notes found" rather than a low-confidence garbage result.
Why absolute paths in the MCP server?
Claude Desktop spawns the MCP server as a subprocess with an unpredictable
working directory. Relative paths like ./chroma_db break silently. Absolute
paths are required for reliable subprocess execution.
Why stderr for all logging? MCP uses stdout as a JSON wire protocol. Any print() to stdout corrupts the MCP message stream. All logging goes to stderr which Claude Desktop reads separately via the log file.
Setup
Prerequisites
Python 3.11
Claude Desktop
conda or venv
Install
conda create -n rag_demo python=3.11
conda activate rag_demo
pip install chromadb==1.5.9 sentence-transformers mcp fastembed numpy==1.26.4Index your notes
Add .txt files to the notes/ folder, then run the indexing notebook:
jupyter notebook demo.ipynbRun all cells — this embeds your notes into Chroma.
Connect to Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"notes-search": {
"command": "/opt/anaconda3/envs/rag_demo/bin/python",
"args": ["/absolute/path/to/rag_demo/mcp_server.py"],
"cwd": "/absolute/path/to/rag_demo"
}
}
}Restart Claude Desktop. Look for the tools icon in the chat input.
Docker
# Build for linux/amd64
docker buildx build --platform linux/amd64 -t rag-demo .
# Run with local chroma_db mounted
docker run --rm \
-v /absolute/path/to/chroma_db:/app/chroma_db \
rag-demoBugs fixed during development
Bug | Cause | Fix |
| Relative | Use absolute path |
|
| Route all logs to |
| sentence-transformers version conflict | Switched to fastembed |
| NumPy 2.0 removed deprecated types | Pinned |
| Chroma version mismatch between dev and Docker | Matched versions exactly |
Planned improvements
SSE/HTTP transport for Cloud Run deployment
Second MCP tool:
search_web()using a free news APIDaily ingestion job via Cloud Scheduler
Confidence score displayed in Claude's response
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
- Flicense-qualityDmaintenanceEnables Claude to perform semantic search across your Obsidian vault using Smart Connections vector database. Provides meaning-based search, related note discovery, and context retrieval for RAG queries instead of basic keyword matching.Last updated11
- Flicense-qualityBmaintenanceEnables storing and searching personal notes, documents, and snippets using semantic search and RAG capabilities across Claude Desktop, VS Code, and Open WebUI.Last updated1
- Alicense-qualityDmaintenanceEnables Claude Desktop to search and query personal document collections (PDF, Word, Markdown, text) using semantic search and conversational AI with full context preservation across exchanges.Last updatedMIT
- Flicense-qualityDmaintenanceEnables semantic search and conversational querying across a personal research library of PDFs, DOCX, and other documents using a vector database. It provides tools for document summarization, finding related papers, and high-accuracy retrieval for AI clients like Claude Desktop.Last updated
Related MCP Connectors
Search your knowledge bases from any AI assistant using hybrid RAG.
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Connect your team's living knowledge base — docs, data, issues, CRM — to Claude and ChatGPT.
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/rohith0224/rag-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server