Outline MCP logo

Outline MCP

Persistent, tree-structured PostgreSQL knowledge base with MCP tools for editing, search, history, snapshots, and review.

Install Outline MCP

Run the project’s own setup commands, in order.

Setup steps from the project

outline-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo install --path crates/outline-mcp
    
  2. 2. Configure
    outline-mcp migrate          # create / update the schema; run once per upgrade
    
  3. 3. Start the server
    outline-mcp                  # stdio
    

Overview

outline-mcp provides AI sessions with a persistent, editable knowledge tree stored in a PostgreSQL database you run yourself. MCP tools cover books, sections, content nodes, properties, search, batch edits, history, snapshots, typed links, verification, and revision review. It runs over stdio or streamable HTTP, with an optional read-only browser interface available through the HTTP mode. Reach for it when an agent needs structured knowledge that persists across sessions and can be shared across devices.

Use cases

  • Maintain a persistent project knowledge tree across agent sessions
  • Search and update structured notes stored in PostgreSQL
  • Review proposed knowledge revisions before approval
  • Share one knowledge base across devices over streamable HTTP
  • Export, import, and restore book snapshots

Key features

  • Hierarchical books, sections, and content nodes
  • Property, text, status, and verification queries
  • Atomic batch updates and moves
  • History, snapshots, imports, and JSON exports
  • Typed links and revision review workflows
  • Stdio and streamable HTTP transports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 88d

How Outline MCP works

What outline-mcp does

outline-mcp stores persistent knowledge as books containing hierarchical sections and content nodes. Each node can have a title, body, type, properties, status, and position in the tree. Nodes marked with inject=true are added to the selected book's session context, while draft and archived content is excluded from automatic injection.

The server supports multiple books and lets an agent select one before working with its table of contents. Numbered TOC locations such as 2-3, UUIDs, and UUID prefixes can identify nodes. A separate lookup can find which book contains a node without selecting a book first.

How it works

Books are stored in a PostgreSQL database that you operate. Install the Rust binary, set OUTLINE_MCP_DATABASE_URL, run the migration command, and start the server over stdio. The database migration must be applied before the server will accept normal requests, and startup checks the database configuration and connection.

For shared use, --mcp-http exposes the same MCP tools through streamable HTTP at /mcp. Writes use one database transaction and a per-book version check, allowing multiple server processes or devices to work against the same database. Non-loopback HTTP binding requires OUTLINE_MCP_HTTP_TOKEN; clients send it as a bearer token.

HTTP mode also serves a read-only browser interface at /ui/. It provides book navigation, TOCs, rendered nodes, properties, links, pending revision diffs, history, and text search. The interface does not write data, run scripts, or load resources from other hosts.

Setup and configuration

Install from the repository with Cargo:

bash
cargo install --path crates/outline-mcp

Configure the database and initialize its schema:

server.ts
export OUTLINE_MCP_DATABASE_URL=postgres://user:pass@host:5432/outline
outline-mcp migrate
outline-mcp

The --database-url option overrides the environment variable for any subcommand. HTTP mode listens on loopback port 8486 by default; --bind changes the address and port. Service templates are available for systemd and launchd deployments, and deployment runbooks cover Fly.io hosting, data migration, and multi-device smoke testing.

Tools and capabilities

  • Create, update, move, remove, and batch-edit nodes, with dry-run support for moves and removals.
  • Browse and filter TOCs by properties, depth, archive state, and result limit.
  • Query nodes by text, properties, status, type, or verification date.
  • Export sections as Markdown checklists and books as JSON; import books with optional fresh IDs.
  • Create, list, restore, and delete full-book snapshots.
  • Inspect node history with before-and-after diffs, and run structural book checks and statistics.
  • Add, remove, and inspect typed links; verify nodes and track verification dates.
  • Propose, inspect, approve, reject, and list pending revisions.
  • Generate routing tables from nodes with a routing property.
  • Update or permanently delete books, with force and dry-run safeguards where applicable.

Limitations and notes

The database is self-hosted: there is no hosted instance or bundled database. Deleting a book removes its nodes, history, and snapshots and cannot be undone. Archived nodes remain readable but are hidden from ordinary TOC and query results, and are not injected into context unless explicitly requested by the relevant operation.

HTTP authentication is required when binding beyond loopback. With no token, the browser view is restricted to localhost-style Host values. TLS is expected to be handled by a reverse proxy. Logs use stderr so stdout remains available for the stdio MCP protocol.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Outline MCP

outline-mcp is an MCP server that connects AI sessions to a self-hosted PostgreSQL knowledge base. Its main tools manage books and tree-structured nodes, browse and query content, update and move items, handle links and revisions, inspect history, and create or restore snapshots across persistent sessions.

Install it with Cargo using `cargo install --path crates/outline-mcp`. Set `OUTLINE_MCP_DATABASE_URL`, run `outline-mcp migrate` against the database, and start `outline-mcp` for stdio mode.

Set `OUTLINE_MCP_DATABASE_URL` to a PostgreSQL connection string, then run `outline-mcp migrate` before starting the server. The `--database-url` option overrides the environment variable for individual commands.

Yes. Start it with `--mcp-http` and point MCP clients to the `/mcp` endpoint. Writes use database transactions with per-book version checks, and non-loopback binding requires `OUTLINE_MCP_HTTP_TOKEN` plus bearer-token authentication.

Yes. Configure Claude Code with the `outline-mcp` executable and provide `OUTLINE_MCP_DATABASE_URL` in the server's environment block. The server communicates with Claude Code over its stdio MCP transport.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOutline MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/outline-mcp?style=directory)](https://allmcps.com/mcp/outline-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/outline-mcp"><img src="https://allmcps.com/api/badge/outline-mcp?style=directory" alt="Outline MCP on AllMCPs" /></a>