Memgpt MCP Server

LLM Memory

Local serverstdioTypeScript

What is the Memgpt MCP server?

Connect Memgpt to Claude, Cursor or any other MCP client and it stops being a tab you switch to. LLM Memory. The memgpt mcp server is what makes that connection.

What the server does

A TypeScript-based MCP server that implements a memory system for LLMs. It provides tools for chatting with different LLM providers while maintaining conversation history.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • chat — Send a message to the current LLM provider
  • get_memory — Retrieve conversation history
  • clear_memory — Clear conversation history
  • use_provider — Switch between different LLM providers
  • use_model — Switch to a different model for the current provider
  • claude-3-haiku — Fastest response times, ideal for tasks like customer support and content moderation
  • claude-3-sonnet — Balanced performance for general-purpose use
  • claude-3-opus — Advanced model for complex reasoning and high-performance tasks
  • claude-3.5-haiku — Enhanced speed and cost-effectiveness
  • claude-3.5-sonnet — Superior performance with computer interaction capabilities
  • OpenAI — 'gpt-4o', 'gpt-4o-mini', 'gpt-4-turbo'
  • OpenRouter — Any model in 'provider/model' format (e.g., 'openai/gpt-4', 'anthropic/claude-2')

Credentials and setup notes

Configuration is passed through the environment: OPENAI_API_KEY, ANTHROPIC_API_KEY, OPENROUTER_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Memgpt.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the AI and media services options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Memgpt's toolset — chat, get_memory, clear_memory and 11 more — is a fair guide to whether it matches your workflow. It is maintained by Vic563; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
chatSend a message to the current LLM provider
get_memoryRetrieve conversation history
clear_memoryClear conversation history
use_providerSwitch between different LLM providers
use_modelSwitch to a different model for the current provider
claude-3-haikuFastest response times, ideal for tasks like customer support and content moderation
claude-3-sonnetBalanced performance for general-purpose use
claude-3-opusAdvanced model for complex reasoning and high-performance tasks
claude-3.5-haikuEnhanced speed and cost-effectiveness
claude-3.5-sonnetSuperior performance with computer interaction capabilities
OpenAI'gpt-4o', 'gpt-4o-mini', 'gpt-4-turbo'
OpenRouterAny model in 'provider/model' format (e.g., 'openai/gpt-4', 'anthropic/claude-2')
OllamaAny locally available model (e.g., 'llama2', 'codellama')
ToolsThe Tools tool exposed by this server.

Configuration

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
OPENROUTER_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Memgpt to chat.
  • Use Memgpt to get memory.
  • Use Memgpt to clear memory.

Frequently asked questions

It connects Memgpt to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (chat, get_memory, clear_memory, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Memgpt directly.