notesearch-mcp
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., "@notesearch-mcp search my notes for why the printer web page times out"
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.
notesearch-rag
Hybrid search over a folder of markdown notes (for example Claude Code's auto-memory), as a command line tool and as an MCP server for Claude Code, LM Studio and any other MCP client.
It follows the "raw-history RAG" idea from Is Complex Agentic Memory Always Needed? Naive RAG Is Stronger Than We Thought (code: Litmeb/RAW-RAG): keep the original text, retrieve relevant windows, let the reader model do the reasoning. This is an independent, much smaller implementation and shares no code with that repository.
Notes are cut into overlapping raw-text windows (about 1500 characters), each prefixed with the note's name and description. Nothing is summarised.
Retrieval fuses dense vectors (any OpenAI-compatible
/v1/embeddingsserver, default LM Studio withbge-m3) with BM25 keyword search by reciprocal rank fusion. BM25 keeps IPs, hostnames and flags as whole tokens as well as their parts.The index refreshes itself: only windows whose text changed are re-embedded. If the embedding server is down it falls back to keyword-only search and says so.
Runtime dependencies: Python, numpy, requests. No GPU or torch needed.
Use
notesearch --update # build/refresh the index once
notesearch "why does the printer web page time out"
notesearch -n 3 -v --json "dhcp reservation"Related MCP server: Notes RAG MCP Server
MCP server
notesearch-mcp speaks MCP over stdio and provides two read-only tools: search_notes and read_note.
Build the index once with notesearch --update first.
Claude Code:
claude mcp add --scope user notesearch -- notesearch-mcpLM Studio (~/.lmstudio/mcp.json):
{ "mcpServers": { "notesearch": { "command": "notesearch-mcp" } } }Configuration (environment variables)
Variable | Default |
|
|
|
|
|
|
|
|
| empty (optional bearer token) |
|
|
Changing the embedding model rebuilds the index automatically.
How well does it work?
On a private collection of about 440 notes, with 25 self-written paraphrased questions, the right note was in the top 5 for 92% of questions with hybrid search, against 40% for a grep-style search and 68% for BM25 alone. A cross-encoder reranker added nothing at 13 s per query on CPU, so it is not included. The questions were written by the author and are optimistic; treat this as a rough comparison, not a benchmark. Retrieved notes can be stale, so verify before acting on them.
Tests
PYTHONPATH=src python -m unittest discover -s testsLicense
MIT
Available Tools
2 toolsread_noteARead-only
Return the full text of one memory note by file name, e.g. 'opnsense-dhcp-kea.md'.
Inputs: name (required).
search_notesARead-only
Search the user's long-term memory notes (markdown) by meaning and keywords. Returns the best-matching notes with a description and passage. Notes can be stale: verify before acting on them. Use read_note to open a whole note.
Inputs: query (required), n.
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 are complementary and non-overlapping: search_notes locates notes by meaning/keyword, and read_note opens one specific note by filename. Descriptions explicitly state the handoff between them (search first, then read the whole note).
Both names follow the same verb_noun snake_case convention (search_notes, read_note). The pattern is predictable and self-documenting.
Two tools is on the thin side for even a narrow server. It covers the search-and-open flow, but there is no room for supporting operations like listing or browsing notes.
Retrieval is covered end-to-end (find then read), but the memory domain has a notable gap: there is no way to create, update, or list notes, so an agent cannot persist or enumerate memories. It is workable if notes are written by other means, but the surface feels partial.
Maintenance
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Shared Markdown notes for MCP-compatible AI tools.
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to list, search, read, and append to Markdown notes through MCP tool calls, making it easy to interact with a second brain folder.-
- AlicenseNot gradedqualityBmaintenanceEnables semantic search over personal markdown notes by indexing them into a vector database and exposing search, reindex, and status tools via MCP.MIT
- AlicenseNot gradedqualityBmaintenanceProvides hybrid search (BM25 + vector) and staleness reporting for local markdown notes, exposing search and indexing tools to AI assistants via MCP.8 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to search and read a local folder of Markdown documentation through BM25-ranked, heading-aware tools, and to answer questions from it with numbered citations. It grounds assistant responses in the exact documentation sections instead of relying on model memory.MIT