okf-notebooks
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.
okf-notebooks
English · Русский
An MCP server that gives AI agents (Claude Code, Claude Desktop, opencode and others) shared, durable memory in the form of notebooks. A notebook is a plain directory of Markdown files in the OKF format under one git repository. A human reads and verifies what the agents wrote in a built-in web UI.
One ASGI process, Streamable HTTP, no external database: search runs on SQLite FTS5.

The idea
Agents forget everything between sessions, and what they remember lives in a vendor's private store. okf-notebooks puts that memory where you can see and control it:
Plain files. Every note is a Markdown file with YAML frontmatter. Read it in any editor, diff it with git, revert a bad write with
git revert, back it up withgit push.Shared between agents. Claude Code, opencode and an external harness read and write the same notebooks, each under its own token and permissions.
A human decides what is trusted. Everything an agent writes stays
draft. Only a person can mark a noteverified,stableordeprecated, and any later edit by an agent clears the mark, so "verified" always refers to the current text.Safe by construction. Identity and permissions come from the token alone; notebook text reaches the agent as data inside nonce markers, never as instructions; anything that looks like a secret is rejected on write.
Related MCP server: acta
Features
MCP tools for listing, searching, reading, writing, updating and validating notes, with optimistic locking (
etag) for concurrent agents.Full-text search (bm25, Russian and English) over SQLite FTS5, stored in a rebuildable
.index/.Notebooks with a
scope: agents pick a notebook by what it is for, not by name.Types and presets: each notebook has a vocabulary of note types (
Decision,Playbook…) with required fields and an aging period; ship your own presets as YAML. Ready-made presets are included:dev-project(ADRs, specs, tickets, research, bugs),personal-financeandagent-retros.Requests instead of surprises: an agent can ask for a new notebook or type; a human approves or rejects it.
Review UI (opt-in): read notes, change status, mark verified, browse the revision history and diffs, view links and backlinks, render tables and Mermaid diagrams, and discuss a passage in comment threads that agents can answer.
Git as the backup: one commit per write with the actor in the message, optional background push to a private remote.
Per-token actors, rate limits, host and origin checks (DNS-rebinding protection), a read-only container image.
What it is not
Not a vector database, not a hosted service and not a multi-tenant system. It is a small self-hosted server for one person or one team that wants their agents' knowledge to stay in reviewable files.
Screenshots
Notebook | Comments |
|
|

Quick start
With Docker and Compose:
git clone https://github.com/justcrafter/okf-notebooks.git
cd okf-notebooks
mkdir -p data config
cat > config/config.yaml <<'EOF'
root: /data
server:
host: 0.0.0.0
allowed_hosts: ["127.0.0.1:8765", "localhost:8765"]
EOF
# optional: enables the Review UI on the same port
export OKF_NOTEBOOKS_UI_PASSWORD='a-long-random-password'
OKF_NOTEBOOKS_UID=$(id -u) OKF_NOTEBOOKS_GID=$(id -g) docker compose up -d
# a token for your agent (shown once) and the first notebook
docker exec -it okf-notebooks okf-notebooks token create --actor claude-code --label laptop
docker exec -it okf-notebooks okf-notebooks notebook create demo \
--description "Notes on the demo project: decisions, terms, runbooks" \
--scope "Durable facts and decisions about demo; no temporary notes" \
--preset core
# connect Claude Code
claude mcp add --transport http notebooks http://127.0.0.1:8765/mcp \
--header "Authorization: Bearer <token>"The MCP endpoint is http://127.0.0.1:8765/mcp, the Review UI is at http://127.0.0.1:8765/.
Documentation
Everything else is on okf-notebooks.kazakov.dev:
Install: Docker and source installs, Claude Code and Claude Desktop, the MCP tools, the configuration reference and the human CLI commands;
Scenarios: memory for one agent, a project knowledge base, several agents, human review, adopting existing notes, network access and backup;
Documentation: the notebook format, presets, lifecycle, verification, Review UI, git and the glossary.
Never forward the server port on your router: a token over plain HTTP outside a trusted network is not safe. See network access for Tailscale and TLS reverse proxy setups.
The site's source is in site/.
Development
uv sync # installs dev dependencies too
uv run pytest # all tests
uv run ruff check . # linterThe frontend lives in web/ (React, TypeScript, Vite; npm test, npm run build). The image test
(tests/test_docker_image.py) needs Docker. Sources are in src/okf_notebooks/: store (atomic writes, etag, git),
validator, registry, indexer (FTS5), lifecycle, auth, tools (MCP), cli, gitremote.
See CONTRIBUTING.md and SECURITY.md.
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
Publish and share access-controlled Markdown documents from any MCP-enabled AI tool.
Hosted MCP memory for coding agents: persistent across sessions, editable markdown, team sharing.
System-of-record notebook for AI coding agents: pages, datastores, tasks, skills over MCP.
MarkupBase turns AI-generated Markdown and HTML into durable, versioned artifacts that people can review and discuss. Its MCP server lets agents publish new versions, preserve contextual comments, include hosted images, and respond to feedback through secure account-linked identities, creating a clear human review boundary without requiring real-time editing.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to search, read, and contribute to a structured markdown knowledge base with citations, freshness tracking, and a safe write path, providing a shared, auditable company memory.5 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents and humans to collaboratively manage kanban boards and Markdown documentation via MCP tools, with stable item keys, revision-safe editing, and full audit trails.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables humans and AI agents to share canonical, versioned knowledge through MCP, with auditable provenance, review workflows, and reconciliation.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to publish markdown as shareable pages with permanent links, update existing pages in place, and read or manage page content, versions, and collections through MCP tools.MIT

