Skip to content
Agentmart
Submit a tool

Kairn

Local-first knowledge engine for AI agents: memory, graph, and recall.

Connector by primeline-ai · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 13
Write a review

Chalk Labs

Need help deploying Kairn?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Desktop. Read the repository before you give any tool access to your data.

Download the bundle

MCP bundle (.mcpb): open it with Claude Desktop.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Local-first knowledge engine for AI agents: memory, graph, and recall over MCP.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.

Tools
9 read · 7 write · 2 delete · 4 not yet classified
Secrets
None asked for
Install scripts
None found
Runs as
Downloaded binary

Tools by what they do 22

Read from the source code; the running server may list different tools.

Read 9 · Look things up without changing anything.

  • kn_crossref
  • kn_doctor
  • kn_ideas
  • kn_preference
  • kn_projects
  • kn_query
  • kn_recall
  • kn_related
  • kn_status

Write 7 · Create, change, send or run things.

  • kn_add
  • kn_connect
  • kn_idea
  • kn_judge
  • kn_learn
  • kn_project
  • kn_save

Delete 2 · Delete, drop, revoke or wipe things.

  • kn_prune
  • kn_remove

Not yet classified 4 · We could not tell from the name and description.

  • kn_context
  • kn_log
  • kn_memories
  • kn_promote_pending

Network hosts it talks to 3

  • github.com · found in install command, code
  • primeline.cc · found in code
  • raw.githubusercontent.com · found in code

Files it touches

  • ~/.claude/projects
  • Your home directory (~)
  • ~/.kairn

Tools (22)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • kn_add

    Add node to knowledge graph. Auto-links via FTS5.

  • kn_connect

    Create typed, weighted edge between nodes.

  • kn_context

    Keywords to relevant subgraph with progressive disclosure.

  • kn_crossref

    Find similar solutions from other workspaces.

  • kn_doctor

    Read-only Kairn health diagnostics. Returns a structured envelope with per-check verdicts and a roll-up summary. Identical JSON shape to `kairn doctor --json` (envelope parity). Safe to call any time; checks never mutate workspace state.

  • kn_idea

    Create or update idea with graph links.

  • kn_ideas

    List and filter ideas by status/score.

  • kn_judge

    Record a typed relationship judgment between two nodes. Strict-mode wrapper around kn_connect: only the 5 canonical relation verbs (conflicts_with, supersedes, compatible, scoped, related) are accepted. Use after kn_learn returns a non-empty candidates[] list to assert how the new node relates to an existing one. For legacy or system-generated edges, use kn_connect (lax mode).

  • kn_learn

    Store knowledge from conversation. Creates node (high) or experience (medium/low).

  • kn_log

    Log progress or failure entry.

  • kn_memories

    Experience search. Filters on time-decay, reports match-aware relevance.

  • kn_preference

    Capture a stated user preference at utterance time. The dedicated write path for preferences: stores a `preference`-type experience with the longest half-life of any type (durable by default). Call it the moment a preference is expressed - the host model hearing the preference is the extraction step; Kairn's server stays deterministic and never runs an LLM.

  • kn_project

    Create or update project (upsert).

  • kn_projects

    List projects and switch active.

  • kn_promote_pending

    Promote experiences flagged by the auto-promote SQL trigger. The exp_auto_promote trigger sets needs_promotion=1 when an experience's access_count crosses 5 (via the read-path touch_accessed wiring from Phase 8). This tool consumes those flags and turns each flagged experience into a permanent graph node via the existing _promote() path. Idempotent: repeatedly safe to call; no-op when nothing is flagged. Returns stats including the list of newly created node ids.

Show 7 more tools
  • kn_prune

    Remove expired experiences (archive first).

  • kn_query

    Search nodes by text, type, tags, or namespace.

  • kn_recall

    Surface relevant past knowledge for context.

  • kn_related

    Find nodes connected to a starting point.

  • kn_remove

    Soft-delete node or edge. Supports undo.

  • kn_save

    Save experience with configurable decay.

  • kn_status

    Graph stats, health, and system overview.

Signals

Stars
13
Forks
3
Open issues
0
Last commit
Oct 11, 2026 (19 days ago)
Last release
Oct 11, 2026 (19 days ago)

From GitHub (fetched Oct 24, 2026).

Details

Registry name
io.github.primeline-ai/kairn
Version
0.3.1
Auth
No auth
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from primeline-ai

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get Kairn running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying Kairn?

CallGet help
Cite this page

Kairn MCP server. Agent Mart. https://agentmart.dev/connectors/primeline-ai-kairn (last updated 2026-10-24)