Documentation
MCP Quickstart
Connect your AI agent to Payloadr and test webhook flows end-to-end.
Use Payloadr MCP when your AI agent needs to send webhooks and verify they actually arrived.
What you need
- A Payloadr account
- A Payloadr API key from
/dashboard/api-keys - An MCP-compatible client (Claude Desktop, Cursor, etc.)
- Your Payloadr MCP connection details:
- MCP URL:
https://mcp.payloadr.dev/mcp - Your Payloadr API key for MCP auth
- MCP URL:
Connect your MCP client
Add a remote MCP server in your client with:
- URL:
https://mcp.payloadr.dev/mcp - Header:
Authorization: Bearer <PAYLOADR_API_KEY>
Use the same API key you generate in Payloadr Dashboard.
MCP configuration examples
Replace pk_live_xxx with your own Payloadr API key.
Claude
{
"mcpServers": {
"payloadr": {
"type": "streamable-http",
"url": "https://mcp.payloadr.dev/mcp",
"headers": {
"Authorization": "Bearer pk_live_xxx"
}
}
}
}OpenCode
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"payloadr": {
"type": "remote",
"url": "https://mcp.payloadr.dev/mcp",
"oauth": false,
"headers": {
"Authorization": "Bearer {env:PAYLOADR_API_KEY}"
}
}
}
}oauth: false is required for Payloadr MCP in OpenCode. Without it, OpenCode tries OAuth discovery and fails with errors like Cannot POST /register.
Codex
{
"mcpServers": {
"payloadr": {
"type": "streamable-http",
"url": "https://mcp.payloadr.dev/mcp",
"headers": {
"Authorization": "Bearer pk_live_xxx"
}
}
}
}How tool auth works
The MCP server authenticates you from the bearer header and runs tools in your own Payloadr workspace.
Core tools
create_endpointcreate a webhook endpointlist_eventslist recent webhook events for an endpointget_eventfetch one event with full payload and headerswait_for_eventwait for a new incoming webhookreplay_eventreplay a captured event to another target URLassert_eventassert expected fields on an event
Typical workflow
- Call
create_endpointfor a test flow. - Trigger your integration to send a webhook to that endpoint.
- Call
wait_for_eventto block until the webhook arrives. - Inspect with
get_event. - Validate with
assert_event. - If needed, use
replay_eventagainst your local or staging target.
Example prompts
- "Create a Payloadr endpoint for Stripe test events."
- "Wait up to 60 seconds for a new
checkout.session.completedevent." - "Assert that
body.typeequalscheckout.session.completed." - "Replay this event to my staging webhook URL."
Security best practices
- Keep your Payloadr API key secret.
- Use test keys in non-production workflows.
- Rotate keys if they are shared or leaked.