Agent MCP Server

Record and replay AI agent execution for debugging

Local serverstdio

What is the Agent MCP server?

Record and replay AI agent execution for debugging. Exposed over MCP by the agent mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

MCP server for agent session recording and replay — debug non-deterministic agent behavior with session comparison and divergence detection.

Adding it to your client

agent-replay-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Its toolset

Everything the assistant can do here goes through one of these:

  • log_action — capture input, output, reasoning, timing
  • replay_session — review what happened step by step
  • compare_sessions — diff today's run vs yesterday's
  • find_divergence_point — pinpoint where it went wrong
  • export_session — JSON for tooling, markdown for humans
  • record_session — The record_session tool exposed by this server
  • stop_recording — Returns: action count, total duration, action type breakdown

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the agent mcp server does with a few real requests.

When to reach for it

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Agent's toolset — log_action, replay_session, compare_sessions and 4 more — is a fair guide to whether it matches your workflow. It is maintained by mdfifty50-boop; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
log_actioncapture input, output, reasoning, timing
replay_sessionreview what happened step by step
compare_sessionsdiff today's run vs yesterday's
find_divergence_pointpinpoint where it went wrong
export_sessionJSON for tooling, markdown for humans
record_sessionThe record_session tool exposed by this server.
stop_recordingReturns: action count, total duration, action type breakdown.

How to install the Agent MCP server

{
  "mcpServers": {
    "agent-replay": {
      "command": "npx",
      "args": ["-y", "agent-replay-mcp"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Agent to log action.
  • Use Agent to replay session.
  • Use Agent to compare sessions.

Frequently asked questions

It connects Agent to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (log_action, replay_session, compare_sessions, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Agent directly.