Projectmem logo

Projectmem

by riponcm

Local-first project memory for coding agents, with session context and warnings about previously failed approaches.

Install Projectmem

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": {
    "riponcm-projectmem": {
      "command": "uvx",
      "args": [
        "projectmem"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio riponcm-projectmem -- uvx projectmem

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx projectmem

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

riponcm/projectmem records coding issues, attempts, fixes, decisions, and notes in each repository’s `.projectmem/` directory. It exposes this structured memory through MCP, summarizes relevant project history at session start, and warns before edits or commits when an approach has failed before. Use it when agents repeatedly rediscover project context or retry unsuccessful fixes. The Python package runs locally without a cloud account, API key, or telemetry.

Use cases

  • Record failed debugging attempts for future sessions
  • Preserve project decisions between agent sessions
  • Surface file-specific lessons before edits
  • Warn before repeating a failed approach at commit time
  • Register and inspect memory across multiple repositories

Key features

  • Local `.projectmem/` storage
  • Markdown and JSONL memory records
  • Structured issue, attempt, fix, and decision events
  • Session-start project summaries
  • Edit-time and commit-time warnings
  • 19 MCP tools

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.

36/38 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · projectmem (PyPI)

Adoption & maintenance

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

GitHub stars887Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity10 viewsConfig copies, upvotes, and views on AllMCPs.

How Projectmem works

What riponcm/projectmem does

riponcm/projectmem gives AI coding agents persistent, project-specific memory. Instead of treating prior work as an unstructured chat transcript, it stores typed events covering issues, hypotheses, attempts, fixes, decisions, and notes. The records are kept inside the repository under .projectmem/, using readable Markdown and JSONL files.

At the beginning of a session, the agent receives a compact summary of what the project has already learned. The system can also surface lessons associated with a file before an edit and warn at commit time when a proposed approach resembles one that previously failed. This makes it useful for repositories where agents repeatedly revisit debugging problems or need to preserve decisions between sessions.

How it works

The package provides an MCP server that connects an AI client to the memory for the current project. A single setup can serve multiple projects; each repository retains its own local memory. pjm init creates the project directory, adds three Git hooks, and can register the MCP server in a supported client configuration.

For Claude Code and Codex, initialization can also install an edit hook that displays a file’s recorded lessons before each edit. The Git hooks provide project-level automation, including warnings at commit time. Clients load MCP servers when they start, so a newly configured desktop client needs to be fully restarted before a new session can use the connection.

Setup and configuration

Install the Python package with either pipx install projectmem or pip install projectmem. From the repository you want to track, run pjm init --agent <client>, replacing the client value with claude-code, codex, cursor, antigravity, or claude-desktop. Run the command once per project; subsequent repositories need their own initialization.

The pjm doctor command checks for projects whose memory is not registered, registrations pointing to missing memory, and client configurations still tied to one repository. Use pjm doctor --fix to register projects it finds, or pjm project register <path> for an individual path. Existing installations can be upgraded with pip install -U projectmem or pipx upgrade projectmem, then refreshed with pjm init.

Tools and capabilities

The MCP interface exposes 19 tools for working with project memory. Its structured event model covers:

  • recording issues, hypotheses, attempts, fixes, decisions, and notes;
  • retrieving project history and session context;
  • associating lessons with files and surfacing them before edits;
  • warning about previously unsuccessful approaches before commits.

Memory remains available as repository-local files, so it can be inspected alongside source code and versioned according to the project’s workflow.

Limitations and notes

The server is designed for local project memory rather than a hosted synchronization service. It does not require an account, API key, or cloud service, and its data is stored in the repository. Python 3.10 or newer is required; supported operating systems are macOS, Linux, and Windows.

The client must be restarted after MCP configuration changes because MCP servers load at client startup. A project must also be initialized or registered before the server can reach its .projectmem/ data. Client-specific setup is provided for Claude Code, Codex, Cursor, Antigravity, and Claude Desktop; Antigravity is not represented in the standard client slug list used by this directory.

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 Projectmem

riponcm/projectmem is an MCP server that connects AI coding agents to project-local memory stored in Markdown and JSONL files. Its tools record issues, attempts, fixes, decisions, and notes, then provide session context and warnings before edits or commits when an approach has failed previously.

Install it with `pipx install projectmem` or `pip install projectmem`, then run `pjm init --agent <client>` from the target repository. Initialization creates `.projectmem/`, installs Git hooks, and adds the MCP server to the selected client configuration.

Yes, riponcm/projectmem supports Cursor. Run `pjm init --agent cursor` inside each repository, then start a new Cursor session so the MCP server configuration is loaded.

It records typed project events and checks them before relevant edits and Git commits. When a file or approach has a prior failed attempt, the agent can receive the associated lesson or warning instead of repeating it.

No, it stores memory locally in the repository and does not require a cloud account, API key, or telemetry. Each project keeps its data in a `.projectmem/` directory.

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 PreviewProjectmem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/riponcm-projectmem?style=directory)](https://allmcps.com/mcp/riponcm-projectmem)
HTML Embed
<a href="https://allmcps.com/mcp/riponcm-projectmem"><img src="https://allmcps.com/api/badge/riponcm-projectmem?style=directory" alt="Projectmem on AllMCPs" /></a>