webhook-inspector-mcp
Captures Stripe webhooks sent to the local inspector, verifies HMAC-SHA256 signatures with a 5-minute tolerance, helps diagnose verification failures, and replays captured events to local handlers.
Captures Twilio webhooks, verifies HMAC-SHA1 signatures over the URL and sorted parameters, and replays captured requests to local handlers.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
webhook-inspector-mcp
An MCP server that lets AI coding agents (Claude Code, Cursor and others) capture, inspect, verify and replay webhooks while you develop.
Debugging webhooks usually means digging through logs to find out what Stripe or Twilio actually sent, and why your signature check failed. With this server running, you can ask your agent things like:
"Why did the last Stripe webhook fail signature verification?"
"I fixed the handler. Replay that webhook to http://localhost:3000/webhooks/stripe."
How it works
Stripe / Twilio / curl ──► http://localhost:4400 ──► SQLite (~/.webhook-inspector/webhooks.db)
▲
AI agent (Claude Code, Cursor) ◄── MCP over stdio ── tools ───┘One process does two jobs: an HTTP server captures every request sent to port 4400, and an MCP server exposes tools that read from the same database.
Related MCP server: RequestBin MCP Server
Tools
Tool | What it does |
| Recent webhooks, newest first. Summaries only, to save the agent's context. |
| One webhook with all headers and the raw body. |
| Checks a Stripe (HMAC-SHA256, 5-minute tolerance) or Twilio (HMAC-SHA1 over URL + sorted params) signature, and explains the likely cause when it fails. |
| Sends a captured webhook again, with its original method, headers and raw body, to a localhost URL. |
Setup
Requires Node.js 22.13 or later (it uses the built-in node:sqlite).
Claude Code
claude mcp add webhook-inspector \
-e STRIPE_WEBHOOK_SECRET=whsec_... \
-e TWILIO_AUTH_TOKEN=... \
-- npx -y webhook-inspector-mcpCursor and other MCP clients
{
"mcpServers": {
"webhook-inspector": {
"command": "npx",
"args": ["-y", "webhook-inspector-mcp"],
"env": { "STRIPE_WEBHOOK_SECRET": "whsec_..." }
}
}
}Sending webhooks to it
Stripe:
stripe listen --forward-to localhost:4400/stripe. The Stripe CLI prints awhsec_...signing secret; use it asSTRIPE_WEBHOOK_SECRET.Twilio: Twilio needs a public URL, so use a tunnel (for example
ngrok http 4400) and set the tunnel URL in the Twilio console. Twilio signs that public URL; if it can't be rebuilt from the request headers, pass it asurltoverify_signature.Anything else: send it to
http://localhost:4400/<any-path>.
Configuration
Environment variable | Default | Purpose |
|
| Port that captures webhooks |
|
| SQLite database file |
| – | Needed to verify Stripe signatures |
| – | Needed to verify Twilio signatures |
Security notes
Secrets never reach the model. They are read from the server's environment, not passed as tool arguments.
Replay is localhost-only, so an agent can't be steered into sending requests to other hosts (SSRF).
Bodies are stored raw and never re-serialized, so signatures can still be verified later.
Request bodies are capped at 1 MB.
Captured webhooks can contain real customer data. The database stays on your machine; delete it when you no longer need it.
If two MCP clients start the server at the same time, only the first one captures on the port. Both can still read the shared database.
Development
git clone https://github.com/Erem-Bati/webhook-inspector-mcp.git
cd webhook-inspector-mcp
npm install
npm test # Vitest
npm run typecheck
npm run buildLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Debug webhooks from your AI agent: inspect and replay captured webhooks on localhost.
Capture, inspect, send and assert on webhooks and inbound email from your coding agent.
Webhook, email, WebSocket and tunnel testing for AI agents: capture, wait, verify, replay.
Webhook URLs for AI agents: receive, wait for, replay, sign and verify webhooks (Stripe, GitHub…).
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to create disposable webhook URLs, capture incoming HTTP requests, inspect headers and bodies, and replay them against local or remote endpoints, streamlining the webhook handler development loop.58 npmMIT

RequestBin MCP Serverofficial
AlicenseAqualityDmaintenanceEnables AI coding agents to create webhook bins, inspect and replay HTTP requests, and stand up mock API endpoints directly from the editor.1313 npmMIT- AlicenseAqualityCmaintenanceCaptures incoming webhook/HTTP requests and lets AI assistants inspect, wait for, and replay them to debug webhook integrations.6MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create webhook URLs, wait for incoming deliveries, inspect payloads, and replay or send signed webhook events to a local handler.58 npmMIT