Skip to main content
Glama
F4 Crash Doctor

F4 Crash Doctor

F4 Crash Doctor

Advisory-only Fallout 4 crash diagnosis for Claude Desktop, Claude Code, or any MCP client.

When your modded Fallout 4 crashes, this tool reads the crash log, your load order, and your game setup, then explains the likely cause and fix in plain English — right inside your Claude conversation.

It is an MCP server — MCP (Model Context Protocol) is the standard way to give an AI assistant like Claude safe, well-defined abilities on your PC. This one gives Claude the ability to read your Fallout 4 crash information, nothing more.

Safety promise

This tool never writes, moves, deletes, or modifies any file. Ever.

It has zero tools capable of changing anything — every tool it exposes is read-only. It only looks at your crash logs, your plugin list, and your game folder, then tells you what it found.

Because it never touches your install, it works safely alongside Vortex or Mod Organizer 2. It even detects which mod manager you use, so the advice you get is phrased for your setup (e.g. "disable this in Vortex" vs "untick it in MO2's left pane").

Related MCP server: windows-debug-mcp

What you need

  • Windows 10 or 11

  • Fallout 4 (Steam) with:

    • F4SE (Fallout 4 Script Extender — a loader many mods require, run via f4se_loader.exe)

    • Buffout 4 — the mod that actually writes crash logs when the game crashes. Without it there is nothing to diagnose. Get it here: https://www.nexusmods.com/fallout4/mods/47359

  • uv — a small free tool that runs Python programs without any setup on your part. One-line install in PowerShell:

    winget install astral-sh.uv

    or, if winget isn't available:

    irm https://astral.sh/uv/install.ps1 | iex

You do not need to install Python yourself — uv handles it.

Install

Easiest: the one-file bundle (Claude Desktop)

Download f4-crash-doctor.mcpb from the latest release — on the release page, click the small Assets row under the notes to expand it; the .mcpb file is listed there (not in the release text itself). Then in Claude Desktop open Settings → Extensions → Advanced settings and click Install Extension… — pick the downloaded file. (Drag-and-dropping the file onto the Extensions page works on some machines, but Windows refuses the drop with a 🚫 cursor when it doesn't know the .mcpb file type — the Install Extension… button works everywhere.) Claude Desktop asks two optional questions (game folder — leave empty to auto-detect; Nexus API key — skip unless you want mod lookups), and you're done. Skip straight to First use below.

Updating from an older version: don't install over the top — Windows locks the running version's files and the install fails (EBUSY). Instead: Settings → Extensions → remove the old F4 Crash Doctor → Install Extension… with the new file → then fully restart Claude Desktop (quit from the system-tray icon, not just the window) so the new server starts. Start a new conversation after updating — an old chat will keep reasoning from the old version's answers.

Manual install (Claude Code, other MCP clients, or if you prefer a terminal)

  1. Download or clone this repository somewhere permanent, e.g. C:\Tools\f4-crash-doctor.

  2. Open a terminal (PowerShell) in that folder.

  3. Run:

    uv sync

    This downloads the few libraries the tool needs. It takes a few seconds and only needs to be done once.

Hook it up to Claude Desktop

  1. Open your Claude Desktop config file. It lives at:

    %APPDATA%\Claude\claude_desktop_config.json

    (Paste that path into the File Explorer address bar. If the file doesn't exist, create it.)

  2. Add this block (or merge f4-crash-doctor into an existing mcpServers section):

    {
      "mcpServers": {
        "f4-crash-doctor": {
          "command": "uv",
          "args": ["run", "--directory", "C:\\path\\to\\f4-crash-doctor", "f4-crash-doctor"]
        }
      }
    }

    Replace C:\\path\\to\\f4-crash-doctor with the real path to this folder, keeping the double backslashes (e.g. C:\\Tools\\f4-crash-doctor).

    If the server never shows up in Claude (the most common setup hiccup): Claude Desktop may not find uv right after you install it, because the updated PATH hasn't reached Claude yet. The reliable fix is to use the full path to uv.exe as the command instead of just "uv":

    "command": "C:\\Users\\<your-username>\\.local\\bin\\uv.exe"

    (That's where both installers put it. To confirm, run where.exe uv in PowerShell.) Alternatively, sign out of Windows and back in — or reboot — so the new PATH reaches every program, and keep "command": "uv".

  3. Restart Claude Desktop (fully quit from the system tray, then reopen).

Hook it up to Claude Code

One command:

claude mcp add f4-crash-doctor -- uv run --directory C:\path\to\f4-crash-doctor f4-crash-doctor

Again, replace the path with the real location of this folder.

First use

After your next crash, just ask:

"Diagnose my last Fallout 4 crash."

Claude should call scan_game_environment and diagnose_crash and walk you through what happened and what to do about it.

For a guided, step-by-step diagnosis workflow, use the built-in prompt diagnose-fallout4-crash (in Claude Desktop it appears in the prompts/attachments menu once the server is connected).

Optional: Nexus Mods lookups

Two tools (lookup_mod and check_nexus_auth) can fetch mod info from Nexus Mods, which needs a free personal API key:

  1. Get your key from nexusmods.com → your avatar → Settings → API Keys.

  2. Provide it one of two ways:

    • Create a file named .env in the repository folder containing:

      NEXUS_API_KEY=your-key-here
    • Or add it to the Claude Desktop JSON block:

      "f4-crash-doctor": {
        "command": "uv",
        "args": ["run", "--directory", "C:\\path\\to\\f4-crash-doctor", "f4-crash-doctor"],
        "env": { "NEXUS_API_KEY": "your-key-here" }
      }

Everything else works without a key — only the two Nexus tools need it.

The tools (all read-only)

Tool

What it does

list_crash_logs

Lists your Buffout 4 crash logs, newest first

get_crash_log

Reads and parses one crash log (newest by default)

get_load_order

Reads your plugin load order and cross-checks it against your Data folder

scan_game_environment

Checks game version, F4SE, Buffout 4, Address Library, and which mod manager you use

diagnose_crash

The full pipeline: parses the log, scans your setup, and matches known crash signatures

lookup_mod

Looks up a mod on Nexus Mods (needs API key)

check_nexus_auth

Confirms your Nexus API key works (needs API key)

Troubleshooting

  • Dragging the .mcpb onto Extensions shows a 🚫 no-drop cursor — your Windows has no .mcpb file association, so the drop (and double-clicking the file) has nowhere to go. Use Settings → Extensions → Advanced settings → Install Extension… instead — it always works.

  • The server doesn't appear in Claude / never connects — almost always Claude Desktop failing to find uv. Use the full path to uv.exe as the "command" (see the note in the install section above: usually C:\\Users\\<your-username>\\.local\\bin\\uv.exe), or sign out of Windows and back in so the freshly installed uv is on every program's PATH. Also double-check the config file is valid JSON (a missing comma is enough to break it) and that you fully quit Claude Desktop from the system tray before reopening.

  • "No crash logs found" — Buffout 4 hasn't logged a crash yet. The folder Documents\My Games\Fallout4\F4SE\Crash Logs is only created the first time the game actually crashes with Buffout 4 installed. If the game has crashed but there's still no log, double-check Buffout 4 is installed and loading.

  • OneDrive moved my Documents folder — handled automatically; the tool asks Windows where your real Documents folder is. If it still looks in the wrong place, set the environment variable F4_DOCS_DIR to your Documents path (the one containing My Games).

  • Game installed somewhere unusual — the tool finds Steam libraries automatically, but if your Fallout 4 lives somewhere it can't find, set F4_GAME_ROOT to the folder containing Fallout4.exe.

For developers

uv sync          # install dependencies (note: needs src/f4_crash_doctor present; harmless to re-run)
uv run pytest    # run the test suite

Source layout: src/f4_crash_doctor/ (package), tests/ (pytest), src/f4_crash_doctor/data/ (signature knowledge pack, calibration profile, prompt kit — data, not code), packaging/ (MCPB bundle build — uv run python packaging/build_mcpb.py).

Available Tools

7 tools
check_nexus_authA

Verify the Nexus API key works and report account status.

Returns the account name, premium/supporter flags, and user id. Use this to troubleshoot lookup_mod failures. NEXUS_API_KEY is optional — only the two Nexus lookup tools need it.

Inputs: no named parameters.

diagnose_crashA

One-shot crash diagnosis: parse log + scan environment + match signatures.

Runs the full advisory pipeline: parses the given crash log (or the newest one when path is omitted), scans the game environment, reads the live load order, and matches everything against the bundled crash signature knowledge pack. Returns a compact log summary, ranked findings (severity then confidence, each with cause, suggested user fix, and the matched evidence lines to verify against), plus the full environment and load-order dicts. Findings are ADVISORY ONLY — this server never changes any file; fixes are actions for the user to take themselves.

Inputs: path.

get_crash_logA

Parse a Buffout 4 crash log into structured sections.

With no path, parses the NEWEST crash log found in the standard folders; pass an absolute path (e.g. from list_crash_logs) to parse a specific one. Explicit paths must be crash logs: either inside the standard crash-log folders or named crash-*.log — anything else is refused with an error. Returns the exception (type, address, faulting module), probable call stack, F4SE plugin list, plugin load order as logged, modules, settings, and any parse warnings. The raw STACK dump is truncated to 50 lines to keep responses small. Returns {"error": "no crash logs found", "searched_dirs": [...]} when there is nothing to parse.

Inputs: path.

get_load_orderA

Read the live Fallout 4 load order and cross-check it against Data.

Parses %LOCALAPPDATA%\Fallout4\Plugins.txt ('*' prefix = enabled) and lists the .esm/.esp/.esl files actually present in the game's Data folder. Reports both mismatch directions: enabled plugins whose file is missing from Data (a classic missing-master crash cause) and files in Data that are not in the load order. Implicitly loaded plugins (Fallout4.esm, official DLC, Creation Club content) are never listed in Plugins.txt and are excluded from the mismatch lists. When Mod Organizer 2 manages the game, the on-disk Plugins.txt is NOT the real load order (MO2 virtualizes it): plugins_txt_reliable is false, the cross-check is skipped, and a warning explains why. Read-only.

Inputs: no named parameters.

list_crash_logsA

List Buffout 4 crash logs on this machine, newest first.

Searches the standard Fallout 4 crash-log folders under the user's Documents directory (override with the F4_DOCS_DIR environment variable). Returns up to limit entries with absolute path, last-modified timestamp (ISO 8601) and size in KB, plus the directories that were searched. Read-only: nothing is opened or modified.

Inputs: limit.

lookup_modA

Look up a mod on Nexus Mods (read-only; requires NEXUS_API_KEY).

Accepts a Nexus URL (https://www.nexusmods.com/fallout4/mods/47359) or 'game/mod_id' (e.g. 'fallout4/47359'). Returns mod metadata (name, version, author, summary) and the available files with versions and upload dates — useful for checking whether a suspect mod has a newer version or a compatibility patch. Never downloads anything. Without NEXUS_API_KEY this returns an error explaining that mod lookups are optional; every other tool still works.

Inputs: url_or_id (required).

scan_game_environmentA

Scan the installed Fallout 4 for versions, F4SE health, and mod managers.

Discovers the game root (F4_GAME_ROOT env var, known locations, then all Steam libraries), then reports: game exe version, F4SE loader/DLL version, Address Library presence and whether it matches the game version, Buffout 4 variant + version, a crash_logging report (which DLLs write crash logs; a recognized_bundle means those DLLs ship together as ONE mod — e.g. Buffout 4 AE + CrashLoggerAE — and are NOT rival loggers; trust its notes over pattern-matched folklore), all F4SE plugin DLLs, BA2 archive count, crash-log folders, and which mod manager is in use (MO2 / Vortex / manual / unknown). Call this FIRST in any diagnosis session — version mismatches here explain many crashes before the log is even read. Read-only.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.7/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: listing logs, parsing logs, reading load order, scanning environment, running combined diagnosis, looking up mods, and checking auth. No two tools overlap in function.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (list_crash_logs, get_crash_log, get_load_order, scan_game_environment, diagnose_crash, lookup_mod, check_nexus_auth), all lowercase with underscores.

    Tool Count5/5

    Seven tools is well-scoped for a crash diagnosis server: the core operations (list, parse, scan, diagnose) plus two optional Nexus helpers and one auth check. No superfluous tools.

    Completeness5/5

    The tool surface covers the full diagnosis workflow: discovering logs, parsing them, checking the environment and load order, and combining everything into ranked findings. The optional mod lookup and auth check fill the remaining practical need without dead ends.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An external MCP server for diagnosing Minecraft servers via backup analysis, local runtime, or Docker runtime, offering tools for plugin inspection, log analysis, configuration linting, and performance diagnostics.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Read-only MCP server for diagnosing Windows crashes, stability, and gaming performance by reading event logs, crash dumps, hardware inventory, performance counters, and registry settings.
      35
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Evidence-first MCP server for diagnosing problems with hooks, plugins, skills and configuration, returning ranked probable causes and reviewable fixes without modifying the workspace.
      10
      MIT