Session Forge logo

Session Forge

Local MCP memory for coding sessions, with checkpoints, decisions, dead ends, profiles, journals, and data controls.

Install Session Forge

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "session-forge": {
      "command": "npx",
      "args": [
        "-y",
        "session-forge"
      ],
      "env": {
        "SESSION_FORGE_DIR": "YOUR_VALUE_HERE",
        "SESSION_FORGE_STALE_HOURS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env SESSION_FORGE_DIR=YOUR_VALUE_HERE --env SESSION_FORGE_STALE_HOURS=YOUR_VALUE_HERE --transport stdio session-forge -- npx -y session-forge

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y session-forge

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Session Forge MCP server gives coding assistants persistent local memory across conversations. It stores session checkpoints, decisions, failed approaches, user profiles, and journal entries as JSON, then exposes tools to recall, search, update, and manage that data. Use it when an assistant needs crash recovery, project continuity, or a record of reasoning across sessions. It runs through npx with no database, Docker, or configuration files required.

Use cases

  • Resume interrupted coding work after a crash
  • Record architectural decisions and their reasoning
  • Search failed debugging approaches before repeating them
  • Recall project preferences and prior session context

Key features

  • Session checkpoints and crash recovery
  • Decision and dead-end search
  • Local profile and session journals
  • Full context recall with project filtering
  • JSON export, pruning, listing, and deletion
  • Local JSON storage with configurable paths

Tools15

What Session Forge lets your agent do. Expand a tool for its parameters.

Verified live~2.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

19/20 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · session-forge (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads259Package downloads in the last 30 days.
Last commit9mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed15Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Session Forge works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Session Forge

Session Forge is an MCP server that connects AI coding assistants to local persistent memory. Its main tools record and restore sessions, manage profiles and journals, log decisions and dead ends, recall full context, and administer stored JSON data. It runs locally through npx and supports MCP-compatible clients.

Install it by adding `npx session-forge` as an MCP server command. Claude Code uses `claude mcp add session-forge -- npx session-forge`; Cursor and Windsurf use an MCP settings entry with `npx` and arguments `-y`, `session-forge`.

Session Forge stores data locally as JSON files. It uses `~/.session-forge` on Linux and macOS and `%APPDATA%\session-forge` on Windows. Set `SESSION_FORGE_DIR` to use another location.

Yes, Session Forge works with Cursor through its MCP settings. Configure the server with `npx` as the command and `-y`, `session-forge` as the arguments. The README also names Claude Code and Windsurf as supported clients.

Use `session_restore` to check for interrupted work, then use `full_context_recall` to retrieve stored profile, journal, decision, and dead-end context. Earlier work must have been checkpointed with `session_checkpoint` for crash recovery.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSession Forge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/session-forge?style=directory)](https://allmcps.com/mcp/session-forge)
HTML Embed
<a href="https://allmcps.com/mcp/session-forge"><img src="https://allmcps.com/api/badge/session-forge?style=directory" alt="Session Forge on AllMCPs" /></a>