# lastwords

> lastwords is an open-source MCP server for developer tools. Kubernetes crash evidence for agents: heap histograms, logs and core dumps after OOM kills. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, Self-hosted
- **Repository:** https://github.com/arvo-ai/lastwords
- **MCP Registry name:** io.github.Arvo-AI/lastwords
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (~/.copilot/mcp-config.json)

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

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

### Devin Desktop (~/.config/devin/mcp_config.json)

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

### Cline (cline_mcp_settings.json)

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

### Zed (Zed settings.json)

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

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

### Kiro (~/.kiro/settings/mcp.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_captures` (name suggests: reads): Lists captures.
- `lastwords_get_capture` (name suggests: reads): Reads one capture.
- `lastwords_read_file` (name suggests: reads): Reads a file from a capture.
- `lastwords_watchlist`: Shows the watchlist of containers near their limits.

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/lastwords
