Skip to main content
Glama
Webhook.site MCP Server

Webhook.site MCP Server

by js-cohn

Webhook.site FastMCP

A FastMCP-based Model Context Protocol (MCP) server for the Webhook.site API. It exposes the API as MCP tools for creating, reading, updating, and managing webhook tokens and their captured requests.

Prerequisites

  • Python 3.12+

  • uv (recommended) or pip

Related MCP server: Webhook.site MCP Server

Configuration

Configure the following environment variables to authenticate and set defaults:

Environment Variable

Description

WEBHOOK_SITE_API_KEY

(Optional) Your Webhook.site API key (required for premium accounts, custom actions, and private tokens).

WEBHOOK_SITE_TOKEN_ID

(Optional) A default Webhook.site token UUID to fall back to when not explicitly provided to tools.

Running

Direct execution

uv run server.py

Install editable

You can install this package in editable mode:

uv pip install -e .

This registers the CLI command webhook-mcp.

Claude Desktop example

To use this with Claude Desktop (or other MCP hosts), add the following configuration.

Using sh -c allows the use of $HOME (or other environment variables) dynamically across different user machines/setups, since most MCP hosts do not perform shell expansion on paths:

{
  "mcpServers": {
    "WebhookSite": {
      "command": "sh",
      "args": [
        "-c",
        "uv --directory \"$HOME/.agents/Webhook.site-FastMCP\" run server.py"
      ],
      "env": {
        "WEBHOOK_SITE_API_KEY": "your-api-key-here",
        "WEBHOOK_SITE_TOKEN_ID": "your-default-token-id-here"
      }
    }
  }
}

Note: If you prefer not to use sh -c, replace "command" with "uv" and use the absolute path in the "--directory" argument.

Available tools

1. create_token

Creates a new Webhook.site token (URL / email address container).

  • Arguments:

    • api_key (string, optional): Overrides WEBHOOK_SITE_API_KEY.

    • default_status (number, optional): Default HTTP status returned to requests (200-599).

    • default_content (string, optional): Default response body content.

    • default_content_type (string, optional): Default response Content-Type (e.g. application/json, text/html).

    • timeout (number, optional): Seconds to sleep before responding (max 30).

    • listen (number, optional): Seconds to wait for "Set Response" endpoint response.

    • expiry (number, optional): Seconds until the token auto-expires (default: 604800, 1 week).

    • request_limit (number, optional): Limits request history stored (0 to 10000).

    • cors (boolean, optional): If true, adds CORS headers to responses.

    • alias (string, optional): Sets a custom token alias.

    • actions (boolean, optional): Enables/disables Custom Actions.

    • clone_from (string, optional): Token UUID to clone settings from.

2. get_token

Get details and configuration of a Webhook.site token.

  • Arguments:

    • token_id (string, optional): Token UUID (defaults to WEBHOOK_SITE_TOKEN_ID).

    • api_key (string, optional): Overrides WEBHOOK_SITE_API_KEY.

3. update_token

Update settings of an existing Webhook.site token.

  • Arguments:

    • Same configuration parameters as create_token + token_id.

4. delete_token

Delete the Webhook.site token completely.

  • Arguments:

    • token_id (string, optional): Token UUID (defaults to WEBHOOK_SITE_TOKEN_ID).

    • api_key (string, optional): Overrides WEBHOOK_SITE_API_KEY.

5. list_requests

List captured requests, emails, and DNSHooks sent to a token.

  • Arguments:

    • token_id (string, optional): Token UUID.

    • api_key (string, optional): Overrides WEBHOOK_SITE_API_KEY.

    • sorting (string, optional): Sorting order, either "newest" or "oldest".

    • per_page (number, optional): Page size (default: 50, max: 100).

    • page (number, optional): Page number to retrieve (default: 1).

    • date_from (string, optional): Filter requests starting from date (yyyy-MM-dd HH:mm:ss).

    • date_to (string, optional): Filter requests ending at date (yyyy-MM-dd HH:mm:ss).

    • query (string, optional): Query string to filter results.

6. get_latest_request

Get the latest raw request body sent to a Webhook.site token.

  • Arguments:

    • token_id (string, optional): Token UUID.

    • api_key (string, optional): Overrides WEBHOOK_SITE_API_KEY.

7. delete_requests

Delete all or filtered requests captured by a Webhook.site token.

  • Arguments:

    • token_id (string, optional): Token UUID.

    • api_key (string, optional): Overrides WEBHOOK_SITE_API_KEY.

    • date_to (string, optional): Filter to delete requests up to this date.

    • query (string, optional): Filter to delete requests matching this query.

Resources

webhooksite://token/{token_id}/requests

Allows clients to retrieve the complete list of requests captured by the specified token in raw JSON format.

Available Tools

7 tools
create_tokenB

Create a new Webhook.site token (URL / email address container).

Inputs: cors, alias, expiry, listen, +8 more. Returns: object

delete_requestsB

Delete all or filtered requests from a Webhook.site token.

Inputs: query, api_key, date_to, token_id. Returns: object

delete_tokenB

Delete a Webhook.site token/URL completely.

Inputs: api_key, token_id. Returns: object

get_latest_requestA

Get the latest raw request body sent to a Webhook.site token.

Inputs: api_key, token_id. Returns: result

get_tokenA

Get details and configuration of a Webhook.site token.

Inputs: api_key, token_id. Returns: object

list_requestsB

List captured requests, emails, and DNSHooks sent to a token.

Inputs: page, query, api_key, date_to, +4 more. Returns: object

update_tokenC

Update settings of a Webhook.site token.

Inputs: cors, alias, expiry, listen, +8 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: token lifecycle (get/create/update/delete) versus request inspection (list/latest/delete). There is no meaningful overlap between any pair of tools; get_latest_request is a specific convenience distinct from listing all requests.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case: get_token, create_token, update_token, delete_token, list_requests, get_latest_request, delete_requests. This makes the toolset predictable and easy to navigate.

    Tool Count5/5

    The server has exactly 7 tools, which is well-scoped for a webhook testing and inspection service. Each tool covers an essential operation without redundancy or feature bloat.

    Completeness4/5

    The token CRUD lifecycle is fully covered, and request operations include listing, fetching the latest, and deleting. The only minor gap is the lack of a direct endpoint to fetch a specific request by ID, but list_requests likely provides enough detail for most workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Exposes the Hookbase webhook relay API as tools for AI assistants to manage sources, destinations, routes, and events through natural language. It enables monitoring webhook success rates, replaying failed deliveries, and managing localhost tunnels for development.
      22
      32
      104 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables interaction with Webhook.site to create, manage, and monitor endpoints for capturing HTTP requests, emails, and DNS lookups. It provides 16 tools for testing webhooks and inspecting incoming data through the Model Context Protocol.
      24
      34 PyPI
      12
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      5
      6 npm
      MIT