Claude Memory MCP
Click on "Install 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 MCPget 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 |
π οΈ 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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/adeeljames/claude-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server