Self-hostable shared brain for you and your AI agents β docs, flows, meetings, decisions, rationale
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Your AI assistant answers from its training data, not your team's. Mnema is a self-hostable knowledge workspace that publishes your docs, decisions, and step-by-step workflows to any MCP-aware AI client (Claude, ChatGPT, Cursor, Windsurf, Cline) over the Model Context Protocol β so your agents read your context, live, with no uploads or copy-paste.
This is the open-core repository (fair-code, Mnema Community License). It is the full core product and runs on its own; the enterprise modules are separate.
Clone to a live MCP endpoint in about 4 minutes β a one-time image build. (A stone-cold first-ever build can take longer; it's I/O-bound on Docker's filesystem, not downloads. Native Linux is as fast or faster.)
Requirements: Docker + Docker Compose. (Working on the code itself, outside
Docker? Node 22 β nvm use picks it up from .nvmrc β and
pnpm 10; see CONTRIBUTING.md.)
Then:
/auth/local (email + password).http://localhost:8080/mcp
(in Claude/Cursor, add it as a custom MCP/connector URL; you'll be sent back here to log in and approve).That's it β the first workspace comes with a welcome doc and an example flow, so your first connection has something real to read.
Optional: set VOYAGE_API_KEY (semantic search) and GEMINI_API_KEY (autocomplete)
in .env β bring your own keys. Both stay disabled until set.
The free layer carries the full product; the gates sit on what organizations and R&D need. Plainly:
| Capability | Core (this repo) | Licensed |
|---|---|---|
| Docs, real-time editor, folders, search | β | β |
| Flows (build + walk step-by-step via MCP) | β | β |
| MCP server (read + propose/commit writes) | β | β |
| Built-in email+password auth, or generic OIDC | β | β |
| Self-host, single-workspace, unlimited docs | β | β |
| Version history + document export | β free with a community license | β |
| Knowledge graph (build, report, traverse) | β | β |
| Meeting intelligence (bot, transcription, summaries) | β | β |
| Org / IAM / SSO, audit logs, multi-workspace | β | β |
The knowledge graph, meeting intelligence, org/IAM+SSO, audit, and multi-workspace mode are commercial add-ons β the core runs perfectly without them, and its CI proves it builds and boots with the enterprise modules entirely absent. Licensing: LICENSE for the core; enterprise inquiries via the website.
Docs, flows, collaboration, and live MCP are free forever, registered or not. Version history and export are also free β we just ask for your email (a free community license, entered in Settings). Your history is recorded from day one; registering reveals it.
main: git fetch --tags && git checkout vX.Y.Z, then
docker compose up -d --build. Release tags are immutable and signed; upgrade
by checking out a newer tag and rebuilding. See RELEASING.md
and CHANGELOG.md.wss://<your-host>/collab (WebSocket upgrade enabled) and set
PUBLIC_COLLAB_URL=wss://<your-host>/collab, then rebuild the web app
(PUBLIC_* vars are baked in at build time). Otherwise the browser falls back to
ws://localhost:1234, which is blocked as mixed content on an HTTPS page β and
every document shows "disconnected." Re-run ./scripts/self-host-init.sh --url https://<your-host>
to regenerate .env for a public host.docker compose exec postgres pg_dump -U mnema mnema > backup.sql and snapshot the
pgdata / redis_data volumes.up (idempotent).docker compose up exits immediately with "set POSTGRES_PASSWORD in .env" (or
REDIS_PASSWORD). There's no .env yet β the compose refuses to boot with
empty credentials. Run ./scripts/self-host-init.sh first (it writes .env
with generated secrets); add --force to regenerate one that already exists.4321 (web), 8080 (api), 1234 (collab). Stop whatever holds the
port, or change the host side of that service's ports: entry in
docker-compose.yml.ws://localhost:1234 β blocked as mixed content on an HTTPS page. Set
PUBLIC_COLLAB_URL=wss://<your-host>/collab, proxy that path with WebSocket
upgrade enabled, and rebuild the web image β see the HTTPS note above.
./scripts/self-host-init.sh --url https://<your-host> --force regenerates
.env with the whole URL block derived for you.PUBLIC_* var in .env but the app ignores it. PUBLIC_* values
are baked into the web image at build time, not read at runtime. Rebuild it:
docker compose up -d --build web.migrate
completes β api healthy β web starts. Watch docker compose ps and
docker compose logs -f migrate api. (non-fatal on re-run) lines from
migrate are normal β the migrations are idempotent and re-runs are safe./auth/local (email + password). Keep both
AUTH_PROVIDER=password and PUBLIC_AUTH_PROVIDER=password in .env β the
PUBLIC_ one is baked at build time, so rebuild the web image after changing it.Open the repo in Claude Code (or any coding agent) and paste:
Set up and run Mnema (this repo) for self-hosting. Confirm Docker is running, then run
./scripts/self-host-init.sh --defaultsanddocker compose up -d --build. Wait for all services healthy, open the web URL, create an account at/auth/local, and report the URLs. Fix any error you hit and continue.
pnpm monorepo β api (Fastify + Drizzle/Postgres), collab (Hocuspocus/Yjs), workers (BullMQ/Redis), web (Astro + React). Node 22, Postgres 16 + pgvector, Redis 7.
The core is licensed under the Mnema Community License (a Sustainable-Use fair-code license): free to use, modify, and self-host for your own internal or personal use; commercial hosting/reselling requires an agreement. See LICENSE, CONTRIBUTING.md, and TRADEMARK.md.
"Mnema" is a trademark of the maintainer β forks may use the code, not the name.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mnema-shared-brain-for-you-and-your-ai-agents)<a href="https://allmcps.com/mcp/mnema-shared-brain-for-you-and-your-ai-agents"><img src="https://allmcps.com/api/badge/mnema-shared-brain-for-you-and-your-ai-agents?style=directory" alt="Mnema β Shared Brain for You and Your AI Agents on AllMCPs" /></a>