drio
Open app

MemGPT MCP Server

Source

A Model Context Protocol (MCP) server that provides persistent memory and multi-model LLM support.

Catalog onlyCatalog onlySTDIO

Overview

MemGPT MCP Server is a TypeScript-based Model Context Protocol (MCP) server that provides persistent memory and multi-model support for large language models (LLMs). It allows users to chat with various LLM providers while maintaining conversation history.

To use MemGPT MCP Server, install the necessary dependencies, build the server, and configure it with your LLM provider API keys. You can then interact with the server through its tools to send messages, retrieve memory, or switch providers.

  • Supports multiple LLM providers (OpenAI, Anthropic, OpenRouter, Ollama) - Tools for sending messages, retrieving, and clearing conversation history - Ability to switch between different models and providers - Unlimited memory retrieval option
  1. Engaging in conversations with various LLMs while keeping track of context.
  2. Utilizing different models for specific tasks like customer support or content generation.
  3. Debugging and inspecting LLM interactions using the MCP Inspector.

Add to your AI client

Use these steps to connect MemGPT MCP 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": {
    "memgpt-mcp-server-vic563": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memgpt-mcp-server-vic563"
      ]
    }
  }
}

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": {
    "memgpt-mcp-server-vic563": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memgpt-mcp-server-vic563"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Can I use multiple LLM providers with MemGPT?

Yes! MemGPT supports multiple providers including OpenAI and Anthropic.

How do I retrieve my conversation history?

You can use the `get_memory` tool to retrieve your conversation history, with options for limiting the number of memories.

Is there a way to clear my conversation history?

Yes! You can use the `clear_memory` tool to remove all stored memories.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1136,"uuid":"fdd54521-848e-4091-abe3-2e447bacf206","name":"Memgpt-MCP-Server","title":"MemGPT MCP Server","description":"A Model Context Protocol (MCP) server that provides persistent memory and multi-model LLM support.","avatar_url":"https://avatars.githubusercontent.com/u/16152626?v=4","created_at":"2025-01-28T02:34:33.366Z","updated_at":"2025-02-23T07:18:50.026Z","status":"created","author_name":"Vic563","author_avatar_url":"https://avatars.githubusercontent.com/u/16152626?v=4","tags":"memgpt,mcp-server,llm-support","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/Vic563/Memgpt-MCP-Server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"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"}]]}]