# Session Forge [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/420247jake/session-forge  
**GitHub Stars:** 1  
**npm Downloads (last month):** 259  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/session-forge

## Description
Persistent memory and session intelligence for AI coding assistants. Zero config.

## Tools
Capabilities this server exposes over MCP:

- **session_checkpoint** — Save current session state. Call this every 3-5 tool calls to protect against UI crashes. Required: task, intent, next_steps
- **session_restore** — Check for interrupted work from a previous session. Call this FIRST at the start of any session.
- **session_complete** — Mark the current session as complete. Call this when a task is finished.
- **profile_get** — Get the current user profile
- **profile_update** — Update user profile with preferences, notes, or project info. Call when learning something about the user.
- **journal_entry** — Record a session journal entry capturing the journey, not just the task. Call at END of meaningful sessions to preserve context.
- **journal_recall** — Retrieve recent session context and journeys. Call at START of sessions to remember the relationship.
- **decision_record** — Record a significant decision made during development. Helps future sessions understand why choices were made.
- **decision_search** — Search past decisions to understand why things are the way they are
- **dead_end_record** — Record a debugging dead end so we don't repeat it. Captures what was tried and why it failed.
- **dead_end_search** — Search past dead ends to avoid repeating mistakes
- **full_context_recall** — Get EVERYTHING - user profile, recent sessions, decisions, dead ends. Use when starting fresh to get full context.
- **data_manage** — Manage session-forge data. Actions: prune (remove entries older than N days), export (dump all data as JSON), clear (wipe a specific store), stats (show entry counts and file sizes).
- **data_list** — List stored entries in a data store. Returns numbered summaries for browsing. Use with data_delete to remove specific entries.
- **data_delete** — Delete a specific entry from a data store by its index from data_list. Returns the deleted entry for confirmation.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "session-forge": {
    "command": "npx",
    "args": ["-y","session-forge"],
    "env": {
      "SESSION_FORGE_DIR": "",
      "SESSION_FORGE_STALE_HOURS": ""
    }
  }
}
```

**Requires environment variables:** `SESSION_FORGE_DIR`, `SESSION_FORGE_STALE_HOURS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the Session Forge MCP server does

The Session Forge MCP server adds persistent session context to MCP-compatible coding assistants. It records information that is often lost when a conversation ends: unfinished work, architectural choices, debugging failures, user preferences, project notes, and summaries of the session. A later session can retrieve that information instead of reconstructing it from scratch.

The data remains on the local machine in JSON files. Separate stores hold the profile, journal, decisions, dead ends, and active or archived sessions. The default location is `~/.session-forge` on Linux and macOS, or `%APPDATA%\\session-forge` on Windows.

## How it works

Session Forge MCP server runs as a local stdio process started with `npx session-forge`. The assistant calls MCP tools to write and read structured records. A typical workflow starts with `full_context_recall` and `session_restore`, continues with checkpoints and records for important events, and ends with a journal entry followed by `session_complete`.

Checkpointing stores the task, intent, and next steps so interrupted work can be resumed. Sessions that remain inactive beyond the configured stale period are automatically archived. Search tools can find earlier decisions or failed approaches by keyword, while full context recall can optionally filter results by project.

## Setup and configuration

For Claude Code, add the server with:

```bash
claude mcp add session-forge -- npx session-forge
```

For clients such as Cursor or Windsurf, add an MCP entry using `npx` as the command and `-y`, `session-forge` as its arguments. No database, Docker container, or configuration file is needed for the default setup.

Two environment variables change runtime behavior:

- `SESSION_FORGE_DIR` sets a custom directory for the JSON stores.
- `SESSION_FORGE_STALE_HOURS` sets the number of inactive hours before a session is archived; the default is 24.

## Tools and capabilities

The Session Forge MCP server provides 15 tools across several functions:

- Session lifecycle: `session_checkpoint`, `session_restore`, and `session_complete`.
- Profile and journal: `profile_get`, `profile_update`, `journal_entry`, and `journal_recall`.
- Reasoning history: `decision_record`, `decision_search`, `dead_end_record`, and `dead_end_search`.
- Context retrieval: `full_context_recall` for the profile, journals, decisions, and dead ends.
- Data administration: `data_manage`, `data_list`, and `data_delete`.

`data_manage` can show store statistics, export all data as JSON, prune older entries, or clear a selected store. `data_list` displays numbered summaries and can filter results; `data_delete` removes an entry by its index from that listing. Decision and dead-end search tools accept a query and optional limit.

## Limitations and notes

Storage is local plain JSON rather than a hosted database or remote memory service. Data files include schema version fields for migration support. Session Forge is not affiliated with SessionForge LLC or sessionforge.dev, despite the similar name.

_Full upstream README: https://allmcps.com/mcp/session-forge/readme_

