Skip to content
MCP server

Projectmem

Local-first MCP memory that warns coding agents before they repeat a failed fix

Runs locally

Projectmem is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.3.6
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add projectmem -- uvx projectmem

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

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

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

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add projectmem -- uvx projectmem

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "projectmem": {
      "command": "uvx",
      "args": [
        "projectmem"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

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

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Projectmem

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.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

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_issueName suggests: reads
Returns a logged issue by number.

What it does

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

Pricing

Open source

MIT licence

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

How AIPoweredBot checks servers