Keeps a folder of Markdown notes searchable and lets AI tools edit it by your rules
pip install markdown-notes-agent Copy PIP instructions
Search and edit local Markdown notes through MCP 한국어 | English
You need macOS or Linux, Python 3.12 or newer, and uv. Markdown Notes Agent calls models through an authenticated Claude Code or Codex CLI.
uv tool install git+https://github.com/woonyong-choi/markdown-notes-agent markdown-notes-agent setup markdown-notes-agent vault add ~/notes Replace ~/notes with an existing, readable and writable Markdown notes folder. Markdown Notes Agent calls a registered notes folder a vault.
Registration creates .markdown-notes-agentignore and VAULT.md at the root only when they do not exist. It preserves existing files. The default ignore file has no exclusion patterns, so all Markdown notes are eligible for indexing. Markdown Notes Agent does not index VAULT.md itself.
markdown-notes-agent setup finds a model CLI and installs Elasticsearch with the Korean analyzer. It selects Claude Code first, then Codex. Setup stops if neither CLI is available. It does not check CLI authentication or an actual model response.
Run the connection command for your tool. A request to the connected MCP server starts the background service.
claude mcp add --scope user markdown-notes-agent -- markdown-notes-agent serve Connect Codex codex mcp add markdown-notes-agent -- markdown-notes-agent serve First request Ask the connected AI tool to search. Replace the search terms with a topic in your notes.
Find notes about idempotency keys in my registered notes folder. Search does not change notes. Request a change separately after finding the relevant content.
Remove repeated sentences from the note you found. Preserve its sources and folder rules. An accepted change request is queued. The AI tool uses job_status to check the final result and next action. A job that stops because its source changed requires user consent before reconsideration. See skills/markdown-notes-agent/SKILL.md for the tool instructions.
Update the source installation with these commands.
uv tool install --force git+https://github.com/woonyong-choi/markdown-notes-agent markdown-notes-agent setup The Hanger 0.2.0 tag from before the rename is preserved. When moving an existing installation, stop the existing service and move state, search data, request keys and recovery files to the new paths without losing their contents. Preserve folder rules and ignore rules under the new file names, and update explicit relation identifiers and MCP connections before starting. This version does not automatically connect old command or module names.
If you have a few notes and editing them yourself takes less time, an editor is enough.
The diagram shows a change request that uses models. Search ends with a result. The collect tool stores content unchanged in inbox/ without a model.
The files are not one transaction. A conflict or cancellation leaves files that were already changed in place.
Markdown Notes Agent watches the registered folder and updates the search index. It follows folder rules in VAULT.md and ignore patterns in .markdown-notes-agentignore. It does not change notes under write: false or ignored files.
VAULT.md can sit in any folder and applies to that folder and below. For settings between the top --- lines, the nearest file wins. For each note path, Markdown Notes Agent selects written rules from the nearest folder first, up to a total of 32 KiB, then sends the selected rules from the root down to the nearest folder. The file has its own name so it does not mix with other AI tools' rule files (AGENTS.md, CLAUDE.md and so on).
--- write: false --- Notes in this folder are final. Quote them; do not change them. Keyword trees and merging One note is one concept. Broader concepts the user wrote come first: a parent in the front matter (a slug, file name or link), and index notes whose list lines start with a link (that note is the parent of the notes it lists). Where the user wrote nothing, the model reads the note with its 20 nearest notes and proposes a concept name, other names, a definition and broader, related and prerequisite concepts; the program checks and stores them.
The tree is built in the background, one note at a time, while no user request waits. markdown-notes-agent keywords and list_vaults show progress.
Editing the patterns in .markdown-notes-agentignore or deleting the file does not take effect at once; it is recorded as a decision. An edit that only changes comments cannot affect the index and applies at once. While a decision is pending, Markdown Notes Agent refuses every search and change request and asks for the answer first. If a vault's folder is missing or empty (an unplugged drive, say), its decision is withdrawn and asked again when the folder is back. File watching and index updates keep running. Markdown Notes Agent asks because a note taken out of the index may not get the same keywords and links when it is indexed again. For a deleted file, approving recreates the default file and declining restores the previous one.
Connected as an MCP server, Markdown Notes Agent offers these tools. Its messages and questions are in English, and it tells AI tools to translate them into the user's language.
With more than one vault, each request passes vault as an id or a path inside the vault. Usage guidance for AI tools is in skills/markdown-notes-agent/SKILL.md.
Settings, the vault list, applied ignore rules and decisions are stored in ~/.local/share/markdown-notes-agent/state/markdown-notes-agent.db. Setting changes apply when the service restarts (markdown-notes-agent stop).
Version 0.3.0 supports multiple vaults, folder rules, search, keyword trees, and change requests with review and recovery.
Formats and commands can change without notice before 1.0.
uv sync --locked uv build uv run pytest uv run ruff check src tests uv run ruff format --check src tests uv run mypy src Search integration tests use Elasticsearch with Nori at MARKDOWN_NOTES_AGENT_TEST_SEARCH_URL. Managed-server lifecycle tests use an Elasticsearch installation with Nori at MARKDOWN_NOTES_AGENT_TEST_ES_HOME. Tests without the required settings are skipped. Live model tests run only when explicitly enabled.
change-request.diagramplay is the source; the SVG is generated. Set DIAGRAMPLAY_CLI to the CLI path from DiagramPlay ebdc3e9.
node "$DIAGRAMPLAY_CLI" check docs/assets/change-request.diagramplay --strict node "$DIAGRAMPLAY_CLI" render docs/assets/change-request.diagramplay --strict --out docs/assets License MIT
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.




