# LastPing

> LastPing is a freemium MCP server for developer tools. Monitoring for AI agents, cron jobs and CI that alerts when a run fails or goes quiet. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Web, API, CLI, macOS, Linux
- **Website:** https://lastping.dev/agents/
- **Repository:** https://github.com/lastping-dev/lastping-app
- **MCP Registry name:** dev.lastping/lastping
- **Categories:** developer tools, cloud and infrastructure
- **Listing updated:** 2026-11-16

## About

LastPing works by absence: a job that is broken often cannot report an error, but it can fail to check in, and that missing signal is what triggers an alert. The MCP server lets an agent register a monitor for itself in one conversation, using create_monitor and then get_ping_instructions to learn how to report.

The site lists eight failure classes: silent death, hung runs, stalled runs, explicit failures, runs blocked on a human, scheduled runs that stop firing, a success that did nothing, and runaway spend. The last two check the ping body against a rule such as a substring, regex or a cost ceiling over a trailing window of up to seven days. With declare_run_expectations the agent commits to its success criteria before seeing the outcome.

On failure an incident opens, and the next run can call list_open_incidents to read what broke and add_incident_note to write back a diagnosis. A separate lastping CLI wraps any command, sends start and exit pings, and configures OpenTelemetry trace export.

## Features

- **Eight failure classes:** Detects silent death, hangs, stalls, failures, blocked runs, missed schedules, empty successes and cost overruns.
- **Agent self-setup:** An agent can create its own monitor over MCP without manual configuration.
- **Incident memory:** Open incidents and notes let the next run read what broke before starting.
- **Command wrapper CLI:** lastping run wraps a command, reports its exit code and propagates it unchanged.
- **Run traces:** The wrapper sets OpenTelemetry variables so agent spans join the same run.
- **Hosted or self-hosted:** Use mcp.lastping.dev, or self-host the Go binary.

## Good for

- Get alerted when a nightly Claude Code or Codex task never starts
- Catch an agent that exits cleanly but produced no usable output
- Cap runaway token or dollar spend per agent over a week
- Watch cron jobs and CI pipelines alongside agent runs

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http lastping https://mcp.lastping.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.lastping.dev/mcp
```

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

```json
{
  "mcpServers": {
    "lastping": {
      "url": "https://mcp.lastping.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lastping": {
      "type": "http",
      "url": "https://mcp.lastping.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lastping": {
      "serverUrl": "https://mcp.lastping.dev/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "lastping": {
      "type": "http",
      "url": "https://mcp.lastping.dev/mcp"
    }
  }
}
```

## Tools

- `create_monitor`: Registers a heartbeat monitor for an agent.
- `get_ping_instructions`: Returns how the agent should report its runs.
- `list_open_incidents`: Lists open incidents for an agent, including failure signature and exit code.
- `add_incident_note`: Writes a diagnosis note back to an incident.
- `declare_run_expectations`: Lets the agent commit to success criteria before the outcome is known.

## FAQ

### Does it cost anything?

The site says LastPing is free for individuals; no other prices are listed.

### Do I need an SDK inside the agent?

No. The site says failures are detected from explicit pings or outside-in liveness checks, with no SDK required.

### Which clients does it work with?

The site names Claude Code, Codex and Cursor, and any agent over MCP.

### What happens if LastPing is unreachable?

The README says a failed ping never touches your command, which still runs and exits normally.

### Is LastPing free?

LastPing has a free plan, with paid plans for more usage or features.

### How do I add LastPing to Claude Code?

Run this command in your terminal: claude mcp add --transport http lastping https://mcp.lastping.dev/mcp

### What are the best alternatives to LastPing?

The closest alternatives to LastPing are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [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-2): 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.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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