# riponcm/projectmem [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/riponcm/projectmem  
**GitHub Stars:** 887  
**Views:** 10  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/riponcm-projectmem

## Description
Local-first memory and judgment layer for AI coding agents. Captures issues, failed attempts, fixes, and decisions in readable Markdown + JSONL, re-injects them into future sessions, and warns at git commit before you repeat a mistake. 14 tools, works with Claude, Cursor, Antigravity, and Codex.

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

```json
"mcpServers": {
  "projectmem": {
    "command": "uvx",
    "args": ["projectmem"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/riponcm-projectmem/readme_

