# MCP Debug Recorder

**Category:** 🗄️ Databases  
**Repository:** https://github.com/oaslananka/debug-recorder-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 242  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-debug-recorder

## Description
Record debug sessions, commands, failed attempts, and successful fixes in local SQLite storage.

## Tools
Capabilities this server exposes over MCP:

- **start_debug_session** — Start tracking a new issue or incident.
- **add_fix** — Record a failed or successful fix attempt.
- **record_command** — Save a command, output, exit code, and session link.
- **close_session** — Mark a session as resolved or abandoned.
- **update_session** — Edit title, description, or tags.
- **delete_session** — Permanently delete a session with explicit confirmation.
- **search_sessions** — Search history with FTS5, fuzzy reranking, pagination, related groups, and optional Markdown export.
- **save_search_preset** — Store a reusable query, filters, and limit.
- **list_search_presets** — List saved search presets.
- **remove_search_preset** — Remove a saved search preset by name.
- **find_similar_errors** — Ask whether a similar error has appeared before.
- **get_session** — Fetch full details, fixes, and commands.
- **get_session_context** — Get an AI-friendly session summary.
- **list_sessions** — Browse sessions with filters.
- **get_stats** — Summarize debug history.
- **get_diagnostics** — Return a redacted operational diagnostics snapshot.
- **export_sessions** — Export a full JSON backup or a lightweight summary inventory.
- **import_sessions** — Import a validated export payload.

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

```json
"mcpServers": {
  "mcp-debug-recorder": {
    "command": "npx",
    "args": ["-y","debug-recorder-mcp"],
    "env": {
      "DEBUG_RECORDER_DB": "",
      "HOST": "",
      "DEBUG_RECORDER_REMOTE_HTTP": "",
      "DEBUG_RECORDER_HTTP_TOKEN": "",
      "DEBUG_RECORDER_ALLOWED_HOSTS": ""
    }
  }
}
```

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

## Documentation

## What MCP Debug Recorder MCP server does

The MCP Debug Recorder MCP server gives MCP clients a structured place to retain debugging history. Each session can represent an issue or incident and can include its title, description, tags, commands, command output, exit codes, attempted fixes, and final status. Sessions can be marked resolved or abandoned, edited, reviewed, or permanently deleted with explicit confirmation.

Data is stored in a local SQLite database rather than an external hosted service. The default database location is `~/.debug-recorder-mcp/sessions.db`, while a custom path can be selected with `DEBUG_RECORDER_DB`. This makes the server suitable for retaining troubleshooting context on a developer workstation or within a local MCP setup.

## How it works

A typical workflow starts with `start_debug_session`, followed by `record_command` for terminal activity and `add_fix` for each attempted remedy. `update_session` can revise the session metadata during investigation, and `close_session` records whether the issue was resolved or abandoned. `get_session` and `get_session_context` provide detailed or AI-oriented views of the stored record.

For retrieval, `search_sessions` combines SQLite FTS5 with fuzzy reranking. It supports pagination, related-session grouping, and optional Markdown output. `find_similar_errors` is intended for checking whether a comparable error has appeared previously. Repeated queries can be saved and managed with `save_search_preset`, `list_search_presets`, and `remove_search_preset`.

The MCP Debug Recorder MCP server also provides `get_stats` for aggregate history, `get_diagnostics` for a redacted operational snapshot, and backup operations through `export_sessions` and `import_sessions`. JSON exports contain sessions, fixes, and commands; summary exports provide abbreviated rows and statistics but are not restore payloads.

## Setup and configuration

The package requires Node.js 22 LTS or 24 LTS and npm 10 or newer. The basic launch command is:

```bash
npx debug-recorder-mcp
```

Desktop MCP clients can start it with the `npx` command and `debug-recorder-mcp` argument. VS Code uses a `.vscode/mcp.json` entry with a stdio server definition. The repository also provides an HTTP start command:

```bash
npm run start:http
```

HTTP mode provides `GET /health`, `GET /version`, and the MCP endpoint at `POST /mcp`. By default, it binds to `127.0.0.1`. Deliberate non-loopback exposure requires `HOST`, `DEBUG_RECORDER_REMOTE_HTTP`, `DEBUG_RECORDER_HTTP_TOKEN`, and `DEBUG_RECORDER_ALLOWED_HOSTS` to be configured together as described by the project.

## Tools and capabilities

The available tools cover the full recording lifecycle:

- Create, edit, close, inspect, list, and delete debug sessions.
- Store commands, output, exit codes, and fix attempts.
- Search history with full-text and fuzzy matching.
- Find related errors and retrieve session context.
- Save, list, and remove reusable search presets.
- Review statistics and redacted diagnostics.
- Export full JSON backups or summary inventories, then import validated exports.

## Limitations and notes

The MCP Debug Recorder MCP server is designed around local SQLite storage and does not require an external database or hosted service. HTTP mode has additional host, origin, token, and request-size controls; exposing it beyond loopback should be treated as an explicit configuration choice. `delete_session` is destructive and requires confirmation. Summary exports are for inventory and review, not restoration.

Review the project’s security documentation before deciding how to record sensitive command output, logs, or incident details.

_Full upstream README: https://allmcps.com/mcp/mcp-debug-recorder/readme_

