agent-postit
agent-postit is a local MCP server that provides AI agents with a persistent, file-based memory system for managing markdown notes and topics. All notes and topics are stored as plain Markdown files under ~/.agent-postit/ (configurable). Communication uses MCP over HTTP on loopback (127.0.0.1:8000) with a stdio fallback.
Topic Management
topic.create: Create hierarchical topic directories and their TOPIC.md descriptions; idempotent and supports top-down construction.
topic.read: Retrieve the description of a topic directory.
topic.write: Overwrite the description of an existing topic.
Note (Postit) CRUD
postit.create: Write a new note into a topic directory; fails if the note exists or directory isn't a topic.
postit.read: Retrieve a note's full body, metadata (mtime, size).
postit.rename: Rename a note within its directory.
postit.delete: Remove a note file.
postit.update_body (or its aliases append/overwrite): Atomically append to or overwrite a note's body, with a 1 MiB size cap. Aliases: postit.append and postit.overwrite for clarity.
Partial Reading
postit.read_section: Extract a specific Markdown section and sub-sections by heading text (case-insensitive).
postit.read_lines: Read a 1-based inclusive line range from a note.
Discovery & Search
postit.ls: List directory contents (notes and topics) with metadata like mtime and size, or list headings of a note; supports recursive listing.
postit.search: Case-insensitive regex search across note names and/or bodies, optionally recursive; returns matching lines and line numbers.
postit.recent: List recently modified notes across the store, sorted by mtime (useful for session start).
Introspection
postit.capabilities: Get server name, version, store root, and a list of all registered tools with annotations (read-only, destructive, etc.).
All operations are local, and names are case-folded to lowercase for consistency. Error responses include specific error codes (e.g., not_found, dir_exists, too_large).
Click on "Install 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-postitremember that the project deadline is Friday"
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-postit
agent-postit is a small local server that gives an AI agent a place to scribble notes — a memory, so things it learns in one session are still around in the next.
Think of it like a corkboard with sticky notes. The agent writes a note when it picks up something it wants to recall later (a fact, a decision, a checklist, a bug it's chasing), files it under a topic, and glances at the board at the start of the next session to remember where it left off.
It speaks MCP over HTTP on
127.0.0.1:8000, so any MCP-aware editor or agent (Zed, a CLI harness,
another agent) can point at it. Notes are plain Markdown files on your
disk under ~/.agent-postit/ — nothing is hidden in a database, so you
can read, grep, and edit them by hand too.
There is no auth and no network exposure: the server binds the
loopback interface. Whoever can reach 127.0.0.1 on your machine can
read and write notes; nobody else can. If you ever want remote reach, put
a TLS-terminating reverse proxy with auth in front and leave the server
behind it on loopback.
Build, install, run
You need Python 3.12+ and uv.
git clone https://github.com/gerelef/agent-postit.git && cd agent-postit
uv sync # install deps (incl. dev) into ./.venv
uv run python -m agent_postit # serves MCP at http://127.0.0.1:8000/mcpLiveness probe (no client needed):
curl -s http://127.0.0.1:8000/healthz # → okOverride the data root / host / port via flags or env:
uv run python -m agent_postit --root ./my-notes --port 8011
# or
POSTIT_ROOT=/var/lib/agent-postit POSTIT_PORT=8011 uv run python -m agent_postitContainer (podman or docker)
A prod-ready multi-stage image is published on Docker Hub at
gerelef/agent-postit.
Tags track releases; :latest rolls forward with each one, and tagged
releases (e.g. :v1.0.0) are immutable. Pull:
podman pull docker.io/gerelef/agent-postit:v1.0.0
# or, to float on the rolling tag:
podman pull docker.io/gerelef/agent-postit:latest
# docker is identical (docker.io/ is the default registry):
docker pull gerelef/agent-postit:v1.0.0Run (HTTP transport — bind loopback on the host side, no -i, no -t):
podman run --rm --name agent-postit \
-p 127.0.0.1:8000:8000 \
-v ~/.agent-postit:/data:Z \
docker.io/gerelef/agent-postit:v1.0.0
# docker works the same (drop the :Z suffix):
docker run --rm --name agent-postit \
-p 127.0.0.1:8000:8000 \
-v ~/.agent-postit:/data \
gerelef/agent-postit:v1.0.0The 127.0.0.1: prefix on the publish flag is the loopback guarantee —
do not drop it unless you intend to expose the port to other hosts
(and have a reverse proxy with auth in front).
Building from source (optional)
The repo also ships a multi-stage Dockerfile; Containerfile is a
symlink to it (podman convention). Use this only if you want a local
build or a custom tag — the published image above is the same Dockerfile.
podman build --format docker -t agent-postit:latest .
# docker uses the docker image format by default, so no flag is needed:
docker build -t agent-postit:latest .--format docker makes podman emit the Docker image format so the
HEALTHCHECK instruction in the Dockerfile is honored (OCI format, the
podman default, has no HEALTHCHECK field and silently drops it).
Under systemd --user (rootless quadlet)
A reference rootless quadlet is shipped at
contrib/agent-postit.container.
Quadlet (podman 4.4+) is podman's native systemd integration: drop a
.container file under ~/.config/containers/systemd/, reload systemd,
and the podman generator emits a regular agent-postit.service from it
on boot — no hand-written podman run line in the unit.
The shipped quadlet pulls docker.io/gerelef/agent-postit:v1.0.0 from
Docker Hub by default (edit Image= for a different tag or a local
build). Install and start:
mkdir -p ~/.config/containers/systemd
cp contrib/agent-postit.container ~/.config/containers/systemd/
systemctl --user daemon-reload
systemctl --user enable --now agent-postit.service
journalctl --user -u agent-postit.service -f # follows stdout/uvicorn
systemctl --user status agent-postit.service # verify everything worksTo pin a different tag, change Image= in the installed
agent-postit.container (or the local copy under contrib/) and
systemctl --user daemon-reload && systemctl --user restart agent-postit.service.
Related MCP server: memex-mcp
Tools
The server advertises 15 tools under the agent-postit MCP server
name. Tools surface to clients as mcp:agent-postit:<tool> (e.g.
mcp:agent-postit:postit.recent). All tools take a single object
argument named arg over the wire. Paths are addressed by (dir, name)
— there are no integer IDs. dir defaults to the root /.
Notes are .md files; the filename (minus .md) is the note's name.
Both dir and name are case-folded to lowercase on the way in —
creating a note called Recall lands on disk as recall.md, and
reading/listing/deleting it accepts any case. TOPIC is a reserved name
(case-insensitive: Topic, topic, TOPIC all rejected).
Topic tools
topic.create—dir(required),description(required, may be""). Creates the directory and writesTOPIC.mdwith the description. Idempotent: a repeat call with the exact samedir+descriptionbyte-matching the existingTOPIC.mdbody is a no-op success (safe to retry). Refuses withdir_existsifdiralready exists but the existingTOPIC.mdbody differs (orTOPIC.mdis missing — e.g. a stray foreign directory); refuses withdir_missingif the parent dir is not already a topic (with a hint to create the parent first). Topics are built top-down, one level at a time. This is the only way to make a new topic.topic.read—dir(required). Returns theTOPIC.mdbody for that directory, ornullif missing.topic.write—dir(required),description(required). OverwritesTOPIC.md. Refuses if the directory is missing.
Postit CRUD
postit.create—name(required),body(required, may be""),dir?. Writes<dir>/<name>.mdatomically.dir_missingif the dir is not a topic;already_existsif the file is there.postit.append—name(required),content(required),dir?. Reads the existing body, concatenatescontent(inserting a trailing newline when the existing body is non-empty and lacks one), and writes back atomically behind a per-note lock — safe under concurrent appends.not_foundif the note is missing. 1 MiB cap on the resulting body (too_large).postit.overwrite—name(required),content(required),dir?. Replaces the note's entire body withcontent(atomic write; the previous body is discarded). Usepostit.appendwhen you want to add to the body instead of replacing it.not_foundif missing. 1 MiB cap on the new body (too_large).These were a single
postit.update_bodytool with amodeflag in earlier releases. The flag did not translate cleanly to LLM tool use — agents would drop or mis-pick the mode and silently clobber a note — so it was split into two distinct tools with no shared argument.postit.rename—name(required),new_name(required),dir?. Renames within the same directory.no_opifnew_name == name;already_existsif the target is there. Same-dir only.postit.delete—name(required),dir?. Removes the file. The directory is left in place even if now empty.not_foundif missing.postit.read—name(required),dir?. Returns{name, dir, body, mtime, size}.not_foundif missing. For large bodies preferread_sectionorread_lines.postit.read_section—name(required),heading(required, case-insensitive exact text match),level?(1–6, default2),dir?. Returns the matched heading line plus everything under it until the next heading of level ≤levelor EOF — i.e. the section and all its subheaders, verbatim.nullif no heading matches. Match is exact text, not substring:read_section("auth")matchesAuthbut notAuthorization.postit.read_lines—name(required),start(1-based, required),end(1-based inclusive, required),dir?. Returns{name, dir, start, end, total_lines, lines}— body linesstart..endinclusive.invalid_rangeifstart < 1orend < start.endbeyond EOF is silently clamped; the returnedendreflects the actual last line.
High-level tools
postit.ls—dir?(defaults to root),name?,recursive?(defaultfalse, dir mode only).Dir mode (
nameabsent): a flatls -la-style list of items indir, dirs and postits interleaved alphabetically. Each dir item reports whether it has aTOPIC.mdand a short preview of its description; each postit item reportsmtimeandsize. Withrecursive=true, the whole subtree is walked into one flat list with full relative paths as thename, sort key = full relative path.Note mode (
nameset):{name, dir, total_lines, headings}— the Markdown headings in that file (level, text, 1-based line number), document order, no body content. Useful as a table of contents beforeread_section/read_lines.recursiveignored.TOPIC.mdis never listed. Foreign files (non-.md) are ignored.
postit.search—pattern(Pythonreregex),scope("name" | "body" | "both", default"both"),dir?(defaults to root),recursive?(defaulttrue),limit?(default 50). Walks the subtree, appliesre.searchcase-insensitively (embed(?-i)to make it case-sensitive). Returns one entry per hit with full matching lines (grep-like), line numbers, and a flag for whether the name itself matched. Caps atlimit. SkipsTOPIC.md.postit.recent—limit?(default 10),dir?(defaults to root). Walks the subtree rooted atdir(always recursive — no opt-out), sorts bymtimedescending withpathascending as tiebreaker, returns the toplimitas{path, name, mtime, size}with no body. Defaultdir=rootreturns every postit across the whole tree. Use at session start to reload context — body is deliberately not included.postit.capabilities— no args. Read-only summary of what this server can execute: returns{server_name, server_version, store_root, tool_count, tools[]}where eachtools[]entry is{name, title, read_only, destructive, idempotent, open_world}— the per-toolToolAnnotationsflattened. It is a lighter view thantools/list(no input schemas) and pins a stable shape the client can diff across versions. It does not report per-caller grants: which tools this caller may invoke is governed client-side by the editor's profile config (Zed:tool_permissions+ per-profilecontext_servers.<server>.tools). The server has no caller identity (no auth on any transport) and so cannot honestly echo any caller's grant set; the probe reports the server's own surface only. Safe to call at session start alongsidepostit.recent.
'Hello World' notes for an agent that doesn't know where to start
At session start: call
postit.recentwith no args to see what you noted last, andpostit.capabilitiesto pin the surface you're talking to (server name/version/store_root + the full registered tool list with effect hints). Optional:postit.lsthe root or a project topic to see what topics exist.Want to peek at a note without pulling the whole body?
postit.lswithnameset gives you the table of contents; thenread_sectionfor the part you care about, orread_linesfor an exact range.Lost a note?
postit.searchwith a regex over names and bodies, recursive from root.Filing things:
topic.createfirst (top-down), thenpostit.createinto it. Root/is fine for things that don't belong anywhere yet.
Errors
Errors are returned, not raised, as {code, message} objects. Codes:
dir_exists,dir_missing,already_exists,not_found,no_opreserved_name,invalid_name,invalid_path,invalid_rangetoo_large(body write exceeds 1 MiB)
Extras
Container Notes
The image bakes
POSTIT_HOST=0.0.0.0so podman's published-port proxy can reach the listener inside the container netns. Host exposure is governed by the-p 127.0.0.1:8000:8000publish flag on theruncommand — two distinct layers, do not conflate them.There is no
USERclause in the Dockerfile. Under rootless podman the in-container uid 0 maps to the invoking user's host uid, so bind-mounted~/.agent-postitis readable and writable as your files with nochownor--usernsceremony. Under system podman / docker (where container root is real root), pass--user $(id -u):$(id -g)so files land as your uid.Final image size is ~160 MB (
python:3.12-slim-bookwormbase plus themcpdependency tree).HEALTHCHECKruns every 30 s againsthttp://127.0.0.1:8000/healthz(probed inside the container netns, where the server is reachable on loopback) usingurllibfrom the base image. If you change the listen port, overridePOSTIT_PORTand theEXPOSE/-pmapping together.
Environment Variables
Env precedence (highest first): --root > POSTIT_ROOT > ~/.agent-postit.
Same shape for transport / host / port: --transport > POSTIT_TRANSPORT
http;--host>POSTIT_HOST>127.0.0.1;--port>POSTIT_PORT8000.POSTIT_LOG(default-/stderr) has no CLI flag — seeuv run python -m agent_postit --helpfor the full surface.
A second instance trying to bind the same loopback port exits cleanly
with a "agent-postit already running on ..." message — the binary does a
preflight TCP connect check before uvicorn starts, so there is no
EADDRINUSE traceback and no need for a lock file.
Editor integration
Zed
Zed reads MCP server config from its settings file (open with zed: open settings file, or edit from Settings → AI → MCP Servers). HTTP
servers live under context_servers with a url. The server must
already be running — Zed does not spawn it.
If you run the agent in Zed's ask profile, make sure the postit
write/mutate tools are explicitly enabled for that profile (under
agent.profiles.<name>.context_servers.agent-postit.tools) and that
tool_permissions does not block them. A misconfigured profile can
look identical to a server bug — silent permission denials, no error
on the server side. Thee server itself has no auth and no awareness
of which profile is calling; everything is a client-side permission
question.
{
"context_servers": {
"agent-postit": {
"url": "http://127.0.0.1:8000/mcp",
},
},
}Verify the server is live. In Zed open Settings → AI → MCP
Servers and watch the indicator dot next to agent-postit. Green with
the tooltip "Server is active" means the handshake succeeded and the 15
tools have been registered. Red indicates an error; hover for details
(typically the server process is not running, or the port is wrong). A
quick independent check: curl -s http://127.0.0.1:8000/healthz.
If you bounce the server (rebuild, restart the container, etc.), Zed will hold a stale session id — reload the MCP server from that same MCP Servers pane to re-handshake.
No Authorization header is required by the server. If a client
insists on sending one (some do), a dummy Authorization: Bearer x is
ignored — it is cosmetic, not enforced.
Tool permissions (Zed)
By default Zed prompts before every tool call.
Per-tool entries use the mcp:<server>:<tool> key and override the
global agent.tool_permissions.default. Anything not listed inherits
that default.
For the full reference see the Zed MCP guide and the tool permissions doc.
{
"agent": {
"tool_permissions": {
"tools": {
// agent-postit: auto-allow
"mcp:agent-postit:topic.read": { "default": "allow" },
"mcp:agent-postit:postit.read": { "default": "allow" },
"mcp:agent-postit:postit.read_section": { "default": "allow" },
"mcp:agent-postit:postit.read_lines": { "default": "allow" },
"mcp:agent-postit:postit.ls": { "default": "allow" },
"mcp:agent-postit:postit.search": { "default": "allow" },
"mcp:agent-postit:postit.recent": { "default": "allow" },
"mcp:agent-postit:topic.create": { "default": "allow" },
"mcp:agent-postit:topic.write": { "default": "allow" },
"mcp:agent-postit:postit.create": { "default": "allow" },
"mcp:agent-postit:postit.capabilities": { "default": "allow" },
// agent-postit: confirm first
"mcp:agent-postit:postit.append": { "default": "confirm" },
"mcp:agent-postit:postit.overwrite": { "default": "confirm" },
"mcp:agent-postit:postit.rename": { "default": "confirm" },
"mcp:agent-postit:postit.delete": { "default": "confirm" },
},
},
},
}stdio fallback
--transport stdio (POSTIT_TRANSPORT=stdio) makes the binary speak
JSON-RPC over stdin/stdout instead of binding a port. It is kept for
one-off sessions against a temp root and for environments without a
service manager where the client spawns the server as a child process:
uv run python -m agent_postit --transport stdio --root /tmp/scratch-notesstdio and HTTP are not bridgeable. They are two different code paths
in the same binary: stdio uses the SDK's stdio transport and writes one
JSON-RPC frame per line; HTTP uses the Streamable HTTP transport and a
long-lived server. There is no --transport bridge and no plan to add
one — pick the transport that matches how your client speaks MCP. HTTP
is the default and the one you want for dogfooding.
License
MIT.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityBmaintenanceA local MCP server for managing Markdown notes, enabling create, list, read, search, summarize, and delete operations through natural language.Last updated61
- AlicenseAqualityAmaintenanceA portable memory server for MCP that stores durable memories as markdown files, enabling AI agents to create, search, and organize persistent knowledge.Last updated117MIT
- Alicense-qualityAmaintenanceA local-first MCP server that gives AI assistants long-term memory by storing, searching, and recalling notes as Markdown files on your machine.Last updated28MIT
- AlicenseAqualityBmaintenanceMCP server for persistent, cross-session, local-first memory for AI agents, storing memories as Markdown files with SQLite indexing for hybrid search.Last updated24Apache 2.0
Related MCP Connectors
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Cloud-hosted MCP server for durable AI memory
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gerelef/agent-postit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server