Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Memsmith

FreeMaintained

Persistent, local-first memory for Claude Code, with optional shared team memory.

GitHubEmbed

About

Persistent, local-first memory for Claude Code, with optional shared team memory.

README

MemSmith

Persistent, shared memory for AI coding agents. Built for Claude Code.

License Node

What it does • Install • Quick start • Capabilities • Runtimes • Troubleshooting • License

MemSmith gives your AI coding agent memory that survives between sessions. It records what the agent does, turns that activity into short typed observations (decisions, bug fixes, discoveries, and changes), and lets the agent search them in later sessions. In team mode, a whole team shares one searchable memory.

What MemSmith does

  1. Capture. Claude Code hooks send prompts, tool use, file edits, and session summaries to a MemSmith server. MemSmith redacts known secrets before it stores anything.
  2. Generate. A provider that you choose (Claude, Gemini, OpenRouter, or Ollama) turns the activity into observations. If a hosted provider fails, MemSmith can run the job on a local Ollama model.
  3. Store. Observations go into Postgres with pgvector. A local embedder produces the vectors, so semantic search needs no API key.
  4. Recall. Claude searches memory with MCP tools before it searches the code or the web. You can also search from a terminal or the dashboard.

Install

Requires Node.js 20.12 or later. MemSmith installs Bun and uv if they're missing. You don't need Docker.

npx memsmith install

Or install from the plugin marketplace inside Claude Code:

/plugin marketplace add shshalom/memsmith
/plugin install memsmith@shshalom

The installer asks which generation provider to use. The default, Claude Haiku 5.5, needs an Anthropic API key. To use Ollama only, choose it at the prompt. For all options, see Installation.

To update, run npx memsmith@latest update.

Quick start

  1. Restart Claude Code, and work as usual. MemSmith captures your sessions in the background. Context from earlier sessions appears from your second session in a project.

  2. Ask Claude about past work, such as "why did we choose this approach?". Claude searches memory with observation_search and observation_get.

  3. Search from a terminal, in a project folder:

    memsmith search "start at login"
    memsmith get <id>
    
  4. Save a note on purpose:

    memsmith note "Deploys freeze on Fridays"
    
  5. Open the dashboard at the address that memsmith status prints.

  6. If something looks wrong, run memsmith doctor. Add --fix to repair what it finds.

Without a global install (npm install -g memsmith), prefix each command with npx.

Capabilities

Capability What it does Documentation
Memory tools Search, read, and write memory through MCP, and explore code with smart_* tools Memory tools
Notes Save a decision or fact on purpose, ranked first in search Notes
CLI Install, update, manage the server, search, link projects, and operate a team server CLI reference
Projects Map folders to projects with markers, and merge or prune projects Projects
Dashboard Browse observations, read notes, and change settings Dashboard
Actor tags Label memory with the agent or role that wrote it, and filter by it Actor tags
Read-only mode Let a session read memory but record nothing (MEMSMITH_ACCESS=read) Read-only mode
Hook switches Turn off hook features by name (MEMSMITH_HOOKS_DISABLED) Hook switches
Privacy Exclude content with <private> tags, redact secrets automatically, and pause capture with /incognito Private tags, Secret redaction, Incognito mode
Providers Choose Claude, Gemini, OpenRouter, or Ollama, with automatic local failover Generation providers
Generation Queue, retries, quality floor, tiering, and monthly caps Generation queue and quality
Memory-first enforcement Make the agent consult memory before it searches code or the web Architecture overview
Team server Share memory across a team with API keys, roles, quotas, and remote MCP recall Team server
Settings Every setting and environment variable, with its default Settings reference
Other IDEs Cursor, Antigravity CLI, Claude Desktop, and others Cursor, Antigravity CLI, Claude Desktop

Runtimes

MemSmith runs the same engine in two runtimes. Runtimes compares them.

Runtime Who it serves Where data lives
local (default) A solo developer Embedded Postgres in ~/.memsmith/pgdata
server A team Remote Postgres behind an HTTPS API

A project moves from local to server through the GO TEAM flow in the dashboard. The flow copies local data to the team server, verifies the copy, and then switches the project. MemSmith never deletes local data. A teammate who clones the repository joins the team from the dashboard with a team key. For deployment, see Team server and the AWS runbook.

Troubleshooting

Run memsmith doctor first. For fixes to common problems, such as a stopped server, missing context, or a blocked tool call, see Troubleshooting.

Documentation

The documentation source is in docs/public/. Start with the introduction.

Development

To build from source, clone the repository, run npm install, and then run npm run build. To run the tests, run bun test tests/server/ for a fast signal. After a source change that lands in a plugin bundle, run npm run build and commit the regenerated files under plugin/. For contributor details, see Development.

Report issues at GitHub Issues. Security reports go through GitHub private vulnerability reporting; see SECURITY.md.

License

MemSmith is licensed under the Apache License 2.0. See the LICENSE file for the full text, and docs/license.md and docs/ip-boundary.md for the licensing scope.

Credits

MemSmith includes software derived from an Apache-2.0 licensed open source project. See the NOTICE file for attribution.

from github.com/shshalom/memsmith

Install Memsmith in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install memsmith

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add memsmith -- npx -y memsmith

Step-by-step: how to install Memsmith

FAQ

Is Memsmith MCP free?

Yes, Memsmith MCP is free — one-click install via Unyly at no cost.

Does Memsmith need an API key?

No, Memsmith runs without API keys or environment variables.

Is Memsmith hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Memsmith in Claude Desktop, Claude Code or Cursor?

Open Memsmith on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Memsmith with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All data MCPs