# Hookline

> Hookline is an MCP server for developer tools. MCP server for creating test webhook endpoints and validating payloads from AI agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, API
- **Repository:** https://github.com/hookline-org/mcp
- **MCP Registry name:** org.hookline/mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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).

## 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.

## Alternatives

- [Api Test MCP](https://ai-powered.com/mcp/api-test-mcp): Api Test MCP is an open-source MCP server for developer tools.
- [Webhook Toolkit](https://ai-powered.com/mcp/webhook-toolkit): Webhook Toolkit is a freemium MCP server for developer tools.
- [Hooklistener](https://ai-powered.com/mcp/hooklistener): Hooklistener is a freemium MCP server for developer tools.
- [Api Testing MCP](https://ai-powered.com/mcp/api-testing-mcp): Api Testing MCP is an open-source MCP server for developer tools.
- [MCPProxy](https://ai-powered.com/mcp/mcpproxy): MCPProxy is an open-source MCP server for developer tools.
- [MCP Events bridge](https://ai-powered.com/mcp/mcp-events-bridge): MCP Events bridge is an open-source MCP server for developer tools.
- [Webhook Tester API](https://ai-powered.com/mcp/webhook-tester-api): Webhook Tester API is a paid MCP server for developer tools.
- [Adal Cloud](https://ai-powered.com/mcp/adal-cloud): Adal Cloud is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/hookline
