LastPing — Claude Code MCP server: what it does, how to install
LastPing watches AI agents, cron jobs and CI/CD pipelines and alerts you when they fail to check in, crash or stall.
MIT ★ 3 updated 2026-10-20
claude mcp add --transport http lastping https://mcp.lastping.dev/mcpWhat LastPing does
LastPing inverts the usual monitoring pattern: instead of checking whether something broke, it waits for a job to report. If a process hangs or never starts, no signal arrives, and the service sends an alert. Two tools inside: the lastping run CLI, which wraps any command and sends its start ping, exit code and stderr tail, and the MCP server, which lets an agent configure its own monitoring and read its logs.
The MCP server runs at https://mcp.lastping.dev/mcp and connects over HTTP. You need a write-scope API key from Settings, API keys at app.lastping.dev. The CLI sets OTEL_EXPORTER_OTLP_TRACES_ENDPOINT and OTEL_RESOURCE_ATTRIBUTES in the wrapped command's environment so an auto-instrumented agent can export trace spans with no code changes.
Free for individuals.
What it helps with
- track whether an AI agent started and finished correctly
- get notified when a cron job stalls or fails to run
- collect trace spans from an auto-instrumented agent
- let an agent set up its own monitoring
- wrap a command without changing its exit code or behaviour
Example prompts for the agent
- Set up monitoring for this job and wrap it with
lastping run - Check the logs from the last agent run
- Show me which jobs failed to check in over the past day
How to install LastPing
Platform CLI: remote server
claude mcp add --transport http lastping https://mcp.lastping.dev/mcpPlatform CLI: remote server
codex mcp add lastping --url https://mcp.lastping.dev/mcpConfig file
{
"mcpServers": {
"lastping": {
"url": "https://mcp.lastping.dev/mcp"
}
}
}Config file
{
"servers": {
"lastping": {
"type": "http",
"url": "https://mcp.lastping.dev/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http lastping https://mcp.lastping.dev/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about LastPing
How to install LastPing in Claude Code?
Run claude mcp add --transport http lastping https://mcp.lastping.dev/mcp, then enter a write-scope API key from Settings, API keys at app.lastping.dev.
What does LastPing do?
LastPing waits for a job or agent to check in and sends an alert when the signal does not arrive. It is designed for monitoring AI agents, cron jobs and CI/CD pipelines.
What does LastPing require to work?
A write-scope API key from app.lastping.dev. The CLI runs on macOS and Linux (amd64, arm64); Windows builds are on the releases page.