Teaches Claude Code to use the mdnest CLI: read, write and search notes, talk in mdnest chats, and publish or read mdnest HTML pages. The guide comes from the installed CLI, so it stays current without reinstalling.
Your team and your AI agents, working from the same notes.
Self-hosted Markdown notes. Your team writes and comments in the browser, and
your coding agents read and update the same notes through the CLI or MCP.
Plain files, on your own server.
Stop pasting the same project context into every agent chat and every
teammate's DM.
Try it on your own machine first, then add your team. Requires Docker and
Compose. AI agents are optional; connect your own.
Install: see the Quick Start
(five commands, nothing to clone or build).
A project brief in a team workspace, with a teammate's comment beside it (team setup).
How it works
A teammate writes a project brief in mdnest.
Your connected agent reads the brief and adds a plan to the note, through the mdnest CLI.
Another teammate reviews the plan and leaves a comment beside it.
Your team and your agent work with the same saved note. Comments need team
setup. Alone, steps 1 and 2 work in the basic install.
What you get
📝 A real editor. Markdown turns into rich text as you type, with tables,
diagrams, math and images. Or switch to plain text.
📄 Plain files. Every note is a .md file in a folder on your server.
Open it in any editor, grep it, or take the folder with you.
🤖 Works with the agent you already use. Agents use the mdnest CLI, or
the optional MCP server, on the same files you do. mdnest includes no AI
model and calls no AI service.
🔐 Access per person and folder(needs team setup). Company sign-in
through OIDC (Google Workspace, Okta, Microsoft Entra, Keycloak, Auth0),
roles, groups, read-only or read-write access.
💬 Comments, presence and chats(needs team setup for comments and
presence). Comment beside the text, see who is in a note, and talk with
teammates and agents in a chat that is itself a note.
🛟 Optional git backup. mdnest commits and pushes a workspace on a
schedule, and you can browse and restore any note's history in the app.
You need Docker with Compose v2, curl
and openssl, and port 3236 free. The
basic setup in the Quick Start is five commands in a
terminal: download one compose file, write two secrets to .env, and run
docker compose up -d. Nothing to clone or build.
Open http://localhost:3236 and sign in as admin
with the password in .env. Your notes are plain .md files in ./notes.
Every optional setting is explained in a comment in
docker-compose.yml.
For multi-user mode, company sign-in, git backup, HTTPS and remote access, see
the setup guide.
Set it up with an AI agent
A coding agent such as Claude Code or Codex can do the setup for you.
Just me, on this machine: use the
tested prompt in the Quick Start. The
agent runs the basic setup, and you create the API token and log in yourself,
so it never sees your password or token.
The prompts below are for larger setups. Each one tells the agent to read the
setup guide first and to ask you for anything it would otherwise have to guess.
My team, with company sign-in
Set up mdnest (https://github.com/mahsanamin/mdnest) on this server for my team.
Read https://mdnest.dev/docs/setup and https://mdnest.dev/docs/sso-setup first.
Use multi-user mode with PostgreSQL and sign-in through our identity provider.
Ask me which provider we use, for the client ID and client secret, for the address
people will open mdnest at, and for the emails of the admins. Do not guess them.
Keep secrets in .env, not in docker-compose.yml. When it runs, show me how to give
a person or a group access to a workspace.
Back up my notes to git
My mdnest server runs on this machine. Add git backup for its notes.
Read the "Git Sync" section of https://mdnest.dev/docs/setup first.
Ask me for the git repository to push to, and use a deploy key made for that
repository only, not my personal SSH key. When it is set up, make a change to a
note and show me the commit that reached the repository.