notes
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.
claude-notes-agent
An MCP server that exposes a folder of markdown notes as 4 tools, plus a guarded Claude Code agent that answers questions from those notes with citations. Built by Abhishek Koti to put the Claude AI concepts and domains into practice: tool design and MCP, Claude Code configuration, agentic architecture, and reliability through evals.

What it shows
Area | Where to look |
Tool design & MCP |
|
Claude Code configuration |
|
Guardrails (hooks, permissions) |
|
Agent loop internals |
|
Reliability (evals) |
|
Related MCP server: pando
Architecture
flowchart LR
U[You] -->|/ask-notes| CC[Claude Code]
CC -->|delegates| SA[notes-librarian subagent]
SA -->|tool call| PRE{PreToolUse hook}
PRE -->|allowed| MCP[notes MCP server]
PRE -->|blocked| SA
MCP --> CORE[notes_core.py]
CORE --> N[(sample_notes)]
MCP -->|result| POST[PostToolUse hook]
POST --> LOG[(logs/tool_calls.jsonl)]
POST --> SAA question goes to Claude Code, which delegates to a subagent that has only the four notes tools. Every write passes a guard hook before it reaches the MCP server, and every tool call is logged.
Quick start (Windows)
Install uv and Claude Code (v2.1.295 or later), and log Claude Code in with a Claude subscription. No API key is needed.
Clone and install:
git clone https://github.com/Abhishek-Koti/claude-notes-agent.git cd claude-notes-agent uv syncRun the tests:
uv run pytest(26 tests)Run
claudein the project folder, approve thenotesMCP server, then type/ask-notes when is the MVP deadline?
Design decisions
4 tools, not more. Fewer, sharper tools make tool selection more reliable. The descriptions chain them explicitly: search first, then read.
Errors tell the model what to do next, for example "Call search_notes or list_recent_notes to get valid paths", so the agent can recover on its own.
Logic separated from transport.
notes_core.pyis plain, fully tested Python;server.pyis a thin MCP wrapper, so the same logic works in any MCP client.Guardrails in code, not prompts. A PreToolUse hook blocks secrets and fails closed (if the hook breaks, saving is blocked rather than allowed). Writes always ask a human, reads are pre-approved, and every call is logged.
Least privilege. The subagent gets only the 4 notes tools; the hand-written agent loop gets only the 2 read-only ones.
Context protection. Result caps, short snippets, note truncation, and a subagent with its own context window.
Runs on a subscription. Claude Code is the agent runtime, so there is no API spend. The hand-written loop is tested with a fake model, so its tests are free and deterministic.
Guardrails in action

The agent was willing to save the note; nothing in the prompt stopped it. The hook did. Prompts are requests, hooks are guarantees.
Evals
8/8 passing (see evals/last_run.json). Each question runs through headless
Claude Code and is scored on two things: the right fact and the right note cited.
One question can't be answered from the notes, and the agent must say so rather than guess.

What I changed after failures:
not-in-notesfailed even though the agent behaved correctly. It said "your notes don't say" instead of an exact phrase. I widened the accepted phrasings rather than forcing exact wording in the prompt, because the behaviour, not the wording, is what matters.dark-modepassed, then failed on a later run because the agent wrote "isn't part" instead of "not part". Instead of adding phrases one by one, I made the scorer normalize contractions, which fixed that whole class of failure.Lesson: agent wording varies from run to run, so I run the full set twice before trusting a result.
Works in any MCP client
The same server answers in Claude Desktop with no code changes:

Limitations and next steps
Keyword search, not semantic search; next step is embeddings-based search.
Local stdio transport only; a remote deployment would need HTTP transport with authentication.
The secret check is pattern-based; it catches common key and password formats, not every secret.
Evals use phrase matching; a model-graded check would handle wording variation more robustly.
License
MIT
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
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceTurns any folder of Markdown files into a searchable, structured knowledge base for Claude Code, enabling persistent memory across sessions via tools like list, read, write, edit, search, and summarize.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to search, read, write, and manage a local markdown vault through 8 tools, turning your notes into an AI-accessible knowledge base.3 npmAGPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables Claude to read, search, and analyze your entire knowledge vault locally via MCP tools like search, drafting, and linting.125 npm7MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other MCP clients to search a local folder of Markdown notes through hybrid keyword and local embedding retrieval, read individual notes, and optionally get answers with citations to the exact note and section.MIT