Markbase
One markdown folder for your team and its agents.
Markbase is a folder of markdown that syncs. You and your team edit the files
in the folder, in the browser, in the desktop app, or through the agents you
already run, and everyone reads one version. Comments, history and sharing sit
on top of plain .md files, so nothing is locked in: the folder is yours, and
it keeps working without us.
How it works
A vault is a set of documents in the cloud and, on each machine that
mounts it, one folder that mirrors them. A background sync keeps the two in
step, both ways, and merges concurrent edits instead of overwriting them —
git without push and pull.
- People write in the browser or the desktop app: comments anchored to the
text, version history, sharing by link or by name.
- Agents — Claude Code, Codex, Cursor, anything that edits files — work on
the markdown in the folder. The sync daemon holds the only credential; the
agent needs none. For agents that are not on your disk there is an MCP
server with the document tools —
npx @markbase/cli mcp install connects
Claude Desktop, Claude Code, Codex and Cursor, and so does Settings in the
desktop app — plus an HTTP API and a skill
(skills/markbase). Both also give Claude Code, Codex
and Cursor the audit hooks that let a document's history name the agent
that edited a file.
- Teams keep the vault in the repository, beside the code it describes, so
the spec an engineer's agent builds from is the one the PM edited this
morning.
The same build serves the hosted app and every self-hosted instance. An
instance that is not markbase.so is invite-only: the first account created on
it is the admin, and teammates join through a link from Settings.
Connect an agent
Every agent connects to the hosted MCP server at https://markbase.so/mcp and
signs in in the browser. No key goes in its config.
| Agent | How |
|---|
| Claude | Settings, Connectors, Add custom connector, paste the address |
| ChatGPT | Plugins, Add, Add custom MCP server, paste the address, keep OAuth, then Connect |
| Claude Code | claude mcp add --transport http markbase-docs https://markbase.so/mcp |
| Codex | codex mcp add markbase-docs --url https://markbase.so/mcp |
| Cursor, VS Code | the one-click buttons in the dashboard, under API keys |
What is in this repository
apps/web/ The web app and the HTTP API (Next.js). What markbase.so and a
self-hosted instance both run.
apps/app/ The desktop app (Electron): the same documents, plus the sync
that mirrors a vault to a folder.
apps/markbase/ The `markbase` CLI (@markbase/cli): sign in, mount a vault,
run the sync as a background service.
packages/shared/ One package (@markbase/shared) that runs everywhere: types,
the API client, the document engine (CRDT, markdown),
pure logic. No Node.js built-ins, no secrets. Imports
nothing else in packages/.
packages/platform/ What everything is built on, split by where code runs.
May import shared; never a feature.
ui/ React components. Runs where there is a screen.
server/ Runs on the web server only: the database client and
queries, API keys, the caller, the model client.
local/ Runs on the user's machine only (the CLI and the desktop
app's main process): vault/ (watcher, lock, registry, file
sync), runner/ (the ticket worker), flows/ (sign in, mount
a vault, asked through an operator).
agent/ registry/ Self-contained: the agent rail, and the feature manifests.