Skillmem logo

Skillmem

Local SQLite memory for coding agents, with skill recall, evidence-based reinforcement, and automatic decay.

Install Skillmem

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "skillmem": {
      "command": "uvx",
      "args": [
        "skillmem",
        "mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio skillmem -- uvx skillmem mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 9 tools correctly ().

Overview

skillmem gives coding agents a local SQLite layer for storing and retrieving procedures rather than user facts. Its nine MCP tools support hybrid search, memory history, skill learning, strength updates, pinning, and decay-aware recall, while optional local embeddings add cross-language retrieval. Claude Code hooks can automatically recall memories across six lifecycle events, and Claude Code and Codex can share one database. Reach for it when agents need persistent, reviewable knowledge of how tasks were completed without cloud services or API keys.

Use cases

  • Record procedures after non-trivial coding tasks
  • Recall relevant skills before starting a new task
  • Share learned memories between Claude Code and Codex
  • Review provenance and version history before trusting a rule
  • Pin rare skills that should not decay

Key features

  • Local SQLite persistence with FTS5 search
  • Optional multilingual ONNX vector retrieval
  • Evidence-based skill reinforcement and decay
  • Provenance, owner approval, and tamper-evident history
  • Claude Code lifecycle hooks
  • Markdown export with YAML frontmatter

Tools9

What Skillmem lets your agent do. Expand a tool for its parameters.

Verified live~2.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 60d

What it can do

From the 9 tools this server returned when we ran it.

Runs commands · 2Makes changes · 1Makes network requests · 2Read-only tools · 7
Network at startup2 connections
Files written at startup12

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · skillmem (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars13Stargazers on the source repository.
Last commit27d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed9Callable tools this server registers over MCP.

How Skillmem works

What skillmem does

skillmem stores procedural knowledge for coding agents: the trigger for a task, the steps taken, the result, and lessons learned. It is designed for reusable skills rather than conversational facts about a person. Records remain on disk in SQLite, with full-text search available locally and optional semantic retrieval through a multilingual ONNX embedding model.

The system treats memory as something that changes over time. Skills become stronger only through external evidence, lose strength after failures or prolonged inactivity, and can be moved to a backed-up archive when they decay. A rare rule can be pinned to prevent that process. Each record also carries provenance such as owner, agent, imported, or derived, so agent-created material can be distinguished from owner-approved rules.

How it works

Agents communicate with skillmem through MCP. The server provides nine tools covering search, retrieval, listing, creation, editing, learning, recall, reinforcement, and pinning. Memory edits retain earlier versions in a SHA-256 hash chain, and the skillmem verify command can detect later changes to that history.

Search combines SQLite FTS5 BM25 retrieval with optional vector recall. The semantic extra supplies a local multilingual model; the project specifically supports English and Russian stemming for full-text search and cross-language matching through embeddings. Processing runs on the local CPU and does not require an API key or cloud service.

For Claude Code, installation can add hooks for SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, and SessionEnd. These hooks allow recall to happen during agent activity rather than only when the model explicitly calls an MCP tool. Claude Code and Codex can use the same database, while records retain the writing agent from the MCP handshake.

Setup and configuration

On macOS or Linux, install the package with the semantic extra when cross-language or vector retrieval is needed:

Terminal
pip install 'skillmem[semantic]'
skillmem doctor

uv tool install 'skillmem[semantic]' is an alternative. From a checkout, create a virtual environment, install the package in editable mode, then run an initialization command such as:

bash
skillmem init --claude-code
skillmem init --codex
skillmem doctor

The initializer can also configure Cursor, Windsurf, Gemini CLI, and other supported agents through combined flags. It backs up configuration files before changing them and avoids replacing a file that cannot be parsed. Windows installation uses the repository's PowerShell installer. The first doctor run downloads the embedding model when the semantic extra is installed; the download is approximately 220 MB.

Tools and capabilities

  • mem_search searches all memories with hybrid full-text and optional vector retrieval.
  • mem_get returns a memory by slug, including history and wikilinks.
  • mem_list filters memories by kind or project and sorts by recency.
  • mem_write creates records while rejecting silent overwrites and near-duplicates.
  • mem_update preserves the prior version in the hash-chain history and applies ownership restrictions.
  • mem_learn records a skill using trigger, steps, outcome, and lessons.
  • mem_recall ranks relevant skills by strength and refreshes their recency.
  • mem_reinforce records outcomes; self-reported success does not increase strength.
  • mem_pin excludes or restores a skill from decay and archiving, subject to owner permissions.

Limitations and notes

The optional semantic model is local and CPU-based, but it requires the extra installation and an initial model download. Strength is intentionally not raised merely because an agent says a skill helped. A passing test can provide stronger evidence when the relevant test-witness hook observed a successful test run within the preceding ten minutes; other evidence types may remain unchecked claims.

Unapproved or imported records are presented as data rather than instructions, and an agent cannot modify a memory written or approved by the owner. It must create a proposal under another slug instead. Exporting is available through export-all, which writes Markdown with YAML frontmatter and uses a manifest to manage files for that database.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Skillmem

skillmem is an MCP server that connects coding agents to a local SQLite memory database. Its main tools search, retrieve, list, write, update, learn, recall, reinforce, and pin procedural memories, allowing agents to reuse skills, track evidence, preserve history, and let unused knowledge decay without cloud services or API keys.

Install it with `pip install 'skillmem[semantic]'` or `uv tool install 'skillmem[semantic]'`, then run `skillmem doctor`. Use `skillmem init --claude-code` or `skillmem init --codex` to configure those agents; Windows users can run the repository's PowerShell installer.

Yes, skillmem provides an initialization option for Cursor. Run the setup with the Cursor integration flag so it can write the MCP configuration at `~/.cursor/mcp.json`; configuration files are backed up before being modified.

skillmem records provenance and requires owner approval before treating a memory as a rule. Agent self-reports can refresh recency but do not raise strength, while observed test evidence can increase strength; unapproved material is injected as marked data rather than instructions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSkillmem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/skillmem?style=directory)](https://allmcps.com/mcp/skillmem)
HTML Embed
<a href="https://allmcps.com/mcp/skillmem"><img src="https://allmcps.com/api/badge/skillmem?style=directory" alt="Skillmem on AllMCPs" /></a>