Skip to content
MCP server

Hookline

MCP server for creating test webhook endpoints and validating payloads from AI agents

Runs locally
Install

Hookline is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Platforms
CLI, API
Runs
Locally
Version
0.9.1
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add mcp --env HOOKLINE_API_KEY='<HOOKLINE_API_KEY>' -- npx -y @hookline/mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@hookline/mcp"
      ],
      "env": {
        "HOOKLINE_API_KEY": "<HOOKLINE_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@hookline/mcp"
      ],
      "env": {
        "HOOKLINE_API_KEY": "<HOOKLINE_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hookline/mcp"
      ],
      "env": {
        "HOOKLINE_API_KEY": "<HOOKLINE_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@hookline/mcp"
      ],
      "env": {
        "HOOKLINE_API_KEY": "<HOOKLINE_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@hookline/mcp"
      ],
      "env": {
        "HOOKLINE_API_KEY": "<HOOKLINE_API_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • HOOKLINE_API_KEYHookline agent API key (hlk_...) from https://app.hookline.org/settings/mcpRequired

About Hookline

The README describes Hookline's MCP server as a way for agents in editors such as Claude Code and Cursor to work through a full webhook test loop. An agent can create an endpoint, wait for an incoming request, check the payload against validators, read the findings, and adjust the mock response without leaving the editor.

The server exposes about two dozen tools split into read and write groups. Read tools cover listing endpoints, requests and validators, and fetching validation history and payload diffs. Write tools, such as creating endpoints, validators and share links, are only registered when the API key has write access, so a read-only key never sees them.

It suits developers building or debugging webhook integrations who want their coding agent to send test traffic and check the results. The README also stresses that request bodies come from external senders and can carry prompt injection, so it recommends a read-only key by default.

Tools this server provides (21)

Taken from the project documentation; the running server may differ.

diff_payloads
Compares JSON payloads.
get_request_detail
Returns a request with its stored validation report.
get_requests
Lists received requests, capped at 50 by default.
get_validation_history
Returns past validation results.
list_custom_rules
Lists custom validation rules.
list_endpoints
Lists webhook endpoints.
list_profile_suggestions
Lists profile suggestions.
list_profiles
Lists profiles.
list_validators
Lists validators.
preview_custom_rule
Previews a custom rule.
search_rules
Searches rules.
validate_payload
Validates a JSON payload.
wait_for_request
Waits for the next request after a given id.
create_custom_rule
Creates a custom rule (write access).
create_endpoint
Creates a webhook endpoint (write access).
create_share_link
Creates a read-only expiring link to a request (write access).
create_validator
Creates a validator (write access).
dismiss_profile_suggestion
Dismisses a profile suggestion (write access).
rescan_endpoint_traffic
Rescans endpoint traffic (write access).
revalidate_request
Revalidates a request (write access).
set_mock_response
Sets an endpoint's mock response (write access).

What it does

Test webhook endpoints
Agents can create endpoints that return a receiving URL, with an optional automatic expiry.
Send-then-wait loop
A wait tool returns the first request received after a known request id, supporting deterministic test runs.
Payload validation
Payloads can be checked against Hookline validators, and stored validation reports can be read back.
Payload diffing
Two JSON payloads can be compared with a dedicated diff tool.
Read-only key mode
Write tools are not registered when the API key is read-only.
Untrusted data wrapping
Request bodies, headers and query strings are returned in marked blocks to reduce the risk of injected instructions.

Good for

  • Testing a webhook integration from inside Claude Code or Cursor
  • Checking that incoming payloads match an expected schema
  • Debugging a provider's callbacks by inspecting received requests
  • Setting mock responses for an endpoint during development
  • Sharing a single received request through a read-only expiring link

Hookline FAQ

Which key should I use?

The README says the read-only preset is the safe default, and write tools are only available with a key that has write access.

How do I install Hookline?

The README gives install steps for Claude Code, Claude Desktop, Cursor and Windows using npx with the @hookline/mcp package and a HOOKLINE_API_KEY environment variable.

Does Hookline cap how many requests are listed?

Yes, get_requests caps limit at 50 by default to stay within the agent's context window; the public API allows up to 500.

How do I add Hookline to Claude Code?

Run this command in your terminal: claude mcp add mcp --env HOOKLINE_API_KEY='<HOOKLINE_API_KEY>' -- npx -y @hookline/mcp

What are the best alternatives to Hookline?

The closest alternatives to Hookline are Api Test MCP, Webhook Toolkit, Hooklistener, Api Testing MCP and MCPProxy.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers