Guide

Open source Notion alternatives, checked against their own licences

We read the LICENSE file, compose file and MCP docs of each open source Notion alternative. Here's what is open, what self-hosting takes, and what agents get.

The short answer

  • For a team that works with AI agents, start with Treehouse. Pages, boards and calendars are plain Markdown files in a shared folder, agents get MCP and a REST API with no paid tier, and every agent's changes are named and can be undone in one step. It's AGPL, and you can use the hosted service or run it yourself.
  • Several popular picks aren't open source by their own licence files. Outline is under the Business Source License, Anytype is source-available, Joplin Server is for personal use only, and AppFlowy's open-source server is archived. Most keep your pages in a database, and several charge for agent access when you self-host.
  • Treehouse has no live co-editing and no Notion-style databases. If your team writes in the same page at once or runs on relations and rollups, Docmost, AFFiNE or Outline fits better, so check their licences first.

The open source Notion alternatives, compared

Most lists of open source Notion alternatives were written a year or two ago and repeat each other. We went to each project's own repository, licence file, compose file and docs on 26 November 2026. Licences are quoted as the project states them. Release dates are from GitHub on the same day.

These are the ones a team could run as a shared workspace, with Treehouse, the one we make, first. Skip to how Treehouse works.

ProjectLicence, as statedSelf-hosting needsWhere content livesLive co-editingAgent access when self-hostedLast release
TreehouseAGPL-3.0-onlyNothing if hosted. Self-hosted: API, worker, Postgres, Redis, storage, web appFiles, in a synced folder on your diskNoMCP, REST API and change feed, no licence gatePublic on 23 Nov 2026
AppFlowyApps: AGPL-3.0. Server: closed, commercial licenceDocker Compose, about 14 servicesPostgres and S3 storageYesMCP, with a paid licence only0.15.1, 15 Nov 2026
AFFiNEMIT (Community), plus an Enterprise licenceDocker Compose: app, Postgres, RedisPostgres, as CRDT documentsYesMCP, read-only on stable builds0.27.4, 18 Aug 2026
OutlineBusiness Source License 1.1Postgres, Redis, storage, an SSO providerPostgresYesOfficial MCP and REST API1.13.0, 15 Nov 2026
DocmostAGPL-3.0 core, plus an Enterprise licenceDocker Compose: app, Postgres, RedisPostgresYesMCP and API keys, with a paid licence only0.98.0, 20 Nov 2026
AnytypeAny Source Available License 1.0MongoDB, Redis, S3 storage and six sync servicesEncrypted objects, local-firstYesOfficial MCP, local to the desktop app or CLI0.57.9-alpha, 20 Nov 2026
Wiki.jsAGPL-3.0The app and PostgreSQLPostgres, with an optional Git mirrorYes, new in 3.xBuilt-in MCP and GraphQL API3.6.1, 23 Nov 2026

These four turn up on the same lists, but they're personal tools more than team workspaces:

ProjectLicence, as statedWhere content livesMore than one personAgent access
SiYuanAGPL-3.0JSON .sy filesIts README describes noneBuilt-in MCP (admin role), HTTP API
LogseqAGPL-3.0Markdown files, or SQLite in 2.0Real-time collaboration in alphaMCP in the desktop app, a CLI
JoplinApps: AGPL-3.0. Server: personal use onlySQLite on each deviceServer is non-commercial onlyBuilt-in MCP, off by default
TriliumNextAGPL-3.0SQLiteNo. Single-userBuilt-in MCP, off by default

Three things the usual lists miss

"Open source" is used loosely

Four well-known picks don't meet the usual meaning of the phrase, by their own licence files:

  • Outline is under the Business Source License 1.1. Its LICENSE says the BSL "is not an Open Source license". You may not use it to run a document service for third parties. It becomes Apache 2.0 on 15 November 2030.
  • Anytype is under the Any Source Available License 1.0. Commercial use is allowed only on networks approved by Any Association. Its own README calls it "open code". The sync servers are MIT.
  • Joplin Server is under a Personal Use License: "personal non-commercial purposes only" unless you have written permission. The Joplin apps are AGPL.
  • AppFlowy has AGPL apps, but the open-source server repository is archived. Its README says the production server is now "a closed-source fork of this open-source core combined with proprietary features", under the AppFlowy Self-Hosted Commercial License.

AFFiNE and Docmost are open core. AFFiNE's Community Edition is MIT, with an Enterprise licence on part of the backend. Docmost's core is AGPL, with an Enterprise licence on its ee folders. Both are open source for what the community edition includes, so check which features that is.

None of this makes them bad software. It matters if your reason for leaving Notion is a licence your company can rely on, or if you plan to offer the tool to clients.

Your content lives in a database

AppFlowy, AFFiNE, Outline, Docmost and Wiki.js keep pages in Postgres. TriliumNext, Joplin and the new Logseq use SQLite. SiYuan stores JSON .sy files, and Anytype stores encrypted objects. Markdown is an export, not the thing itself.

The exceptions are small. Logseq's older file-based graphs are Markdown or Org files, and Wiki.js 3 has an optional Git storage module that commits each page as a file.

That's a fine design for an editor. It decides what else can touch your work, though. A script, a grep, a coding agent or a different editor can open a file. They can't open a row in Postgres without going through the app.

Agent access is often paid, local or read-only

Most of these projects shipped an MCP server in 2026. Self-hosters get very different deals:

ProjectMCP when you self-host
TreehouseIncluded: MCP, REST API and change feed. Billing is off unless you add Stripe
AppFlowyBundled, but refuses to run without a One, Team or Enterprise licence
DocmostNeeds a Business or Enterprise licence. API keys are on the paid list too
AFFiNEReads only on stable builds. Write tools are in dev and canary builds. Needs AI on
OutlineOfficial, at <your domain>/mcp, with OAuth or an API key
Wiki.jsBuilt in, with personal access tokens that carry the user's permissions
AnytypeTalks to the desktop app on 127.0.0.1, or to anytype-cli. Not a server endpoint
LogseqRuns in the desktop app
JoplinRuns in the desktop app, on the Web Clipper port. Each tool is off by default
TriliumNextBuilt in from 0.103.0, off by default. Its docs call the AI features experimental
SiYuanBuilt in at /mcp, for the admin role

A local MCP server suits one person with the app open. A team that wants an agent running on a server, on a schedule, needs an endpoint the agent can reach on its own.

Treehouse: plain files your agents can use

Treehouse starts from the other end. A workspace is a folder of plain files. People get it as a synced folder and in a web app. Agents get the same files through an MCP server, a REST API and a change feed. The code has been public under AGPL-3.0-only since 23 November 2026, at github.com/pixelhop/treehouse, and the hosted service runs that same code. You can start on the hosted service with nothing to run, free for one person, or host it yourself. It works the same either way.

What Notion users tend to recognise:

  • Pages and wikis are Markdown files, with wikilinks, backlinks, tags and a front page for each folder.
  • Boards and calendars are folders. A folder page with view: board shows each Markdown file as a card, placed by the status in its front matter. view: calendar places files by date.
  • Review happens in comments on selected text, which agents can read and reply to.
A workspace in the web app: a front page, a project folder, the Tasks folder as a board and the Meetings folder as a calendar.

The board isn't a database view. It's a folder of files, so anything that reads files can read it. Moving a card changes one line of front matter, whether a person drags it or an agent edits it. Boards has the format.

The same Tasks board in a terminal: one Markdown file a card, its status in front matter, and grep listing the cards in Doing.

For agents, the parts that matter are included rather than sold as a tier:

  • Each agent gets its own key. Its changes show in Activity under that key's name, marked as an agent.
  • One step takes an agent's work back. Pick a moment, preview the files, and undo everything that key changed since. Files someone else has edited afterwards are left alone and listed.
  • Hosted or self-hosted, the endpoints are the same. Agents connect to https://api.trytree.house/api/mcp, or to https://<your-api>/api/mcp on your own server. See the MCP server reference and the REST API.
In Activity, an agent key's three changes are expanded, previewed and undone in one step.

One thing to be exact about: "plain files" describes what you and your agents work with. On the server, file contents sit in blob storage, encrypted at rest, and Postgres keeps the metadata, versions and change feed. Whoever runs the server holds the encryption key: Treehouse on the hosted service, you when you self-host. The plain copy is the synced folder on each person's computer, which stays readable with or without Treehouse.

The Notion comparison has the head-to-head, including measured read speeds and how undo differs. For a team knowledge base that agents keep filed, see an AI second brain for teams.

Self-hosting Treehouse

You don't have to. The hosted service has nothing to run, and Grove adds teammates at $12 a member a month. If you need it on your own infrastructure:

A deployment has six parts: the API, a background worker, PostgreSQL, Redis, blob storage and the web app. One Dockerfile in the repository builds the image for the API and the worker. Storage is Cloudflare R2 or a local disk. Other S3-compatible stores may work, but only R2 is tested. The setup the team documents is Cloudflare with Railway.

There's no one-command install yet. No compose file brings up the whole stack, so expect to wire the parts together from the self-hosting docs. With no Stripe keys set, billing is off and a workspace has no plan limits.

Clients connect to your server by its address. The desktop app takes your app's URL and asks you to confirm you trust it. The CLI takes a flag:

terminal
treehouse login ~/Acme --api-base https://api.example.com
The treehouse CLI connects a folder to a Treehouse server running on the same laptop, pulls 56 files, then pushes an edited note back.

Self-hosted Notion alternatives: what you'd run

First, the short version on Notion itself: there's no self-hosted Notion. Notion publishes no app source, its pricing page lists only Notion-hosted plans, and its help pages describe hosting on Amazon Web Services, with a choice of region on Enterprise. A self-hosted Notion alternative is always a different product.

How much you take on varies a lot:

  • Smallest. Docmost and AFFiNE each run from a short Docker Compose file: the app, Postgres and Redis. Wiki.js 3 needs the app and PostgreSQL. SiYuan and TriliumNext are a single container each, for one person.
  • Middle. Outline needs Postgres 14 or newer, Redis, file storage and an external sign-in provider. Its requirements page says it doesn't run on Windows.
  • Largest. AppFlowy's compose file lists about 14 services, including Postgres, Redis, MinIO, a sign-in service, search, AI and a backup job. Anytype's sync stack has MongoDB, Redis, S3 storage, a coordinator, a file node, three sync nodes and a consensus node.

Then check what the free self-hosted edition includes. AppFlowy's is one user seat and up to three guest editors. AFFiNE's pricing page lists up to 10 members a workspace. Outline's Community Edition is described as "limited features, no support", without guests or SAML. Docmost's leaves out SSO, page-level permissions, API keys and its bases, kanban and calendar views.

Treehouse sits in the middle on effort, as above, or you can skip running it and use the hosted service.

Notes on each project

AppFlowy. The most-starred project here, with desktop apps for macOS, Windows and Linux and mobile apps for iOS and Android. Self-hosting is no longer open source, and the free self-hosted tier fits one person. If you saw it recommended as "Notion but self-hosted", that advice is older than the server change.

AFFiNE. Local-first, with real-time collaboration. The simplest serious stack to run. The last stable release was in August 2026, with daily canary builds since. Agents can read over MCP on stable builds but not write.

Outline. A polished team wiki with live co-editing and the most complete agent story of the group: an official MCP server that works on self-hosted installs, plus a REST API. Its pricing page doesn't say whether the free Community Edition includes MCP, so confirm that before you plan around it. Not open source until 2030.

Docmost. A wiki with real-time collaboration, diagrams and an AGPL core. A good fit if you want open-source docs and don't need agents. MCP, API keys and AI are paid, at $6 a seat a month billed yearly with a 10-seat minimum.

Anytype. Offline-first and encrypted, with shared spaces. Check the licence if your use is commercial. Its MCP server is official and MIT, but it connects through the desktop app or CLI on the same machine.

Wiki.js. Version 3.0 went stable on 1 November 2026, after the 2.x line, and reached 3.6.1 within the month. It's AGPL, needs only PostgreSQL, and has a built-in MCP server and an optional Git mirror. It's a wiki, and a very new major version, so test it before you move a team in.

SiYuan, Logseq, Joplin and TriliumNext. All four are good tools for one person's notes. If you'd rather keep Obsidian and only change how the vault syncs, see self-hosted Obsidian sync. TriliumNext is single-user, with multi-user support still an open milestone. Logseq's 2.0 is a beta that moves from files to SQLite, and its README warns that data loss is possible. Joplin's server licence rules out commercial use.

Also on older lists. Focalboard's repository says it is "currently not maintained", and its last release was in June 2024. BookStack is MIT and runs on PHP with MySQL or MariaDB. It has a REST API, and we found no official MCP server in its repository. Plane (AGPL) and Huly (EPL-2.0) are project trackers with docs attached, and both run large stacks.

When Notion is still the better choice

Leaving isn't always right. Stay on Notion if:

  • You run on databases. Relations, rollups, formulas and many views of one table are Notion's strongest feature. Treehouse has none of it, and we didn't test how far the alternatives' own databases go.
  • People write in the same page at once. Notion has live co-editing, and so do AppFlowy, AFFiNE, Outline and Docmost. Treehouse doesn't.
  • You want AI built in. Notion runs its own AI and agents inside the product, on Business and Enterprise. It also hosts an official MCP server at mcp.notion.com on every plan.
  • Nobody wants to run servers, and you don't need open source. Notion is $10 to $12 a seat a month on Plus and $20 to $24 on Business, with nothing to operate. Every self-hosted option above costs someone's time instead. Treehouse's hosted service is the exception if you still want plain files and agent access.
  • Self-hosting isn't a requirement. If your worry is agents and speed rather than where the data sits, read the comparison first.

Notion's export gives you Markdown and CSV, so you can leave later. Its help page says a workspace export can take up to 30 hours and can't be re-uploaded to recreate the workspace.

What Treehouse doesn't do yet

  • No live co-editing. Sync carries changes within seconds, and edits are version-checked. If two people change the same file at once, the later one becomes a conflicted copy to merge by hand. Nothing is overwritten, but it isn't a shared cursor.
  • No databases. Boards and calendars come from front matter. There are no relations, rollups or formulas.
  • Sync runs on Apple silicon Macs only. The desktop app and the CLI don't run on Windows, Linux or Intel Macs today. Windows and Linux are marked as coming soon. Everyone else uses the web app, which is also the answer on a phone, because there's no mobile app.
  • The web app's file tree doesn't update live. Open a file or reload to see what others changed.
  • Self-hosting takes assembly. Six parts, no single install command, and one tested storage provider.
  • No built-in AI. Treehouse doesn't run agents or call models. You bring Claude Code, Cursor or whatever you use, and it works on the files.

If those are fine for your team, the quickest test is the hosted free plan: one person, 1 GB, as many agents as you like. If your work is a wiki that five people edit together all day, pick Docmost, AFFiNE or Outline, and read the licence first.

Questions people ask

What is the best open source Notion alternative?
It depends on what you used Notion for. For a team wiki with live co-editing under an open-source licence, look at Docmost, AFFiNE or Wiki.js. For documents and boards as plain Markdown files that AI agents can work on, look at Treehouse. Check the licence and the self-hosted limits first, because several well-known picks restrict commercial use or charge for features once you host them yourself.
Can you self-host Notion?
No. Notion publishes no app source, and its pricing page lists only Notion-hosted plans. Its help pages describe hosting on Amazon Web Services, with a choice of region on the Enterprise plan. A self-hosted Notion means a different product.
Is AppFlowy still open source?
The apps are. AppFlowy's desktop, mobile and web clients are under the AGPL. The open-source server repository, AppFlowy-Cloud, is archived, and its README says the current self-hosted server is a closed-source fork under a commercial licence. The free self-hosted tier is one user seat and up to three guest editors.
Is Outline open source?
Not by its own licence. Outline uses the Business Source License 1.1, and the LICENSE file says it "is not an Open Source license". You can read the code and self-host it, but you can't offer it to others as a document service. The licence changes to Apache 2.0 on 15 November 2030.
Which self-hosted Notion alternatives work with AI agents?
Most now ship an MCP server, with different limits. Outline's and Wiki.js's work on self-hosted installs. AppFlowy's and Docmost's need a paid licence when self-hosted. AFFiNE's is read-only on stable builds. Anytype's, Logseq's and Joplin's run locally beside the desktop app. Treehouse includes MCP, a REST API and a change feed in the AGPL code, with no licence gate.
Which Notion alternatives store notes as plain Markdown files?
Very few. Of the projects we checked, Logseq's older file-based graphs are Markdown or Org files, and Wiki.js 3 can mirror pages into a Git repository through an optional module. The rest keep content in Postgres, SQLite or their own format, and offer Markdown as an export. A Treehouse workspace is Markdown files in a synced folder on your computer.
Is Treehouse a full replacement for Notion?
No. Treehouse has no databases with relations, rollups or formulas, and no live co-editing. It covers documents, wikis, boards and calendars as folders of Markdown, with attribution and undo for AI agents. If your team runs on Notion databases, stay on Notion or pick an alternative with databases.

Sources

Everything here about other products comes from these pages, as they read on the date below. Products and prices change, so check them before you decide.

Last checked

Try it hosted first, then decide where it runs

The hosted service runs the same open-source code you'd host yourself. Your work stays as files in a folder either way.

Free for one person. Inviting teammates needs Grove, at $12 a member a month, or $10 billed yearly. Self-hosting is free under the AGPL.