Labsco
prasanna00019 logo

IDE MEMORY MCP

โ˜… 1

from prasanna00019

IDE Memory MCP gives AI coding agents a persistent memory layer that works across any IDE supporting the Model Context Protocol. Write project context once โ€” the AI remembers it everywhere.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeNeeds API keys

IDE Memory MCP

<p align="center"> <img src="https://github.com/prasanna00019/MCP-ToolHub/raw/main/IDE-Memory-MCP/logo.png" alt="IDE Memory MCP" width="350"/> </p>

Cross-IDE persistent memory for AI coding agents โ€” your AI remembers every project, across every IDE.

Python 3.11+ License: MIT MCP


The Problem

Every time you open a project in a new IDE or start a fresh AI conversation, your AI assistant forgets everything:

  • What the project does
  • Architecture decisions you've made
  • What you're currently working on
  • Your progress and milestones

You end up repeating yourself. Every. Single. Time.

The Solution

IDE Memory MCP gives AI coding agents a persistent memory layer that works across any IDE supporting the Model Context Protocol. Write project context once โ€” the AI remembers it everywhere.

Copy & paste โ€” that's it
Cursor โ†โ”€โ”€โ†’ IDE Memory MCP โ†โ”€โ”€โ†’ VS Code
   โ†‘              โ†“                 โ†‘
   โ””โ”€โ”€ same project memory โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Features

  • Cross-IDE Memory โ€” Project context persists across Cursor, VS Code, Windsurf, Claude Desktop, and any MCP-compatible IDE
  • Context-Optimized โ€” Default reads return a compact summary table, not a context-window-destroying content dump. The AI loads only what it needs.
  • Smart Warnings โ€” Automatically detects stale sections (>7 days), oversized content (>10k chars), and suggests pruning when memory gets old (>30 days)
  • Agent Prompts โ€” Built-in MCP prompts guide the AI on how to start sessions, bootstrap memory for new projects, and update memory after changes
  • Smart Project Matching โ€” Recognizes projects by path or git remote URL. Move folders, switch machines โ€” your memory follows.
  • Section-Based Storage โ€” Organized into overview, decisions, active_context, progress + custom sections
  • Append Mode โ€” Add incremental updates without rewriting entire sections
  • Version History โ€” Previous content auto-saved before each overwrite (last 5 snapshots)
  • Zero Config โ€” Works out of the box. No database, no cloud, just local markdown files.

CLI Commands

The ide-memory-mcp package includes practical commands to manage your setup:

ide-memory-mcp setup

Auto-configure MCP for your IDEs.

Copy & paste โ€” that's it
ide-memory-mcp setup              # auto-detect + configure all
ide-memory-mcp setup --cursor     # configure only Cursor
ide-memory-mcp setup --vscode     # configure only VS Code
ide-memory-mcp setup --windsurf   # configure only Windsurf
ide-memory-mcp setup --claude     # configure only Claude Desktop
ide-memory-mcp setup --all        # configure all supported

ide-memory-mcp doctor

Health check your installation.

Copy & paste โ€” that's it
ide-memory-mcp doctor

Verifies server import, storage disk usage, projects count, and which IDEs are configured.

ide-memory-mcp status

Quick overview of all projects.

Copy & paste โ€” that's it
ide-memory-mcp status

Lists registered projects with section counts, total size, and last updated date.


<details> <summary>๐Ÿ’ก <b>Manual IDE Configuration</b> (If setup fails or for advanced users)</summary>

Add the MCP server to your IDE's configuration file:

Cursor โ€” ~/.cursor/mcp.json

Copy & paste โ€” that's it
{
  "mcpServers": {
    "ide-memory": {
      "command": "ide-memory-mcp"
    }
  }
}

VS Code โ€” .vscode/mcp.json (or global settings)

Copy & paste โ€” that's it
{
  "mcpServers": {
    "ide-memory": {
      "command": "ide-memory-mcp"
    }
  }
}

Windsurf โ€” ~/.codeium/windsurf/mcp_config.json

Copy & paste โ€” that's it
{
  "mcpServers": {
    "ide-memory": {
      "command": "ide-memory-mcp"
    }
  }
}

Claude Desktop

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Copy & paste โ€” that's it
{
  "mcpServers": {
    "ide-memory": {
      "command": "ide-memory-mcp"
    }
  }
}
</details>

Tools

IDE Memory MCP exposes 4 optimized tools to the AI agent:

init_project

Register or reconnect to a project. Call this first in every conversation.

Copy & paste โ€” that's it
init_project(projectPath, projectName?, gitRemoteUrl?)
  • New project โ†’ creates memory storage, suggests next steps, mentions bootstrap_memory prompt
  • Known project โ†’ reconnects, returns memory summary with smart warnings:
    • โš ๏ธ Empty sections that need filling
    • โฐ Stale sections (>7 days) that should be updated
    • ๐Ÿ“ฆ Large sections (>10k chars) that may need pruning
    • ๐Ÿงน Old sections (>30 days) suggesting a full prune

read_memory

Context-aware memory loading. Optimized to avoid flooding the AI's context window.

Copy & paste โ€” that's it
read_memory(projectIdOrPath, sections?, query?, maxChars?, history?, prune?)
ModeTriggerWhat it does
Summary (default)No sectionsReturns a compact table: section names, sizes, staleness, warnings. No content.
Selectivesections=["overview"]Loads only the listed sections
TruncatedmaxChars=500Caps each section at N characters
Searchquery="auth"Keyword search across all sections
Historyhistory=TrueShows previous versions of a section
Pruneprune=TrueLoads all with actionable cleanup instructions

๐Ÿ’ก Recommended workflow:

  1. read_memory(projectId) โ†’ get the summary table (~10 lines)
  2. Decide which sections are relevant
  3. read_memory(projectId, sections=["overview", "decisions"]) โ†’ load only what you need

write_memory

Write to one or more memory sections.

Copy & paste โ€” that's it
write_memory(projectIdOrPath, sections, append?, heading?)
  • Overwrite mode (default): Replace entire section content. Previous content auto-saved to history.
  • Append mode (append=True): Add timestamped entries without rewriting. Great for decisions and progress logs.

Tool description includes behavioral guidance โ€” it tells the AI agent when to call it:

  • After significant code changes
  • When important decisions are made
  • At the end of productive sessions
  • When the user asks to "remember" something

manage_projects

List or delete projects.

Copy & paste โ€” that's it
manage_projects(action, projectIdOrPath?, confirm?)

MCP Prompts

IDE Memory MCP includes 3 built-in prompt templates that guide the AI agent through common workflows. These solve the "agent doesn't know when to use memory" problem.

start_session

When: Beginning of every conversation.

Guides the agent through: initialize project โ†’ read summary โ†’ load relevant sections โ†’ check for stale content โ†’ plan memory updates for end of session.

bootstrap_memory

When: First time using IDE Memory on an existing project, or when the user says "learn about this project".

Guides the agent through: analyze README & package files โ†’ write comprehensive overview โ†’ document architecture decisions โ†’ set active context โ†’ record progress.

update_memory

When: End of a productive session, after significant changes, or when the user says "save what we did".

Guides the agent through: read current memory โ†’ update active_context โ†’ append new decisions โ†’ update progress โ†’ update overview if needed โ†’ check if pruning is needed.


Memory Sections

Default sections created for every project:

SectionPurpose
overviewWhat the project is, tech stack, architecture
decisionsKey technical decisions and rationale
active_contextWhat you're currently working on
progressMilestones, completed items, what's next

Custom sections are fully supported โ€” use any lowercase identifier:

Copy & paste โ€” that's it
write_memory(projectId, {"api_contracts": "...", "testing_notes": "..."})

Smart Warnings

The memory summary automatically includes actionable warnings:

WarningTriggerAction
โš ๏ธ EmptySection has <50 charsFill with write_memory
โฐ StaleSection not updated in >7 daysReview and update
๐Ÿ“ฆ LargeSection exceeds 10k charsConsider pruning
๐Ÿงน PruneAny section >30 days oldRun read_memory(prune=True)

Storage

All memory is stored as simple markdown files in ~/.ide-memory/projects/:

Copy & paste โ€” that's it
~/.ide-memory/
โ”œโ”€โ”€ config.json              # Optional configuration
โ””โ”€โ”€ projects/
    โ””โ”€โ”€ <project_id>/
        โ”œโ”€โ”€ meta.json         # Project metadata + timestamps
        โ”œโ”€โ”€ overview.md
        โ”œโ”€โ”€ decisions.md
        โ”œโ”€โ”€ active_context.md
        โ”œโ”€โ”€ progress.md
        โ””โ”€โ”€ .history/         # Auto-saved snapshots
            โ”œโ”€โ”€ overview_20260314_120000.md
            โ””โ”€โ”€ decisions_20260314_130000.md
  • No database required
  • All files are human-readable markdown
  • Easy to backup, version, or migrate
  • No data ever leaves your machine

Development

Prerequisites

  • Python 3.11+
  • uv (recommended) or pip

Setup

Copy & paste โ€” that's it
git clone https://github.com/prasanna-pmpeople/IDE-Memory-MCP.git
cd IDE-Memory-MCP
uv sync

Run the server

Copy & paste โ€” that's it
uv run ide-memory-mcp

Run tests

Copy & paste โ€” that's it
uv run pytest tests/ -v

Test with MCP Inspector

Copy & paste โ€” that's it
npx -y @modelcontextprotocol/inspector uv run ide-memory-mcp

See TESTING.md for the complete testing guide, including MCP Inspector walkthrough and cross-IDE battle testing.

Build the package

Copy & paste โ€” that's it
uv build

Install from built package

Copy & paste โ€” that's it
pip install dist/ide_memory_mcp-1.0.0-py3-none-any.whl

How It Works

<p align="center"> <img src="https://github.com/prasanna00019/MCP-ToolHub/raw/main/IDE-Memory-MCP/mermaid.png" alt="IDE Memory MCP" width="400"/> </p>