Overview
MemGPT MCP Server is a TypeScript-based server that implements a memory system for large language models (LLMs), allowing 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's API keys. You can then interact with the server through its chat tools.
- Supports multiple LLM providers (OpenAI, Anthropic, OpenRouter, Ollama) - Tools for sending messages, retrieving conversation history, and clearing memory - Ability to switch between different models and providers - Unlimited memory retrieval option
- Engaging in conversations with LLMs while keeping track of context.
- Utilizing different models for specific tasks like customer support or content generation.
- 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": {
"vic563-memgpt-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-vic563-memgpt-mcp-server-mcp-mirror"
]
}
}
}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": {
"vic563-memgpt-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-vic563-memgpt-mcp-server-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"vic563-memgpt-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-vic563-memgpt-mcp-server-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"vic563-memgpt-mcp-server-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-vic563-memgpt-mcp-server-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"vic563-memgpt-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-vic563-memgpt-mcp-server-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"vic563-memgpt-mcp-server-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-vic563-memgpt-mcp-server-mcp-mirror"
]
}
}
}FAQ
Can I use multiple LLM providers?
Yes! MemGPT MCP Server supports multiple providers including OpenAI and Anthropic.
How do I clear my conversation history?
You can use the `clear_memory` tool to remove all stored memories.
Is there a limit to how much conversation history I can retrieve?
No, you can retrieve unlimited conversation history by using the `get_memory` tool with the limit set to null.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1029,"uuid":"d529ad42-3f6e-4b39-8df5-3c5f1b5611df","name":"Vic563_Memgpt-MCP-Server","title":"MemGPT MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-01-28T02:27:17.350Z","updated_at":"2025-02-23T07:19:44.361Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"memgpt,llm,memory-system","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/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"}]]}]