Skip to main content
Glama
promem-mcp
by DIP-RO

Promem-MCP

Project Memory MCP — persistent project context for AI coding agents. Built by DIP-RO.

PyPI version PyPI downloads PyPI downloads (month) Python versions License: MIT CI

pip install promem-mcp

No database setup. No cloud. No daemon. No manual config.

Promem-MCP is a local-first, MCP-native context runtime that gives AI coding agents persistent project understanding — architecture, rules, decisions, conventions, environment intelligence, and Git context — without repeated explanations or context waste.

Quick Start

pip install promem-mcp

That's it. On first run, Promem-MCP auto-detects and auto-configures all your installed AI coding clients (Cursor, Claude, VS Code, Cline, etc.). Just restart your AI client after install.

Prefer manual control?

# See which clients are detected
promem config

# Auto-configure all detected clients at once
promem config --all

# Configure a specific client
promem config cursor
promem config claude-code
promem config vscode

Or manually add to your client's MCP config:

{
  "mcpServers": {
    "promem-mcp": {
      "command": "promem",
      "args": []
    }
  }
}

VS Code note: VS Code uses "servers" key, not "mcpServers". Run promem config vscode for the correct format.

Related MCP server: Tages

How It Works

How It Works

Features

  • Zero-setup storage — SQLite database created automatically in OS-appropriate directory

  • Automatic project detection — language, framework, package manager, test framework

  • Persistent memory — rules, decisions, conventions, environment facts, Git intelligence

  • Token-efficient retrieval — FTS5 search with token budgeting, returns only relevant context

  • Provenance tracking — every memory knows where it came from and how confident it is

  • Secret redaction — API keys, tokens, passwords are never stored or returned

  • Project isolation — project memories never leak across projects

  • Stale context detection — flags memories that conflict with current project state

  • Contradiction detection — identifies conflicting project rules

  • Session continuity — handoff summaries for switching between agents/sessions

  • Git intelligence — recent commits, changed files, TODOs/FIXMEs

  • Environment diagnostics — Python version, venv, .env completeness, Docker

  • Local-first — no network requests, no cloud, no external services

MCP Tools

Tool

Description

ctx_search

Search persistent project context with token budget

ctx_get

Get a specific memory by ID

ctx_save

Save a memory, decision, rule, or fact

ctx_update

Update an existing memory

ctx_delete

Delete a memory

ctx_project

Get current project information

ctx_rules

Get all project rules and conventions

ctx_decisions

Get all technical/architecture decisions

ctx_recent

Get recent memories and latest session

ctx_git

Get Git intelligence

ctx_environment

Get environment intelligence

ctx_diagnostics

Run environment diagnostics

ctx_summary

Get compact project summary for handoff

CLI

contextmcp --version        # Version
promem status           # Project + storage status
promem doctor           # Health checks
promem stats            # Usage statistics
promem search "query"   # Search context
promem memory list      # List memories
promem decision "text"  # Save a decision
promem privacy          # Privacy info
promem config           # Client configuration
promem repair           # Rebuild index, optimize DB
promem reset            # Delete all data (with confirmation)

Client Support

Client

Auto-config?

Config Key

Claude Code

promem config claude-code

mcpServers

Claude Desktop

promem config claude-desktop

mcpServers

Cursor

promem config cursor

mcpServers

VS Code / Copilot

promem config vscode

servers

OpenCode

promem config opencode

mcp

Gemini CLI

promem config gemini-cli

mcpServers

Windsurf

promem config windsurf

mcpServers

Cline

promem config cline

mcpServers

Roo Code

promem config roo-code

mcpServers

Amazon Q

promem config amazon-q

mcpServers

ZCode (GLM/Zhipu)

promem config zcode

mcpServers

Tabnine

promem config tabnine

mcpServers

No client supports true zero-config auto-registration. ContextMCP detects installed clients, offers to write config (with backup + merge), and provides exact copy-paste snippets.

Privacy

  • Local only — no network requests

  • Project contents not uploaded

  • Secrets redacted — never stored or returned

  • No cloud dependencies

promem privacy

Storage Location

ContextMCP uses project-local storage — no centralized OS directory, no wasted space.

Location

Path

Project-local (default)

<project-root>/.contextmcp/

Each project gets its own .contextmcp/contextmcp.db. Storage travels with the project. No global storage bloat.

Add .contextmcp/ to your .gitignore (already included by default in ContextMCP's ignore patterns).

Override with CONTEXTMCP_DATA_DIR environment variable if needed.

Installation

# pip
pip install promem-mcp

# uv
uv add promem-mcp

# pipx (global CLI)
pipx install promem-mcp

Works in venv, virtualenv, uv, pipx, and system Python.

Development

git clone https://github.com/DIP-RO/MCP_Package.git
cd MCP_Package
pip install -e ".[dev]"
pytest

License

MIT

Available Tools

13 tools
ctx_decisionsA

Get all technical/architecture decisions with reasoning.

Inputs: no named parameters. Returns: result

ctx_deleteC

Delete a memory from persistent context.

Inputs: memory_id (required). Returns: result

ctx_diagnosticsA

Run environment diagnostics: missing env vars, config issues, health checks.

Inputs: no named parameters. Returns: result

ctx_environmentA

Get environment intelligence: Python version, venv, dependencies, Docker, .env status.

Inputs: detailed. Returns: result

ctx_getB

Get a specific memory by its ID with full provenance.

Inputs: memory_id (required). Returns: result

ctx_gitB

Get Git intelligence: recent commits, changed files, branches, TODOs/FIXMEs.

detail can be: summary, commits, files, todos

Inputs: detail. Returns: result

ctx_projectA

Get current project information: name, language, framework, root, git status.

Inputs: no named parameters. Returns: result

ctx_recentC

Get recent memories and latest session summary for continuity between sessions.

Inputs: limit. Returns: result

ctx_rulesA

Get all project rules and coding conventions.

Inputs: no named parameters. Returns: result

ctx_saveA

Save a memory, decision, rule, or fact to persistent context.

Use this to store technical decisions, project rules, coding conventions, or any important context that should persist across AI coding sessions.

Inputs: content (required), tags, type, scope, +4 more. Returns: result

ctx_summaryA

Get a compact project context summary for handoff between sessions or agents.

Includes project info, key rules, recent decisions, environment status, and latest session.

Inputs: no named parameters. Returns: result

ctx_updateC

Update an existing memory. Only provided fields are changed.

Inputs: memory_id (required), tags, content, confidence, +1 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool targets a distinct concern (search, get, save, update, delete, project info, etc.) with clear descriptions, making it easy for an agent to choose the right one. No two tools overlap in purpose.

    Naming Consistency2/5

    There is a deep inconsistency: most tools use a 'ctx_' prefix (ctx_search, ctx_get, ctx_save, etc.), but a few tools like 'ctx_git', 'ctx_environment', and 'ctx_diagnostics' do not follow this pattern. Additionally, 'ctx_git''s description includes a confusing 'detail' parameter that is not shown in the tool name, breaking the expected consistency.

    Tool Count4/5

    13 tools is a reasonable count for a project-context memory server, covering search, CRUD for memories, project info, environment, and session summaries. Each tool has a distinct purpose and earns its place.

    Completeness4/5

    The tool set covers core memory operations (CRUD), project info, decisions, rules, environment diagnostics, and session continuity. There are no obvious dead ends for common agent tasks like retrieving, storing, updating, or searching context. Minor gap: no tool for batch operations or listing all memories.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP server that provides persistent project context, workflow management, and knowledge capture for AI coding agents. It enables agents to maintain structured memory across sessions by tracking project profiles, conventions, skills, and technical debt.
      7
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to maintain persistent, cross-session memory of codebase architecture, naming conventions, and decisions through MCP tools. Eliminates repetitive project re-explanation by automatically injecting stored context into every session with local-first SQLite storage and optional team sharing capabilities.
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides persistent, cross-session memory and team knowledge sharing for AI development workflows. It enables project DNA scanning, semantic search, context budgeting, and git-aware indexing to prevent AI context loss between sessions.
      44 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server that provides cross-session persistent memory for AI coding assistants using local vector database and semantic search, enabling automatic recall of project context, issues, and tasks.
      9
      114 PyPI
      92
      Apache 2.0