MCP Setup

MCP Server Setup

The Anonymily MCP (Model Context Protocol) server exposes your captured webhook history and endpoint management to any MCP-compatible AI agent — Claude Code, Cursor, Windsurf, and others.

Available tools

list_endpointsList all webhook endpoints claimed by the authenticated user
create_endpointCreate and claim a new webhook endpoint
list_requestsList captured requests — supports method, search, and limit filters
get_requestGet full body, headers, and metadata for a single request
replay_requestReplay a captured request — optionally override payload or re-sign
trigger_eventFire a pre-built synthetic event for a provider (correctly signed)
list_event_templatesList all available synthetic event templates by provider
diagnose_requestAI-powered explanation of why a webhook exchange failedPro
generate_handlerGenerate a complete Express / Next.js / NestJS handler from a captured payloadPro
trigger_edge_caseDescribe an edge case → AI generates, signs, and fires a schema-valid eventPro

Claude Code

Add the Anonymily MCP server to your Claude Code config. Run this command once:

bash
# Add to Claude Code MCP servers claude mcp add anonymily \ --command npx \ --args "@anonymilyhq/mcp-server" \ --env ANONYMILY_TOKEN=pat_xxx

Replace pat_xxx with your PAT from Account settings.

Cursor / Windsurf / other MCP clients

Add to your MCP configuration file (usually .cursor/mcp.json or equivalent):

json
{ "mcpServers": { "anonymily": { "command": "npx", "args": ["@anonymilyhq/mcp-server"], "env": { "ANONYMILY_TOKEN": "pat_xxx" } } } }

Example agent prompt

Once connected, you can ask your agent things like:

“Show me the last Stripe payment.succeeded webhook captured on my stripe-dev endpoint and generate a handler for it.”