# Palinode [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/phasespace-labs/palinode  
**GitHub Stars:** 46  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/palinode

## Description
Git-versioned markdown memory for AI agents: save, search, compact, lint, and audit.

## Tools
Capabilities this server exposes over MCP:

- **session_init** — Session-start context digest for the resolved project scope
- **search** — Hybrid BM25 + vector search with category filter; `resolve` attaches bounded evidence and a resolution per hit
- **resolve** — What memory holds *right now* for a question or one record — what stands, what replaced what, conflicts with both sides intact, and what is explicitly unknown
- **save** — Store a typed memory (person, decision, insight, project)
- **list** — Browse memory files by type, filter by core status
- **read** — Read the full content of a memory file
- **ingest** — Fetch a URL and save as research
- **status** — Health check — file counts, index stats, service status
- **entities** — Entity graph — cross-references between memories
- **consolidate** — Preview or run LLM-powered compaction
- **archive** — Retire one memory that's wrong or obsolete — archive it, or supersede it with a named replacement
- **restore** — Bring an archived memory back into default recall — the inverse of `archive
- **unretract** — Withdraw one preference's mention-level retraction from one memory
- **forget_withdraw** — Take a forget request back — restore what it archived, un-strike what it retracted
- **archive_expired** — Archive ephemeral memories whose TTL has expired
- **diff** — What changed in the last N days
- **blame** — Trace a fact back to the commit that recorded it
- **trace** — Compose a fact's full provenance lineage — sources, saved/changed commits, supersession, typed links, recall
- **history** — Git history for a file with diff stats and rename tracking
- **rollback** — Revert a file to a previous commit (safe, creates new commit)
- **push** — Sync memory to a remote git repo
- **trigger** — Prospective recall — auto-inject when a topic comes up
- **lint** — Health scan — orphans, stale files, missing fields
- **review** — Advisory project-memory review that proposes corrective operations without writing them
- **session_end** — Capture summary, decisions, and blockers at end of session
- **prompt** — List, show, or activate versioned LLM prompts
- **dedup_suggest** — Before saving, surface existing files that overlap the draft
- **orphan_repair** — Find semantic matches for broken `[[wikilinks]]
- **doctor** — Fast diagnostic pass — 18+ checks across paths, services, config, index
- **doctor_deep** — Full diagnostic with canary write test (~10–15s)
- **cluster_neighbors** — Find top-K semantically related files NOT already wiki-linked — surface implicit relationships for cross-link proposals
- **topic_coverage** — Given a short topic phrase, return whether any existing wiki page already covers it (binary `covered` / `best_match` / `similarity`)
- **depends** — Dependency tree (or unblocked-items list) from `depends_on` / `blocks` / `parallel_with` frontmatter on ProjectSnapshots

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

```json
"mcpServers": {
  "palinode": {
    "command": "uvx",
    "args": ["palinode"],
    "env": {
      "PALINODE_API_PORT": ""
    }
  }
}
```

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

## Documentation

## What Palinode does

Palinode stores agent memory as Markdown files with YAML frontmatter in a separate Git repository from the project code. Typed records can represent people, decisions, insights, and projects. The files remain human-readable and editable with normal tools such as VS Code, vim, or Obsidian.

Its MCP tools cover the memory lifecycle: initialize and close sessions, save and search records, inspect current resolutions, browse and read files, ingest research from URLs, and check service health. Correction tools can archive obsolete memories, name replacements, restore archived records, or undo selected withdrawal operations.

## How it works

A file watcher builds a local SQLite index from the Markdown store. Keyword search uses FTS5 and BM25, while vector search provides semantic matching; the results are combined with Reciprocal Rank Fusion. Category filters and bounded evidence can narrow or explain search results. Embeddings may use a local BGE-M3 endpoint or a configured remote provider.

Git provides the change record. Consolidation asks an LLM for structured compaction operations, validates those operations, applies them, and commits the result. The resulting history supports diff, blame, history, trace, and safe rollback operations. `consolidate` can also preview proposed changes before applying them.

Palinode exposes the same backend through MCP, a REST API, a CLI, and an OpenClaw plugin. The MCP client itself is an HTTP client without its own database or embedding service; it points to the Palinode API. The default inspector is available on loopback and presents read-only views of saved memories, source files, commits, and replacement relationships.

## Setup and configuration

Palinode runs as a local service and can accept MCP connections through streamable HTTP or stdio. For streamable HTTP, the documented configuration uses an `http` MCP entry pointed at the `/mcp/` endpoint, including its trailing slash. The default API address is port 6340, while the MCP HTTP example uses port 6341.

Client-specific setup is documented for Claude Code, Claude Desktop, Cursor, VS Code with Continue or Cline, JetBrains with Claude, Codex CLI, Windsurf, and Zed. Claude Code and Codex can optionally use initialization hooks for automatic capture and recall. Without those hooks, agents save and search memory by calling the MCP tools or following project instructions added by `palinode init`.

The local inspector follows `PALINODE_API_PORT`. It listens on loopback; remote access can use an SSH tunnel. When bearer-token protection is enabled, browser requests must already include the token because the inspector has no sign-in form.

## Tools and capabilities

- `session_init` and `session_end` establish session context and capture summaries, decisions, or blockers.
- `search`, `resolve`, `trigger`, and `entities` support keyword, vector, question-oriented, prospective, and relationship-based recall.
- `save`, `list`, `read`, and `ingest` create and inspect typed memories, including URL-based research.
- `archive`, `restore`, `unretract`, `forget_withdraw`, and `archive_expired` manage obsolete, withdrawn, or time-limited records.
- `consolidate` and `review` support previewable compaction and advisory project-memory review.
- `diff`, `blame`, `trace`, `history`, and `rollback` expose Git-backed change and provenance operations.
- `lint`, `doctor`, `doctor_deep`, `dedup_suggest`, and `orphan_repair` check memory health and identify overlapping or broken references.
- `push`, `status`, and `prompt` provide repository synchronization, service statistics, and versioned prompt management.

## Limitations and notes

Archiving removes a memory from default recall but does not erase its file or Git history. Permanent deletion requires a separate manual procedure. The inspector is read-only, so edits and corrections must be performed through the connected agent, CLI, or other supported interfaces. Palinode uses local files and a local SQLite index rather than Postgres, Redis, or a cloud service.

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

