Session Memory
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., "@Session Memorywhat was I working on in this project?"
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.
Session Memory
Persistent local memory for AI coding sessions.
Start work in Windsurf. Continue later in Cursor, Codex, or Claude without manually explaining what happened in the previous conversation.
Session Memory stores your project context locally on your machine and gives supported AI agents the information they need to continue where another session stopped.
Why Session Memory?
AI conversations normally lose context when you:
start a new chat
switch from Windsurf to Codex
switch from Cursor to Claude
restart your IDE
return to a project later
Session Memory solves this by keeping important project state outside the AI conversation.
A fresh AI session can retrieve:
what you are building
current implementation state
important decisions
files changed
tests and results
bugs
open TODOs
blockers
next recommended action
Related MCP server: ai-cortex
How It Works
AI Session A
↓
important work recorded
↓
Session Memory
↓
local storage
↓
AI Session B
↓
get_context()
↓
continue where Session A stoppedSession Memory uses four main concepts:
Events — important things that happened.
Checkpoints — the current save point of the work.
Memories — important knowledge or decisions that should survive across sessions.
Context — the compact information a new AI needs to continue.
Privacy
Session Memory is local-first.
Your memory is stored on your machine under:
~/.session-memory/It is not automatically shared with teammates.
Each engineer using Session Memory has their own independent local memory.
Requirements
Python 3.10+
macOS, Linux, or Windows
A supported AI client such as Windsurf, Cursor, Codex, or Claude
Quick Start
1. Install Session Memory
macOS (recommended):
# Install pipx if you don't have it
brew install pipx
pipx ensurepath
# Install Session Memory
pipx install session-memoryLinux / virtualenv:
pip install session-memoryWindows:
# Install with pip
pip install session-memory
# If not in PATH, add Python Scripts directory to your PATH
# Then restart your terminalVerify:
session-memory --version2. Configure Your AI Clients
Run once on your machine:
session-memory installSession Memory detects supported clients and configures them automatically.
For example:
Session Memory Setup
✓ Windsurf detected
✓ Cursor detected
✓ Codex detected
✓ Session Memory MCP configuredYou should not normally need to manually edit MCP configuration files.
3. Initialize a Repository
Go to a project where you want persistent AI context:
cd ~/projects/my-projectThen run:
session-memory initThis configures repository-level AI instructions such as AGENTS.md.
It does not place your session history inside the repository.
Your actual memory remains under:
~/.session-memory/4. Verify Everything
Run:
session-memory doctorExample:
Session Memory Doctor
✓ Runtime
✓ MCP server
✓ Local storage
✓ Windsurf configured
✓ Cursor configured
✓ Project initialized
READY5. Work Normally
Open Windsurf, Cursor, Codex, or another configured client.
You do not need to say:
"Start Session Memory."
"Save this conversation."
"Load my old memory."
Just work normally.
For example:
Continue implementing authentication.
The agent automatically uses Session Memory to:
start/resume session
↓
load previous context
↓
continue work
↓
record important events
↓
checkpoint progressExample
Day 1 — Windsurf
You say:
Implement OAuth login.
During the session the agent records:
Decision:
Use PKCE.
File:
src/auth/service.py
Test:
17 passed, 2 failed.
Bug:
Refresh-token expiry handling fails.
TODO:
Fix token rotation.Day 2 — Codex
Open the same repository and start a fresh Codex conversation.
Say:
Continue working on this project.
Codex retrieves:
Goal:
Implement OAuth login
Current State:
OAuth login works.
Refresh-token rotation is incomplete.
Decision:
Use PKCE.
Important File:
src/auth/service.py
Known Bug:
Refresh-token expiry handling fails.
Tests:
17 passed, 2 failed.
Open Task:
Fix token rotation.
Next Action:
Fix refresh-token expiry handling.You do not need to explain yesterday's conversation.
Where Is the Data Stored?
Session Memory stores data locally:
~/.session-memory/
└── projects/
└── <project-id>/
├── project.json
├── CURRENT.md
├── memories/
└── sessions/
└── <session-id>/
├── session.json
├── events.jsonl
├── checkpoints/
└── artifacts/Your source repository only needs the small AI instruction file such as:
AGENTS.mdSession history itself is not committed to the repository.
Main Commands
session-memory installConfigure supported AI clients on this machine.
session-memory initEnable Session Memory instructions for the current repository.
session-memory doctorVerify installation and configuration.
session-memory statusShow current project/session status.
session-memory uninstallRemove Session Memory configuration from AI clients without deleting your memory by default.
MCP Workflow
Agents normally use these tools automatically:
start_sessionget_contextappend_eventcheckpoint_sessionresolve_todosearch_historysearch_memoryend_session
Users normally do not need to call these manually.
What Gets Recorded?
Session Memory focuses on information useful for future continuation:
important decisions
significant file changes
commands and test results
bugs and errors
TODOs
blockers
discoveries
checkpoints
It does not attempt to store hidden model reasoning.
Agent-Assisted Capture
Session Memory does not magically observe everything happening inside an AI client.
The configured AI agent calls Session Memory tools when important work occurs.
Repository instructions such as AGENTS.md guide supported agents to do this automatically.
Cross-AI Continuity
The intended workflow is:
Windsurf
↓
Session Memory
↓
Codex
↓
Session Memory
↓
Cursor
↓
Session Memory
↓
ClaudeAll clients on the same machine can use the same local project memory.
Local-Only Team Usage
Multiple engineers can install Session Memory.
Each engineer gets their own independent storage:
Engineer A
→ ~/.session-memory/
Engineer B
→ ~/.session-memory/Their session data is not automatically exchanged.
Troubleshooting
Run:
session-memory doctorFor more help see:
Important Principle
Session Memory is not a transcript database.
Its goal is simple:
A fresh AI should understand enough of the previous work to continue correctly without the user re-explaining the project.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceProvides AI coding assistants with persistent project memory to retain architectural decisions, code patterns, and domain knowledge across sessions. It stores data locally in a SQLite database, allowing agents to remember, recall, and manage project-specific context using full-text search.8Apache 2.0
- Alicense-qualityBmaintenanceProvides durable project context for coding agents, including project maps, session history, and explicit memories, all stored locally.746MIT
- Alicense-qualityAmaintenanceProvides persistent memory for AI coding agents across sessions by saving and loading session context like tasks, decisions, and blockers.477MIT
- Alicense-qualityDmaintenanceProvides persistent memory for AI coding agents through the Model Context Protocol, enabling them to store and retrieve project knowledge across sessions.57MIT
Related MCP Connectors
Persistent memory layer that saves and recalls your project context and preferences.
Persistent memory for AI agents. Search, store, and recall across sessions.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Bhavanachowdary18/Session-Memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server