MemGPT MCP Server logo

MemGPT MCP Server

by MCP-Mirror

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.

View on GitHub

Last updated: N/A

What is MemGPT MCP Server?

The MemGPT MCP Server is a TypeScript-based server that implements a memory system for Large Language Models (LLMs). It allows users to chat with different LLM providers (OpenAI, Anthropic, OpenRouter, Ollama) while maintaining a conversation history.

How to use MemGPT MCP Server?

To use the server, you need to install the dependencies using npm install, build the server with npm run build, and configure it within your Claude Desktop application by adding the server configuration to the claude_desktop_config.json file. You'll also need to set the appropriate API keys as environment variables.

Key features of MemGPT MCP Server

  • Supports multiple LLM providers (OpenAI, Anthropic, OpenRouter, Ollama)

  • Maintains conversation history (memory)

  • Provides tools for chatting, retrieving memory, clearing memory, and switching providers/models

  • Supports provider-specific models, including Claude 3 and 3.5 series, GPT-4o, and local Ollama models

Use cases of MemGPT MCP Server

  • Building chatbots with persistent memory

  • Creating conversational AI applications that can remember past interactions

  • Experimenting with different LLM providers and models within a single application

  • Integrating LLMs into existing workflows with memory capabilities

FAQ from MemGPT MCP Server

How do I switch between LLM providers?

Use the use_provider tool to switch between OpenAI, Anthropic, OpenRouter, and Ollama. The selection is persisted.

How do I retrieve conversation history?

Use the get_memory tool. You can specify a limit parameter to retrieve a specific number of memories, or use limit: null for unlimited retrieval.

How do I clear the conversation history?

Use the clear_memory tool to remove all stored memories.

What environment variables do I need to set?

You need to set OPENAI_API_KEY, ANTHROPIC_API_KEY, and OPENROUTER_API_KEY with your respective API keys.

How do I debug the MCP server?

Use the MCP Inspector by running npm run inspector. It provides a URL to access debugging tools in your browser.