Replay MCP
Quickstart
Learn how to use Replay MCP with your A.I. agent.
1
Install the Replay Skills
Run the following command to install the Replay MCP Skill:
Terminalnpx skills add https://github.com/replayio/skills --skill '*'
2
Install the Replay MCP Server
Terminalclaude mcp add replay\--transport http https://dispatch.replay.io/nut/mcp\--header "Authorization: YOUR_API_KEY"
Refer to these docs to see how you can generate an API key.
3
Record your application
Instruct your agent to open replay-cli. This will open the browser that records the activity. Replicate the issue that you want to debug. Once replicated, exit the browser completely.
Example prompt:
Please help me debug issues on my applcation.
Use replay-cli skill to record my application running on localhost:3000.
Then use Replay MCP to debug the recording.
Usually this is enough for Replay to debug your issue and provide your agent with enough information. The instruction will:
- Record the activity
- Notice when the browser is closed
- Upload the recording to Replay DevTools (each recording has a unique id )
- Call the Replay MCP server to fetch data from the recording
- Your agent will then take care of the rest thanks to the analysis provided by Replay MCP
For best results, keep your recordings short.
4
Use Replay MCP to debug your application
With the instructions above, Replay MCP should trigger automatically. It will fetch analysis data and provide it back to your agent. The A.I. agent usually goes ahead and introduces a solution to fix the issue.