# Projectmem

> Projectmem is an open-source MCP server for knowledge and memory. Local-first MCP memory that warns coding agents before they repeat a failed fix. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/riponcm/projectmem
- **MCP Registry name:** io.github.riponcm/projectmem
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Where a chat-history memory tool stores conversation, projectmem stores typed events: issues, attempts, fixes, decisions and notes. That structure powers its signature feature, a pre-commit warning when an approach already failed in the project. Version 0.3.5 made the precheck recognise a file however its path is spelled (relative, absolute, symlinked or Windows style).

Everything lives in a .projectmem/ directory inside the repository, with no cloud, no account and no telemetry; the only network call is an update check you switch on. Running pjm init installs three git hooks and a file watcher. Since 0.3.0 a single MCP server, launched from Python, serves every registered project, and pjm doctor finds and checks projects and client configs. The README says 17 MCP tools are offered to Claude Code, Claude Desktop, Cursor, Antigravity and Codex.

It installs from PyPI with pip, is MIT licensed and has an accompanying arXiv paper. pjm visualize generates a local dashboard from events.jsonl.

## Features

- **Typed event log:** Records issues, attempts, fixes, decisions and notes rather than chat history.
- **Pre-commit warnings:** Warns before an approach that already failed is repeated.
- **One server for all projects:** A single MCP config serves every registered project.
- **Doctor command:** pjm doctor finds unregistered projects and flags clients pinned to one repo.
- **Local dashboards:** pjm visualize builds a view of solved cases from the local event log.
- **Git hooks:** Installs pre-commit, post-commit and post-merge hooks.

## Good for

- Stop an agent re-trying a fix that failed last week
- Carry project decisions across coding sessions
- Reduce tokens spent re-reading a repo each session
- Share one memory setup across Claude Code, Cursor and Codex

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add projectmem -- uvx projectmem
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add projectmem -- uvx projectmem
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.projectmem]
command = "uvx"
args = ["projectmem"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user projectmem uvx -- projectmem

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

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

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

From the tool list in its README, going by the names, 1 of 2 tools reads data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `precheck`: Warns about known failures before a file is modified.
- `get_issue` (name suggests: reads): Returns a logged issue by number.

## FAQ

### Does Projectmem send data anywhere?

The README says there is no cloud, account or telemetry; the only network call is an optional update check.

### How do I install Projectmem?

pip install projectmem, then run pjm init in a project.

### Which clients does Projectmem support?

Claude Code, Claude Desktop, Cursor, Antigravity and Codex.

### What licence is Projectmem?

MIT.

### Is Projectmem free?

Yes. Projectmem is open source, so you can use and self-host it for free.

### How do I add Projectmem to Claude Code?

Run this command in your terminal: claude mcp add projectmem -- uvx projectmem

### What are the best alternatives to Projectmem?

The closest alternatives to Projectmem are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/projectmem
