Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Project Mem Mcp

    An MCP server that enables AI agents to persistently store and retrieve project information from a memory file.

    1 stars
    Python
    Updated May 2, 2025
    claude-ai
    claude-desktop
    mcp
    mcp-server
    memory
    persistence

    Table of Contents

    • Overview
    • Installation
    • Using uvx
    • Prerequisites
    • Set up MCP Client (Claude Desktop, Cursor, etc.)
    • Install from Source
    • Prerequisites
    • Clone the repository
    • Set up MCP Client (Claude Desktop, Cursor, etc.)
    • Arguments
    • Usage
    • Tools
    • get_project_memory
    • set_project_memory
    • update_project_memory
    • Example Workflow
    • Claude Desktop
    • Security Considerations
    • Dependencies
    • License

    Table of Contents

    • Overview
    • Installation
    • Using uvx
    • Prerequisites
    • Set up MCP Client (Claude Desktop, Cursor, etc.)
    • Install from Source
    • Prerequisites
    • Clone the repository
    • Set up MCP Client (Claude Desktop, Cursor, etc.)
    • Arguments
    • Usage
    • Tools
    • get_project_memory
    • set_project_memory
    • update_project_memory
    • Example Workflow
    • Claude Desktop
    • Security Considerations
    • Dependencies
    • License

    Documentation

    Project Memory MCP

    An MCP Server to store and retrieve project information from memory file. This allows AI agents (like Claude) to maintain persistent memory about projects between conversations.

    Overview

    Project Memory MCP provides a simple way to:

    • Store project information in Markdown format
    • Retrieve project information at the beginning of conversations
    • Update project information using patches

    The memory is stored in a MEMORY.md file in each project directory.

    Installation

    Using uvx

    This method uses uvx (from the uv Python package manager) to run the server without permanent installation:

    Prerequisites

    Install uvx from uv if you don't have it already.

    Set up MCP Client (Claude Desktop, Cursor, etc.)

    Merge the following config with your existing config file (e.g. claude_desktop_config.json):

    json
    {
      "mcpServers": {
        "project-memory": {
          "command": "uvx",
          "args": [
            "project-mem-mcp",
            "--allowed-dir", "/Users/your-username/projects",
            "--allowed-dir", "/Users/your-username/Documents/code"
          ]
        }
      }
    }

    Note: Replace /Users/your-username with the actual path to your own projects and code directories.

    Install from Source

    Prerequisites

    • Python 3.11 or higher
    • Pip package manager

    Clone the repository

    bash
    git clone https://github.com/your-username/project-mem-mcp.git
    python -m venv venv
    source venv/bin/activate
    pip install -e .

    Set up MCP Client (Claude Desktop, Cursor, etc.)

    Merge the following config with your existing config file (e.g. claude_desktop_config.json):

    json
    {
      "mcpServers": {
        "project-memory": {
          "command": "path/to/your/venv/bin/project-mem-mcp",
          "args": [
            "--allowed-dir", "/Users/your-username/projects",
            "--allowed-dir", "/Users/your-username/Documents/code"
          ]
        }
      }
    }

    Note: Replace /Users/your-username with the actual path to your own projects and code directories.

    Arguments

    The --allowed-dir argument is used to specify the directories that the server has access to. You can use it multiple times to allow access to multiple directories. All directories inside the allowed directories are also allowed.

    It is optional. If not provided, the server will only have access to the home directory of the user running the server.

    Usage

    The MCP server is started by the client (e.g., Claude Desktop) based on the configuration you provide. You don't need to start the server manually.

    Tools

    Project Memory MCP provides three tools:

    get_project_memory

    Retrieves the entire project memory in Markdown format. Should be used at the beginning of every conversation about a project.

    python
    get_project_memory(project_path: str) -> str
    • project_path: Full path to the project directory.
    • Returns the content of the MEMORY.md file as a string.
    • Raises FileNotFoundError if the project or memory file does not exist.
    • Raises PermissionError if the project path is not in allowed directories.

    set_project_memory

    Sets (overwrites) the entire project memory. Use this when creating a new memory file, replacing the whole memory, or if update_project_memory fails.

    python
    set_project_memory(project_path: str, project_info: str)
    • project_path: Full path to the project directory.
    • project_info: Complete project information in Markdown format.
    • Overwrites the MEMORY.md file with the provided content.
    • Raises FileNotFoundError if the project path does not exist.
    • Raises PermissionError if the project path is not in allowed directories.

    update_project_memory

    Updates the project memory by applying one or more block-based patches to the memory file. This is more efficient for small changes.

    python
    update_project_memory(project_path: str, patch_content: str)
    • project_path: Full path to the project directory.
    • patch_content: Block-based patch content using SEARCH/REPLACE markers (see below).
    • Each patch block must have the following format:
    code
    >>>>>> REPLACE

    Multiple blocks can be included in a single request.

    • Each search text must appear exactly once in the file, otherwise an error is raised.
    • Raises FileNotFoundError if the project or memory file does not exist.
    • Raises ValueError if the patch format is invalid or the search text is not unique.
    • Raises RuntimeError if patch application fails for any reason.

    Example Workflow

    1. Begin a conversation with LLM about a project

    2. LLM uses get_project_memory to retrieve project information

    3. Throughout the conversation, LLM uses update_project_memory to persist new information

    4. If the update fails, LLM can use set_project_memory instead

    Claude Desktop

    if you use Claude Desktop, it is best to use the project feature.

    Edit the project instructions:

    • Add a line like this: "The path of the project is "
    • If it does not always use the memory, you can add a line like this: "Always use the project memory, it is not optional"

    Security Considerations

    • Memory files should never contain sensitive information
    • Project paths are validated against allowed directories
    • All file operations are restricted to allowed directories

    Dependencies

    • fastmcp (>=2.2.0, <3.0.0)

    License

    MIT

    Similar MCP

    Based on tags & features

    • DA

      Davinci Resolve Mcp

      Python·
      327
    • FH

      Fhir Mcp Server

      Python·
      55
    • MC

      Mcp Aoai Web Browsing

      Python·
      30
    • WE

      Web Eval Agent

      Python·
      1.2k

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • DA

      Davinci Resolve Mcp

      Python·
      327
    • FH

      Fhir Mcp Server

      Python·
      55
    • MC

      Mcp Aoai Web Browsing

      Python·
      30
    • WE

      Web Eval Agent

      Python·
      1.2k

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k