notes-mcp
Provides read-only search, listing, and reading of Markdown notes stored in an Obsidian vault, including tag filtering and ranked full-text search with matching lines.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ποΈ notes-mcp
Your markdown notes, searchable by any AI assistant.
A tiny, read-only Model Context Protocol server that lets your assistant
search, list and read the notes you already keep: an Obsidian vault, a ~/notes folder, a docs repo.
Features Β· Quick start Β· Tools Β· How it works Β· Safety Β· Development
You: what did I decide about the Postgres backups?
Assistant: calls
search_notesβ Inprojects/homelab.mdyou decided to move the backup job to the NAS, run it nightly at 03:00, and test a restore once a month.
No uploads, no sync service, no database. The server reads the folder you point it at, on your machine, and nothing else.
β¨ Features
π Ranked full-text search | Every word must match. Title and tag hits rank above body hits, and results come with the matching lines. |
π·οΈ Tags that just work | Reads frontmatter |
π Folder-aware | Walks subfolders, skips |
π Read-only and sandboxed | No write tools. |
π Resources too | Every note is also an MCP resource at |
πͺΆ Two dependencies | The official MCP SDK and zod. Starts in milliseconds. |
Related MCP server: mor
π Quick start
git clone https://github.com/shadow-lo/notes-mcp.git
cd notes-mcp
npm install # installs and builds dist/Then register it with your MCP client. Most clients accept a config block like this:
{
"mcpServers": {
"notes": {
"command": "node",
"args": ["/absolute/path/to/notes-mcp/dist/index.js", "/absolute/path/to/your/notes"]
}
}
}Restart the client and ask it about your notes. The notes folder can also be set with the NOTES_DIR
environment variable instead of the second argument.
npx @modelcontextprotocol/inspector node dist/index.js examples/notesThis opens a local web UI where you can call each tool by hand against the sample notes in examples/notes.
π§° Tools
Tool | Arguments | Returns |
|
| Best matches with path, title, tags and up to 3 matching lines |
|
| The full markdown of one note |
|
| Every matching note with title and tags |
All tools are marked readOnlyHint, so clients can run them without asking for confirmation each time.
Example output
search_notes { "query": "postgres backup" }
1 note(s) match "postgres backup":
- projects/homelab.md β Homelab plan [#infra #postgres]
L8: Move the Postgres backup job to the NAS and run it nightly at 03:00.
L9: Check restore once a month, a backup you never restored is not a backup.How titles are picked: frontmatter title: β first # heading β filename.
π§ How it works
flowchart LR
A[MCP client] -- stdio / JSON-RPC --> B[server.ts<br/>tools + resources]
B --> C[notes.ts<br/>walk Β· parse Β· rank]
C -- realpath check --> D[(your notes folder)]src/
βββ index.ts CLI entry point, stdio transport, logs to stderr only
βββ server.ts MCP tools and resources (thin layer)
βββ notes.ts folder walking, frontmatter, search ranking, path sandbox (no MCP code)Ranking is deliberately simple and predictable: +10 per term found in the title, +5 in a tag, +2 in the path, and +1 per occurrence in the body (capped at 20 per term).
π Safety
Read-only. There is no tool that writes, renames or deletes.
Sandboxed paths. Every path goes through
realpathand must stay inside the notes folder, so../secretand symlinks pointing elsewhere are rejected.Bounded output. Notes over 1 MB are skipped, so one giant export can't flood the context window.
Clean protocol channel. Logs go to stderr; stdout carries only MCP messages.
π§ͺ Development
npm test # vitest: unit tests + an in-memory MCP client/server round trip
npm run typecheck # tsc --noEmit
npm run build # compile to dist/CI runs typecheck, tests, build and a real stdio smoke test on Node 20, 22 and 24.
π License
MIT Β© shadow-lo
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Markdown notes in folders, with files, that your AI assistant can read, write and organise.
Markdown notes in folders, with files, that your AI assistant can read, write and organise.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Personal context for every AI: search, read, and write back to your private Markdown library.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA read-only toolkit for searching and analyzing Markdown note directories and Obsidian vaults through AI clients. It enables metadata extraction, full-text search, and natural language querying of note content, tags, and backlinks.4AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to search, read, create, update, and remove personal markdown notes stored locally, providing persistent memory across sessions.104 npm3MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with a local folder of Markdown notes, supporting listing, reading, searching, creating, and appending to notes with strict security boundaries.5MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to read, create, update, delete, and search markdown notes stored locally.-