MemGPT MCP Server

MemGPT MCP Server is an MCP server that provides a persistent conversation memory system for large language models across multiple external model providers. It connects directly to APIs and endpoints for Anthropic, OpenAI, OpenRouter, and local Ollama instances, enabling client environments to preserve conversation state across disparate queries. Developers, AI engineers, and interactive assistant users employ this server to overcome standard session context limits by maintaining a structured chronological history of chat interactions. The server exposes dedicated tools to send messages through selected providers, fetch stored conversation history with configurable retrieval limits or full transcript exports, wipe memory when required, and switch both active providers and specific model identifiers dynamically. By offloading conversational persistence to a local TypeScript service over standard input and output, users can run tasks across different models—such as comparing Claude 3.5 Sonnet outputs with local Llama models—while keeping continuous session memory intact. This architecture allows client applications to coordinate interactions without manually reinjecting entire previous transcripts into every prompt.

Category: AI & LLM Tooling

Tags: context, llm, memory, persistence

Visit MemGPT MCP Server

How to install and configure MemGPT MCP Server

  1. Clone the repository and navigate into the project directory. 2. Install dependencies by running npm install. 3. Build the server by executing npm run build. 4. Open the Claude Desktop configuration file located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%/Claude/claude_desktop_config.json on Windows. 5. Add the letta-memgpt entry under mcpServers pointing to your build path: json { "mcpServers": { "letta-memgpt": { "command": "/path/to/memgpt-server/build/index.js", "env": { "OPENAI_API_KEY": "your-openai-key", "ANTHROPIC_API_KEY": "your-anthropic-key", "OPENROUTER_API_KEY": "your-openrouter-key" } } } } 6. Supply your relevant API keys and restart Claude Desktop.

What you can do with MemGPT MCP Server

  • Maintaining persistent conversational history across extended multi-turn debugging sessions using Claude 3.5 Sonnet without losing prior technical context. - Switching dynamically between Anthropic, OpenAI, OpenRouter, and local Ollama models while retaining a unified chronological conversation memory log. - Inspecting recent or complete dialogue transcripts by calling memory retrieval with specified numeric bounds or null limits for full auditability. - Testing and comparing model outputs across local Ollama instances and cloud-hosted OpenAI endpoints using the exact same stored session background. - Resetting assistant dialogue state cleanly between testing environments by executing the memory wipe tool without restarting the server process.

Key facts

  • https://github.com/Vic563/Memgpt-MCP-Server
  • AI & LLM Tooling, AI Memory & Context
  • context, llm, memory, persistence

Part of MCP Servers

Related MCP servers

  • MCP Memory Dashboard — MCP Memory Dashboard is an MCP server desktop interface that connects to the MCP Memory Service to provide visual semantic…
  • MCP Kanban Memory — MCP Kanban Memory is an MCP server that provides a kanban-based task management and state retention system for AI-driven workflows.…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab — MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…
  • MCP LLM Integration Server — MCP LLM Integration Server is an MCP server that connects local Large Language Model runtimes with Model Context Protocol clients…
  • MCP Memory Keeper — MCP Memory Keeper is an MCP server that provides persistent context management and memory storage for Claude AI coding assistants.…

What can MemGPT MCP Server do?

MemGPT MCP Server allows AI clients to chat with various language model providers while retaining persistent conversation histories. It provides tools to send prompts, inspect stored memories chronologically with optional limits, clear conversation logs, and dynamically switch both active model providers and target models during an ongoing session.

Which LLM providers work with MemGPT MCP Server?

The server supports Anthropic, OpenAI, OpenRouter, and Ollama. Through these providers, you can access models like Claude 3.5 Sonnet, Claude 3 Opus, GPT-4o, GPT-4 Turbo, various OpenRouter routing endpoints, and locally installed models hosted through Ollama like Llama 2 and Code Llama.

Which MCP clients work with MemGPT MCP Server?

MemGPT MCP Server works with Claude Desktop on macOS and Windows, as well as any other client that supports the Model Context Protocol over standard input and output streams. Configuration requires adding the built server executable path and provider API keys to the client settings file.

How do I retrieve stored memories in MemGPT MCP Server?

You retrieve stored conversations using the memory inspection tool. By default, the tool returns the ten most recent messages in chronological order with timestamps. You can provide a specific numeric limit to fetch more or fewer messages, or pass a null limit to retrieve the complete stored history.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories