drio
Open app

MCP Memory Server

Source

MCP Memory Server with PostgreSQL and pgvector for long-term memory capabilities

Catalog onlyCatalog onlySTDIO

Overview

MCP Memory Server is a server designed to implement long-term memory capabilities for AI assistants, utilizing PostgreSQL and pgvector for efficient vector similarity search.

To use the MCP Memory Server, set up PostgreSQL with the pgvector extension, install the necessary dependencies, configure environment variables, and start the server. You can then interact with the server through its RESTful API.

  • PostgreSQL with pgvector for vector similarity search - Automatic embedding generation using BERT - RESTful API for memory operations - Semantic search capabilities - Support for various types of memories (learnings, experiences, etc.) - Tag-based memory retrieval - Confidence scoring for memories - Real-time updates via Server-Sent Events (SSE)
  1. Storing and retrieving AI assistant memories
  2. Enhancing AI interactions with contextual memory
  3. Implementing personalized user experiences based on past interactions

Add to your AI client

Use these steps to connect MCP Memory Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-memory-sdimitrov": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-memory-sdimitrov"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-memory-sdimitrov": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-memory-sdimitrov"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-memory-sdimitrov": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-memory-sdimitrov"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-memory-sdimitrov": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-memory-sdimitrov"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-memory-sdimitrov": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-memory-sdimitrov"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-memory-sdimitrov": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-memory-sdimitrov"
      ]
    }
  }
}

FAQ

What is the purpose of the MCP Memory Server?

It provides long-term memory capabilities for AI assistants, allowing them to remember past interactions and improve user experience.

Is there a specific database requirement?

Yes, it requires PostgreSQL 14+ with the pgvector extension installed.

How can I check the server status?

You can check the server status by visiting `http://localhost:3333/mcp/v1/health`.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2972,"uuid":"94cae0b4-bdfd-4cc2-a586-2e804977247d","name":"mcp-memory","title":"MCP Memory Server","description":"MCP Memory Server with PostgreSQL and pgvector for long-term memory capabilities","avatar_url":"https://avatars.githubusercontent.com/u/1030164?v=4","created_at":"2025-03-16T09:44:58.342Z","updated_at":"2025-03-16T09:56:15.159Z","status":"created","author_name":"sdimitrov","author_avatar_url":"https://avatars.githubusercontent.com/u/1030164?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/sdimitrov/mcp-memory","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-16 12:00:47\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]