agent-notes-mcp
Allows AI agents to search, list, read, create, append, replace, move, and batch-update local Markdown notes within configured root directories.
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., "@agent-notes-mcpsearch my notes for 'MCP server setup' and show the newest result"
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.
agent-notes-mcp
agent-notes-mcp is a local stdio MCP server for safely searching and editing personal Markdown notes from MCP clients such as Codex.
It uses ordinary full-text search across filenames, YAML frontmatter, and the Markdown body. No vector DB or embedding model is required.
Main Features
Search, list, and read Markdown notes within the configured roots
Create, append to, replace, and move notes within writable roots
SHA-256-based conflict detection when replacing or moving notes
Safe batch updates of explicitly marked Markdown blocks
Arbitrary batch updates, update timestamp recording, and an activity log
No delete operations and no network listening
See the security model for access boundaries and update guarantees.
Related MCP server: Zero Brain MCP Server
Requirements
Python 3.14 or higher
Installation
To install from a local checkout:
uv tool install .To install from the GitHub main branch:
uv tool install git+https://github.com/mitszo/agent-notes-mcp.gitFor a specific commit or tag, append @<ref> to the end of the URL.
Configuration
Copy the example configuration and replace each path with a directory you manage.
mkdir -p ~/.config/agent-notes-mcp
cp config.example.toml ~/.config/agent-notes-mcp/config.tomlread_roots allows searching and reading. write_roots allows searching, reading, and editing, and must be placed inside a readable root. Start with a narrow writable root, such as inbox or memos.
Registering with Codex
Register the installed command as a stdio MCP server.
[mcp_servers.agent_notes]
command = "agent_notes"If using a source checkout, specify a config file explicitly.
[mcp_servers.agent_notes]
command = "uv"
args = ["run", "agent_notes", "--config", "/absolute/path/to/config.toml"]First 5 Minutes
Open a new thread in Codex and start by asking it to do the following:
agent_notes で設定済みの root を確認し、ノートを検索できるか試してください。Codex can use MCP tools such as list_roots, search_notes, and read_note. When you want to try writing, ask it to create a new test Markdown file inside the narrow write_roots that your configuration allows.
For handing notes across multiple development repositories, see the example Codex project context and the example skill that you can copy and adapt. This workflow is optional; the server does not impose a particular note layout or format.
Safe Updates
Before replacing or moving an existing note, read it and specify the returned sha256 as expected_sha256. If the content has changed in the meantime, the server rejects the update rather than overwriting it.
To limit which parts of a note may be updated, wrap those parts in managed blocks.
<!-- agent-notes:managed next-actions -->
## 次の行動
- 下書きを確認する
<!-- /agent-notes:managed next-actions -->update_managed_blocks updates only managed blocks whose structure could be verified. batch_update_notes validates every target update before it starts writing.
Development
uv sync --all-groups
uv run pytestLicense
About Development
This project uses Codex as a development aid. The maintainer reviews content and makes all decisions before anything is released.
This server cannot be deployed
Maintenance
Related MCP Connectors
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables reading, writing, and searching a local markdown-based memory store using MCP tools, with safety checks and index consistency.MIT
- AlicenseAqualityAmaintenanceMCP server for managing a local, domain-agnostic knowledge base using Markdown notes with frontmatter. Enables AI agents to capture, read, search, link, and maintain notes with atomic writes and privacy controls.13MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that gives AI agents read and write access to a folder of Markdown notes, supporting full-text search, reading, listing, and writing notes. It is deliberately small, with no dependencies beyond the MCP SDK, and includes proper path traversal protection.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to access and manage a personal markdown knowledge base stored in Cloudflare R2. Provides tools for listing, reading, writing, searching (full-text and semantic), and following backlinks between notes.7 npm2MIT