Skip to main content
Glama

Cairn

Trail markers for all your repos.

A self-hosted ticket tracker for one person (or a small team) working across many repos, side by side with AI coding agents.

License: MIT Self-hosted MCP ready

Why Cairn?

When you jump between ten repos, the hard part is not the code. It is remembering where you left off. Cairn gives every repo keyed tickets, a short "where I left off" note and an activity log, all on one board. Your AI agents use the same board through MCP: they find the right project from the git remote, open a ticket before they change things, log decisions and leave a handoff note when they stop. You see everything they did, in one place.

Related MCP server: Kanban MCP Server

Features

Tickets and board

  • Per-project keyed tickets (SHOP-0012), with type, priority (P1 urgent to P4 can wait, default P3), subtasks and descriptions.

  • One Kanban board across all projects, with drag and drop and filters kept in the URL (/board?p=SHOP,BLOG&prio=1,2&type=bug&q=login).

  • Columns that follow a git release flow, a separate Backlog tab, and automatic archiving of Done tickets after N days.

  • A built-in general project (GENERAL) for work that spans several repos. Tickets can move between projects, and old keys keep working.

  • Optional tags (off by default).

Where you left off

  • A handoff note per project, written at the end of each session.

  • An activity log for every ticket and project: notes, decisions, session summaries, commits and status changes.

  • An overview of all projects, showing what is in progress, what is blocked and what you have not touched for a while.

Built for agents

  • An MCP endpoint (POST /mcp) with 14 tools, so Claude Code, Codex and other MCP clients read and write the same board.

  • Projects are identified by git remote get-url origin, so it works from any clone, worktree or machine.

  • One API token per agent; the token name becomes the author in the log.

Everyday use

  • English and Hungarian UI (auto-detected, switch in Settings > General > Language).

  • Light and dark theme.

  • Keyboard first: C new ticket, Ctrl/Cmd+K jump to any ticket or project, / search on the board, Ctrl+Enter to log.

  • Built-in auth (sessions, CSRF protection, API tokens) with no third-party auth packages.

  • One container, one SQLite file. Easy to back up.

Quick start

You need Docker with the Compose plugin.

git clone https://github.com/WalkeU/cairn.git
cd cairn
docker compose up -d --build
docker compose logs cairn

The log prints a one-time setup code. Open http://localhost:3000, enter the code and create your account (password: at least 12 characters).

By default Cairn listens on 127.0.0.1:3000 only. To change the address or port, copy .env.example to .env and edit it. See Installation for HTTPS, reverse proxies and upgrades.

Connect your AI agent

Create an API token in Settings > API tokens. Cairn shows ready-to-paste setup snippets for each agent right after you create it.

Claude Code

claude mcp add --transport http --scope user cairn "http://localhost:3000/mcp" --header "Authorization: Bearer cairn_..."

Codex (~/.codex/config.toml)

[mcp_servers.cairn]
url = "http://localhost:3000/mcp"
http_headers = { Authorization = "Bearer cairn_..." }

The server sends its workflow rules to every agent as MCP instructions. For best results, also add a short block to your agent's global instructions. See MCP and agents for the tool list, other clients and a recommended snippet.

The board and your git flow

Column

Meaning

Who moves it

Backlog

Some day, not important now (separate tab)

You

Todo

Committed, do this next

You, or the agent when you ask

Working

Being worked on

start_ticket

Blocked

Waiting on something

Anyone

Test

Implemented, waiting for you to check it

complete_ticket

Ready

Verified and merged into dev, not released yet

complete_ticket

Done

Released (or finished, in a repo without releases)

release_tickets after you tag a release

Dropped

Will not be done

Anyone

Repos without release branches simply skip Ready and go straight to Done.

Documentation

Guide

What is inside

Installation

Docker Compose, upgrading, running from source, HTTPS and reverse proxies

Configuration

Environment variables, .env, data directory, ports

MCP and agents

Tokens, client setup, project identification, tools, recommended workflow

Authentication and security

Sessions, CSRF, API tokens, rate limits, admin CLI

Backup and restore

Backing up the SQLite database, restoring, upgrade checklist

REST API

Endpoints, health check, TODO.md importer

Development

Repo layout, architecture, commands, translations

Development

You need Node.js 22.

cd server && npm install && npm run dev   # API on :3000
cd client && npm install && npm run dev   # UI on :5173, proxies /api and /mcp to :3000

Want something to click around in? Fill an empty instance with demo projects and tickets:

CAIRN_URL=http://localhost:3000 node scripts/seed-demo.mjs   # add CAIRN_TOKEN=cairn_... when auth is on

Before opening a pull request, run all checks from the repo root:

npm run check   # server typecheck + server tests + client build

More in Development.

Contributing

Contributions are welcome. Please open an issue first for bigger changes, keep pull requests small and run npm run check before you push. See CONTRIBUTING.md. To report a security issue, see SECURITY.md.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Self-hosted kanban board that dispatches AI agent fleets against tickets. The embedded Streamable HTTP /mcp endpoint exposes 7 tools to list projects, read boards and tickets, and create, move and comment tickets from any MCP client.
      32
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to work a self-hosted kanban board as first-class users, exposing eleven kanban_* tools over a stateless Streamable HTTP endpoint for listing projects, stages, members and custom fields, and for creating, updating, moving and deleting tasks. Authenticates with bearer-token scopes so read-only or write access can be granted per agent, with every mutation audited.
      7
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants such as Claude Desktop and Cursor to inspect backlogs, plan sprints, and manage projects through eight tools for listing, searching, creating, updating, and deleting tickets plus project summaries. Changes made by agents are reflected in the desktop board in real time over a local stdio connection.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents and humans to share one SQLite-backed kanban of tickets, exposing 10 tools to list workspaces, read, create, update and delete tickets, and manage comment threads. All tool output is plain text rather than JSON, so agents can read tickets cheaply, act on them, and reply with self-reported identity and model.
      MIT