Skip to content
MCP server

LastPing

Monitoring for AI agents, cron jobs and CI that alerts when a run fails or goes quiet

Install
Pricing
Freemium
Platforms
Web, API, CLI
Runs
Remotely
Version
0.2.2
Listing updated
1 day ago

About LastPing

LastPing is a freemium MCP server for developer tools. It runs as a hosted remote server, so there is nothing to install locally.

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.

Install

Run in a terminal

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

Add to Settings → Connectors → Add custom connector

https://mcp.lastping.dev/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "lastping": {
      "url": "https://mcp.lastping.dev/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

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

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

Tools this server provides (5)

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

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.

What it does

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

Pricing

Freemium

Free for individuals; other plans not listed.

Prices change. Check lastping.dev before you buy.

LastPing 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 to LastPing

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools