# KRouter [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/398894496-arch/KRouter  
**GitHub Stars:** 80  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/krouter

## Description
Your AI remembers what you decided — and what you changed your mind about. Plain-Markdown memory for Claude Code, Codex, Cursor and any MCP app; every answer cites its page, and it says when it does not know.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "krouter": {
    "command": "uvx",
    "args": ["--from","git+https://github.com/398894496-arch/KRouter","krouter"],
    "env": {
      "KROUTER_STRICT": ""
    }
  }
}
```

**Requires environment variables:** `KROUTER_STRICT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What KRouter does

KRouter gives coding agents access to a local Markdown memory. The memory can contain decisions, changed opinions, task lessons, and other pages that should carry between sessions. When an agent encounters a matching topic, KRouter can return the relevant page along with connected pages, such as linked material, replacements, pages from the same session, or pages commonly cited together.

The Markdown files remain ordinary files that a person can open and edit in Obsidian or another editor. KRouter preserves the distinction between decisions and reference material: declared knowledge-base content does not count as the memory's answer. Corrections replace an older answer rather than leaving competing versions active.

Each result identifies its source page. KRouter also reports when the memory has no match and gives a confidence distinction when the result is only related. This makes the returned context inspectable instead of presenting an approximate match as a settled fact.

## How it works

KRouter uses two recall paths. A prompt hook performs a local lookup for each message, without a model call and without sending the message elsewhere. It can match a page or alias named in the message, or a page whose wording is clearly the best match. For unrelated messages, the hook returns nothing.

At session start, an index of settled topics can be placed in front of the agent. The agent can then fetch the relevant page itself. Claude Code and Codex support both layers; Cursor supports the session-start layer. Applications that only run the MCP server receive its lookup tools rather than automatic hook behavior.

A lookup returns up to five pages: three matching pages and up to two pages connected to those matches. Lessons can be offered in a different task with the same situation. Repeatedly useful lessons can develop into skills, while unused lessons and hook triggers recede after 60 days. The `hot_days` setting controls that period rather than changing the stored rules themselves.

## Setup and configuration

Install with the release bootstrap script, then run the included `krouter doctor` command to check the installation and `krouter search` to make an initial query. The installer detects compatible AI applications and asks no setup questions. Existing memory folders are retained; only missing installation files are added, and uninstalling does not remove the memory.

A temporary demonstration is available through `uvx`, so the example memory can be tried without installing the system or using an API key. KRouter also supports a minimal installation mode and Windows installation. Its memory can be used with Claude Desktop and Obsidian.

Set `KROUTER_STRICT=1` to treat related matches as no match. Strict mode is disabled by default.

## Tools and capabilities

- Search the local Markdown memory from the command line or through MCP lookup tools.
- Return matching pages together with connected pages.
- Show stored content with `krouter view`.
- Explain why a result was selected with `krouter why`.
- Expose source-page citations with each recalled answer.
- Mark results as direct, related, or none.
- Keep a session-start topic index and use prompt hooks where the host supports them.
- Carry lessons between tasks and replace superseded decisions.

## Limitations and notes

Automatic recall depends on the host. MCP-only applications do not receive the prompt hook or session-start behavior unless they provide those hooks separately. KRouter's local lookup does not use a model and does not send the lookup out, but the agent may still read and use the returned page according to its own behavior.

A related page is not necessarily an answer. In the default mode, KRouter labels that situation and supplies a confidence level; strict mode treats it as no memory match. The system reports no match when nothing in the memory fits, but this is not a guarantee that an agent will always refuse to answer.

Published evaluations use small, invented or benchmark datasets and should be read as test results rather than universal accuracy guarantees. The memory is local Markdown, so its usefulness depends on the pages, aliases, links, and lessons stored in the vault.

_Full upstream README: https://allmcps.com/mcp/krouter/readme_

