Claude Memory MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Claude Memory MCP get my context"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ Claude Memory MCP
A lightweight Model Context Protocol (MCP) server that gives Claude Desktop persistent memory across conversations. It stores, summarizes, and retrieves conversation history so Claude always remembers your context.
β¨ Features
Feature | Description |
Persistent Memory | Saves every conversation turn to a local |
Auto-Summarization | Automatically compresses history after 10 turns to keep context lean |
Fast Context Loading | Returns summary + last 3 turns on demand β no bloat |
One-command Setup | Powered by |
Zero Latency | Runs locally over stdio β no network calls |
Related MCP server: mcp-assist-memory
π οΈ Tools Exposed
Tool | Description |
| Load compressed memory (summary + last 3 turns). Call at the start of every conversation. |
| Save one conversation turn. Call after every AI response. |
| Wipe all stored memory and start fresh. |
π Quick Start
Prerequisites
Python 3.13+
uvinstalled
1. Clone & Install
git clone https://github.com/adeeljames/claude-memory-mcp.git
cd claude-memory-mcp
uv sync2. Run the MCP Server (for testing)
uv run python server.py3. Add to Claude Desktop
Open your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the following under mcpServers:
{
"mcpServers": {
"memory-mcp": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/claude-mcp-optimize",
"python",
"server.py"
]
}
}
}Replace
/absolute/path/to/claude-mcp-optimizewith the actual path on your machine.
Restart Claude Desktop β the memory-mcp server will appear in your tools list.
π Project Structure
claude-memory-mcp/
βββ server.py # MCP server β all tools defined here
βββ memory.json # Runtime memory file (auto-created, gitignored)
βββ pyproject.toml # uv project config & dependencies
βββ uv.lock # Locked dependency graph
βββ README.md # You are hereβοΈ How It Works
Claude Desktop ββstdioβββΊ server.py βββΊ memory.json
β
ββββββββββββββββββ
β
get_context() β returns summary + last 3 turns
save_turn() β appends to history, triggers summary at 10 turns
clear_memory() β resets everythingπ§ Dependencies
Package | Purpose |
| Model Context Protocol SDK |
All dependencies are managed by uv and pinned in uv.lock.
π License
MIT β free to use, modify, and share.
Made with love by @muhammadadeelai
Available Tools
3 toolsclear_memoryA
Wipe all stored memory and start fresh.
Inputs: no named parameters.
get_contextA
Load compressed memory. Returns summary + last 3 turns only. Call this at the START of every conversation.
Inputs: no named parameters.
save_turnA
Save one conversation turn to memory. Call this AFTER every response.
Inputs: user_msg (required), ai_response (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 3 tools
Each tool has a distinct, non-overlapping purpose: clearing all memory, retrieving context, and saving a turn. No ambiguity.
All tool names follow a clear verb_noun pattern with underscores: clear_memory, get_context, save_turn. Fully consistent.
With 3 tools, the set is minimal but appropriate for a focused memory management server, covering essential operations. Slightly thin but not problematic.
Covers basic lifecycle: create (save_turn), read (get_context), delete all (clear_memory). Missing update or selective delete functionality, which may be needed for finer control.
Maintenance
Related MCP Connectors
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives Claude persistent memory by storing conversation context, entities, and enabling semantic search across sessions.34 npm1MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that provides a shared memory layer for Claude across claude.ai, Claude Code CLI, and Desktop, storing revisioned memory entries, session timelines, handoffs, and uploaded artifacts in SQLite.-
- AlicenseBqualityCmaintenanceA persistent memory MCP server for Claude Code that automatically saves conversations and retrieves relevant history across sessions to provide context.1767 PyPI10MIT
- AlicenseAqualityDmaintenanceA zero-dependency MCP server for cross-session memory recall in Claude Code. Provides lexical search, listing, and retrieval of past session memories to avoid re-explaining context.310 npmMIT