Projectmem MCP Server

Local-first memory + judgment layer for AI coding agents — warns before repeating failed fixes.

Local serverstdioPython

What is the Projectmem MCP Server?

Local-first memory + judgment layer for AI coding agents — warns before repeating failed fixes.

What the server does

We don't make AI smarter. We make it experienced. AI coding memory — the local-first memory + judgment layer for AI coding agents. Save up to 50%+ of AI tokens. Stop repeating yesterday's bug.

projectmem is an open-source agent memory layer built for that job. It is local-first: memory lives in a plain .projectmem/ directory inside your repository, with no cloud, no account and no telemetry. A native MCP server exposes 15 tools to Claude Code, Claude Desktop, Cursor, Antigravity and Codex, so your agent reads memory and logs its work on its own.

  • Session-Start Briefing — (new in 0.1.4) — pjm brief answers "where was I?" in one screen: active warnings, possibly-stale memories, open issues, recent decisions, stack gotchas, and your prevention score with a week-over-week delta
  • Smart Context Injection — — pjm wrap claude (or cursor/aider) injects a token-budgeted memory block into your AI before the session opens. Your AI starts experienced, not blank
  • Provable ROI Score — — pjm score outputs a letter grade (A+ → F) backed by concrete numbers — debugging hours saved, tokens prevented, dollars protected. CI-friendly JSON output and shields.io badge for your README
  • Cross-Project Memory — — Lessons learned in one repo follow you forever. Library gotchas, decisions, and patterns live in ~/.projectmem/global/ and auto-inherit into every new project that matches your stack
  • Real-time File Watcher — — Background daemon detects rapid edits to the same file (debugging sessions) between commits. Battery-aware, gitignore-aware, auto-started by pjm init
  • 100% Local — — No cloud, no telemetry, no accounts. Your code, your memory, your machine

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Projectmem MCP Server

{
  "mcpServers": {
    "projectmem": {
      "command": "/opt/anaconda3/bin/python",
      "args": [
        "-m",
        "projectmem.mcp_server"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Projectmem to Pre.”
  • “Use Projectmem to Stale.”
  • “Use Projectmem to Session.”

Frequently asked questions

Local-first memory + judgment layer for AI coding agents — warns before repeating failed fixes. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.