zhook-mcp-server
Enables the creation and management of MQTT hooks, allowing AI agents to interact with MQTT-based messaging and events alongside traditional webhooks.
@zhook/mcp-server
The official Model Context Protocol (MCP) server for zhook, enabling AI agents to interact with your Zhook webhooks, events, and metrics.
Features
Create Hooks: Create new webhooks or MQTT hooks directly from your agent.
List Hooks: Retrieve a list of your configured webhooks.
Inspect Events: View recent events for a specific hook.
Wait for Event: Pause execution and wait for a specific event to occur.
Metrics: Access detailed metrics about your webhook performance.
Related MCP server: mcp-webhook-tools
Installation
You can run this server using npx or install it globally.
Using npx (Recommended for Claude Desktop)
Add the following to your MCP configuration (e.g., claude_desktop_config.json):
{
"mcpServers": {
"zhook": {
"command": "npx",
"args": [
"-y",
"@zhook/mcp-server"
],
"env": {
"ZHOOK_API_KEY": "your_api_key_here"
}
}
}
}Manual Installation
npm install -g @zhook/mcp-serverThen run it:
zhook-mcpConfiguration
The server requires a Zhook API key to authenticate requests. You can obtain this key from your Zhook dashboard in the user settings page.
Environment Variable | Description | Required |
| Your Zhook API Key | Yes |
Tools
Hooks
zhook_list_hooks: List all webhooks configured in the Zhook account.zhook_get_hook: Get detailed configuration for a specific webhook.zhook_create_hook: Create a new webhook or MQTT hook.zhook_trigger_webhook: Send a test webhook event to a specific Hook.
Events
zhook_list_events: List recent events received by a specific hook.zhook_get_event: Get the full JSON payload and details of a specific event.zhook_wait_for_event: Connects to the Zhook WebSocket and waits for the NEXT event to arrive.
Destinations
zhook_list_destinations: List all destinations configured for a specific webhook.zhook_get_destination: Get detailed configuration for a specific destination.zhook_create_destination: Add a new destination to a hook.zhook_update_destination: Update an existing destination's configuration.zhook_delete_destination: Remove a destination from a hook.
Transformations
zhook_list_transformations: List all transformations configured for a specific webhook.zhook_create_transformation: Create a new JSONata transformation for a hook.zhook_update_transformation: Update an existing transformation.zhook_delete_transformation: Delete a transformation from a hook.
Metrics
zhook_get_hook_metrics: Get real-time metrics (request counts, success/failure rates).zhook_get_aggregated_hook_metrics: Get historical aggregated metrics with custom date ranges.
Usage in Editors & Tools
VSCode
Open the Command Palette (Ctrl+Shift+P).
Type and select "MCP Servers" (or configured extension command).
Add the server configuration as shown above.
Antigravity (Agent)
Click the "..." (More Options) menu in the top-right toolbar.
Select "MCP Servers" and then "Manage MCP Servers".
Add the server configuration (Name:
zhook, Command:npx, Args:-y @zhook/mcp-server, Env:ZHOOK_API_KEY=...).
License
ISC
Available Tools
18 toolscreate_destinationC
Add a new destination to a hook to forward events to.
Inputs: hookId (required), type (required), config (required), name.
create_hookB
Create a new webhook or MQTT hook. Returns the new hook ID and its public URL.
Inputs: type, deliveryMethod, callbackUrl, metadata, +1 more.
create_transformationC
Create a new JSONata transformation for a hook.
Inputs: hookId (required), name (required), code (required), active.
delete_destinationC
Remove a destination from a hook.
Inputs: hookId (required), destinationId (required).
delete_transformationC
Delete a transformation from a hook.
Inputs: hookId (required), transformationId (required).
get_aggregated_hook_metricsC
Get historical aggregated metrics for a specific hook with custom date ranges.
Inputs: hookId (required), startDate, endDate, groupBy.
get_destinationC
Get detailed configuration for a specific destination.
Inputs: hookId (required), destinationId (required).
get_eventC
Get the full JSON payload and details of a specific event.
Inputs: hookId (required), eventId (required).
get_hookB
Get detailed configuration for a specific webhook, including delivery URL, metadata, and recent metrics.
Inputs: hookId (required).
get_hook_metricsC
Get real-time metrics for a specific hook (request counts, success/failure rates).
Inputs: hookId (required), timeWindow.
list_destinationsC
List all destinations configured for a specific webhook.
Inputs: hookId (required).
list_eventsB
List recent events received by a specific hook. Useful for checking what payloads have been delivered.
Inputs: hookId (required), limit.
list_hooksB
List all webhooks configured in the Zhook account. Returns hook IDs, URLs, and active status.
Inputs: no named parameters.
list_transformationsB
List all transformations configured for a specific webhook.
Inputs: hookId (required).
trigger_webhookA
Send a test webhook event to a specific Hook. This mimics a real third-party service sending data to the hook URL.
Inputs: payload (required), hookId, hook_id, contentType.
update_destinationC
Update an existing destination's configuration.
Inputs: hookId (required), destinationId (required), type, config, +2 more.
update_transformationC
Update an existing transformation.
Inputs: hookId (required), transformationId (required), name, code, +1 more.
wait_for_eventA
Connects to the Zhook WebSocket and waits for the NEXT event to arrive on a specific hook. Returns the full event payload immediately. TIMEOUT is 60 seconds.
Inputs: hookId (required), timeoutSeconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Every tool has a clearly distinct purpose targeting specific resources (hooks, destinations, transformations, events, metrics) and actions (create, get, list, delete, update, trigger, wait). There is no overlap or ambiguity; for example, get_hook retrieves configuration while get_hook_metrics focuses on real-time metrics, and list_events is separate from get_event.
All tool names follow a consistent verb_noun pattern using snake_case, such as create_destination, list_hooks, and update_transformation. The naming is predictable and uniform across all 18 tools, with no deviations in style or convention.
With 18 tools, the count is slightly high but reasonable for a webhook management server covering hooks, destinations, transformations, events, and metrics. It provides comprehensive coverage without being excessive, though it borders on the upper limit of a well-scoped set.
The tool set offers complete CRUD/lifecycle coverage for the domain: hooks (create, get, list, trigger, wait), destinations (create, get, list, update, delete), transformations (create, get, list, update, delete), events (list, get), and metrics (real-time and aggregated). There are no obvious gaps, and agents can manage the full workflow from setup to monitoring.
Related MCP Connectors
Webhooks for AI agents: send events, manage endpoints, inspect and retry deliveries.
Webhook capture bins for agents: get a URL, wait for webhooks, set replies, verify signatures.
Capture, inspect, send and assert on webhooks and inbound email from your coding agent.
Debug webhooks from your AI agent: inspect and replay captured webhooks on localhost.
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
- AlicenseAqualityDmaintenanceWebhook management and testing tools for AI agents. Provides tools for sending, validating, generating, and debugging webhooks.543 npmMIT
- 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
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create webhook bins, list and retrieve captured requests, inspect payloads with seal-chain verification, and clear bins via MCP tools.MIT