# DomDemetz/claude-soul [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/DomDemetz/claude-soul  
**GitHub Stars:** 94  
**npm Downloads (last month):** 121  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/domdemetz-claude-soul

## Description
Self-improving learning engine for Claude Code. Extracts signals from every session (corrections, successes, confusion), runs periodic reflections, and evolves behavioral frameworks through evidence tiers (hypothesis → observed → validated). Frameworks that keep working get promoted, bad ones get retired. 9 MCP tools, automatic hooks, phase-adaptive learning. Single dependency, local-only. npx claude-soul init --starter

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

```json
"mcpServers": {
  "claude-soul": {
    "command": "npx",
    "args": ["-y","claude-soul"]
  }
}
```

## Documentation

## What DomDemetz/claude-soul does

The DomDemetz/claude-soul MCP server adds persistent memory and a learning loop to Claude Code. It stores facts, decisions, lessons, journals, identity files, and behavioral frameworks locally so later sessions can retrieve relevant context. The system also watches for corrections and other interaction signals, then tracks recurring patterns over time.

Its learning model treats behavioral frameworks as evidence-based artifacts. New ideas can remain hypotheses, repeated observations can strengthen them, and consistently useful frameworks can be promoted. Frameworks that stop being useful can be retired. Correction patterns have their own lifecycle, moving from new to active, improving, and internalized.

## How it works

Claude Code loads identity, frameworks, and memory at the beginning of a session through `soul_context`. During normal use, hooks collect signals, journal session activity, index memory, and identify corrections. Reflection can run after enough signals accumulate, or it can be started with `soul_reflect`.

The MCP interface exposes 15 tools across identity, learning, and memory. Identity and learning tools include `soul_context`, `soul_activate`, `soul_framework`, `soul_signal`, `soul_reflect`, `soul_self_evaluate`, `soul_read`, `soul_write`, and `soul_status`. Memory tools include `memory_save`, `memory_search`, `memory_journal`, `memory_recent`, `memory_stats`, and `recall`.

Memory is stored in a local SQLite database. With Ollama and the `nomic-embed-text` model installed, searches can match by meaning; otherwise, keyword search remains available. The system also maintains files such as `SOUL.md`, `SHADOW.md`, `STORY.md`, `CORRECTIONS.md`, `STATE.md`, and `FRAMEWORKS.md` under `~/.soul/files/`.

## Setup and configuration

The DomDemetz/claude-soul MCP server requires Node.js 18 or newer and Claude Code on a Pro or Max plan. Run the following command to initialize it:

```bash
npx claude-soul init --starter
```

Initialization registers the hooks and MCP server locally. Add a short instruction to `CLAUDE.md` telling Claude Code to call `soul_context` at conversation start and use `soul_reflect` during idle time. No API key or cloud account is required.

For semantic memory, install Ollama, pull `nomic-embed-text`, and run initialization. The system detects Ollama automatically. Non-interactive agents can add `--skip-identity` to avoid the setup questions. Existing installations can be upgraded with `npm install -g claude-soul@latest` followed by `claude-soul upgrade`; run `claude-soul index` afterward to import existing journals and soul files.

Configuration is held in `~/.soul/config.json`. Supported settings cover signal collection, reflection thresholds and models, context size, tension tracking, meta-optimization, and write protection.

## Tools and capabilities

- Load and activate relevant identity and behavioral frameworks.
- Save, search, browse, and inspect local memories and journals.
- Record interaction signals and self-evaluations.
- Run quick, deep, or meta reflection cycles.
- Read and write user-editable soul files.
- Inspect correction trends with `claude-soul shadow`.
- Check system state with `claude-soul status`.
- Index existing data into the memory database.

## Limitations and notes

The documented integration is Claude Code; compatibility with other MCP clients is not specified. Semantic search requires the optional Ollama setup, while the basic installation uses keyword search. Reflection and signal collection can be adjusted or disabled through the local configuration file.

_Full upstream README: https://allmcps.com/mcp/domdemetz-claude-soul/readme_

