# Hookline MCP server

> Allows AI agents to create webhook endpoints, inspect incoming requests, and validate payloads against custom rules.

- Repository: https://github.com/hookline-org/mcp
- Page: https://hostedmcp.org/servers/hookline-org/mcp
- Transport: stdio
- Stars: 0
- Latest version: 0.9.1

## Install

### Claude Code

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

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

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

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

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

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@hookline/mcp"],"env":{"HOOKLINE_API_KEY":"<YOUR_HOOKLINE_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

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

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@hookline/mcp"]

[mcp_servers.mcp.env]
HOOKLINE_API_KEY = "<YOUR_HOOKLINE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'HOOKLINE_API_KEY=<YOUR_HOOKLINE_API_KEY>' mcp npx -- -y @hookline/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HOOKLINE_API_KEY` | yes | yes | Hookline agent API key (hlk_...) from https://app.hookline.org/settings/mcp |

## FAQ

### How do I install Hookline for Claude Code?

You can install it using the command: `claude mcp add hookline --env HOOKLINE_API_KEY=hlk_YOUR_KEY_HERE -- npx -y @hookline/mcp`.

### Can I use a read-only key?

Yes, the server supports read-only keys which prevent write tools from being registered, making it a safer default for agents.

### What should I do if the server shows as disconnected?

Run the command manually in a terminal to identify the error, which is often a missing or invalid HOOKLINE_API_KEY.

### How can I make a webhook endpoint expire automatically?

When using the `create_endpoint` tool, you can pass the `expiresInHours` parameter to set an expiration time.
