Skip to content
MCP server

lastwords

Kubernetes crash evidence for agents: heap histograms, logs and core dumps after OOM kills

Runs locally

lastwords is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Linux, Self-hosted
Runs
Locally
Version
0.1.6
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add lastwords -- docker run -i --rm ghcr.io/arvo-ai/lastwords:v0.1.6

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "lastwords": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/arvo-ai/lastwords:v0.1.6"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "lastwords": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/arvo-ai/lastwords:v0.1.6"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "lastwords": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/arvo-ai/lastwords:v0.1.6"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "lastwords": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/arvo-ai/lastwords:v0.1.6"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add lastwords -- docker run -i --rm ghcr.io/arvo-ai/lastwords:v0.1.6

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.lastwords]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/arvo-ai/lastwords:v0.1.6"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "lastwords": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/arvo-ai/lastwords:v0.1.6"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "lastwords": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/arvo-ai/lastwords:v0.1.6"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user lastwords docker -- run -i --rm ghcr.io/arvo-ai/lastwords:v0.1.6

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "lastwords": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/arvo-ai/lastwords:v0.1.6"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "lastwords": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/arvo-ai/lastwords:v0.1.6"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "lastwords": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/arvo-ai/lastwords:v0.1.6"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "lastwords": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/arvo-ai/lastwords:v0.1.6"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "lastwords": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/arvo-ai/lastwords:v0.1.6"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "lastwords": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/arvo-ai/lastwords:v0.1.6"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "lastwords": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/arvo-ai/lastwords:v0.1.6"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About lastwords

lastwords starts from a gap in Kubernetes debugging. By the time someone looks at a pod that died hours ago, the evidence is usually gone: an OOM kill leaves no heap dump, kubectl logs --previous keeps only one restart, events expire after an hour and core dumps typically go nowhere. This tool runs on every node and collects the evidence while the container is alive or just after it dies.

When a container nears its memory limit (90 percent, again at 97 percent, or earlier if memory is climbing fast) it records a memory breakdown and process list, plus a class histogram and thread dump for Java or a heap profile for Go. When a container is OOM-killed or crashes it saves the dead instance's logs, pod events, the crash site parsed from Go, Java or Python stack traces and, optionally, core dumps. Each capture comes with a plain-language summary file. Data stays on the node or goes to S3.

The MCP server is read-only and exposes four tools for listing captures, reading one, reading a file and checking a watchlist. It runs locally via kubectl-lastwords mcp, or in-cluster over HTTP behind an API token for agents such as HolmesGPT or kagent. Install is by Helm chart, and there is a kubectl lastwords plugin. Webhook and Slack notifications are available, and webhook deliveries can be signed.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 3 of 4 tools read data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

lastwords_list_capturesName suggests: reads
Lists captures.
lastwords_get_captureName suggests: reads
Reads one capture.
lastwords_read_fileName suggests: reads
Reads a file from a capture.
lastwords_watchlist
Shows the watchlist of containers near their limits.

What it does

Pre-kill snapshots
Captures memory breakdowns, Java histograms and Go heap profiles as a container nears its limit.
Crash evidence
Saves logs of the dead instance, events and parsed crash sites.
Core dump capture
Optional core dump collection, which needs a privileged agent.
Read-only MCP tools
Four tools list and read captures for an agent.
In-cluster HTTP mode
Agents inside the cluster can reach the tools behind an API token.
Notifications
Slack and signed webhook alerts, plus Kubernetes events and Prometheus metrics.

Good for

  • Find out why pods restarted overnight
  • Get a Java class histogram from a pod that was OOMKilled
  • Locate the line behind a Go nil-map crash
  • Collect core dumps from crashing containers
  • Let an in-cluster SRE agent read crash captures

Pricing

Open source

Free; installed from a Helm chart.

lastwords FAQ

How do I install lastwords?

With the Helm chart from oci://ghcr.io/arvo-ai/charts/lastwords, then optionally the kubectl lastwords plugin.

Does lastwords change anything in the cluster through MCP?

The four MCP tools are described as read-only.

Where is the data stored?

On the node, or uploaded to S3, GCS via interoperability, or MinIO if configured.

Are core dumps on by default?

No. They are disabled by default and need a privileged agent because they set the node's core pattern.

Is lastwords free?

Yes. lastwords is open source, so you can use and self-host it for free.

How do I add lastwords to Claude Code?

Run this command in your terminal: claude mcp add lastwords -- docker run -i --rm ghcr.io/arvo-ai/lastwords:v0.1.6

What are the best alternatives to lastwords?

The closest alternatives to lastwords are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers