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 Continuity MCP Serverload my-web-app project state so I can continue where I left off"
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 Continuity MCP Server
A Model Context Protocol (MCP) server that provides persistent memory and conversation continuity for Claude Desktop and Claude Code. Never lose your project context again when threads hit token limits.
Features
π Automatic State Persistence - Saves project context and conversation state
β‘ Seamless Restoration - Instantly restore full context when starting new threads
π Privacy First - All data stored locally in
~/.claude_statesπ Multi-Project Support - Manage multiple concurrent projects
ποΈ Smart Organization - Automatic backup rotation and state management
π― Zero Configuration - Works immediately after setup
Related MCP server: Claude TypeScript MCP Servers
Installation
1. Clone or Download
# Clone to your home directory
cd ~
git clone https://github.com/yourusername/claude-continuity.git
# Or download and extract the files2. Install Dependencies
cd ~/claude-continuity
pip3 install mcp3. Configure Claude Desktop
Edit your Claude Desktop configuration:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add this configuration:
{
"mcpServers": {
"claude-continuity": {
"command": "/opt/homebrew/bin/python3.11",
"args": ["/Users/yourusername/claude-continuity/server.py"],
"env": {}
}
}
}4. Configure Claude Code
Run this command to add globally:
claude mcp add --scope user claude-continuity python3 ~/claude-continuity/server.pyUsage
Available Tools
Tool | Description |
| Save current project context and state |
| Restore saved project context |
| View all tracked projects |
| Get quick overview without loading full state |
| Remove project (with safety confirmation) |
| Update just context/metadata |
Example Usage
Save Project State:
save_project_state:
project_name="my-web-app"
state={current work and context}
summary="Setting up authentication system"
context={files_modified, issues, next_steps}Load Project State:
load_project_state: project_name="my-web-app"List All Projects:
list_active_projectsData Storage
All project states are stored locally at:
~/.claude_states/
βββ project-name-1/
β βββ state.json
β βββ summary.txt
β βββ state.backup.*.json
βββ project-name-2/
βββ state.json
βββ summary.txt
βββ state.backup.*.jsonState Structure
Each saved state includes:
{
"project_name": "my-project",
"state": {
// Your custom state object
},
"summary": "Human-readable summary",
"context": {
"files_modified": [],
"issues": [],
"next_steps": [],
"dependencies": []
},
"updated_at": "2025-08-05T22:48:00Z",
"version": 1
}Troubleshooting
Server Not Connecting
Check Python installation:
python3 --version
# Should be 3.8 or higherTest server directly:
python3 ~/claude-continuity/server.py
# Should show: "Claude Continuity Server initialized..."Check Claude Desktop logs for errors
Permission Issues
chmod +x ~/claude-continuity/server.pyPython Path Issues
Update config to use full Python path:
{
"command": "/usr/bin/python3",
"args": ["/Users/yourusername/claude-continuity/server.py"]
}Requirements
Python 3.8+
MCP SDK (
pip install mcp)Claude Desktop or Claude Code
Project Structure
claude-continuity/
βββ server.py # Main MCP server
βββ requirements.txt # Python dependencies
βββ README.md # This file
βββ LICENSE # MIT License
βββ .gitignore # Git ignore fileHow It Works
Automatic Detection: Server monitors conversation for project-related activities
Smart Saving: Automatically creates backups before overwriting states
Context Preservation: Maintains files, decisions, issues, and next steps
Seamless Recovery: Load entire project context with one command
Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch
Test your changes
Submit a pull request
License
MIT License - see LICENSE file for details
Author
Created for the Claude community to solve the context loss problem once and for all.
Support
For issues or questions:
Open an issue on GitHub
Check existing issues for solutions
Before: π« Hit token limit β Lose all context β Re-explain everything
After: π Hit token limit β Start new thread β load_project_state β Continue seamlessly