mcpField
Z
Zhook Mcp Server

Zhook Mcp Server

Local
github.com/zhookteamDeveloper Tools0Updated 41w ago

About Zhook Mcp Server

Zhook Mcp Server is an MCP server for managing Zhook webhooks and MQTT hooks. It lets AI agents configure hooks and destinations, inspect events, and review performance metrics.

Key features

  1. 01Create webhooks and MQTT hooks
  2. 02List and inspect hooks
  3. 03Review and await events
  4. 04Manage destinations and transformations
  5. 05View real-time and historical metrics

Use cases

  1. 01Create or test a webhook from an agent
  2. 02Wait for incoming hook events
  3. 03Adjust event destinations or JSONata transformations
  4. 04Review webhook traffic and success rates

MCP support

Exposes Zhook hook, event, destination, transformation, and metrics operations as tools for MCP clients. Requests require a Zhook API key.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"zhook": {
"command": "npx",
"args": [
"-y",
"@zhook/mcp-server"
],
"env": {
"ZHOOK_API_KEY": "<ZHOOK_API_KEY>"
}
}
}
}
Run commandnpx -y @zhook/mcp-server
Environment variables to set
ZHOOK_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@zhook/mcp-server

Tools

18

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
hookIdstringNoThe ID of the hook to trigger (preferred)
hook_idstringNoAlias for hookId
payloadstringYesThe payload to send. Can be a JSON object, a JSON string, or just plain text.
contentTypeenumNoContent-Type of the webhook (default: application/json)application/json | text/plain

Details

From the project README

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

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

Then run it:

zhook-mcp

Configuration

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 VariableDescriptionRequired
ZHOOK_API_KEYYour Zhook API KeyYes

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
  1. Open the Command Palette (Ctrl+Shift+P).
  2. Type and select "MCP Servers" (or configured extension command).
  3. Add the server configuration as shown above.
Antigravity (Agent)
  1. Click the "..." (More Options) menu in the top-right toolbar.
  2. Select "MCP Servers" and then "Manage MCP Servers".
  3. Add the server configuration (Name: zhook, Command: npx, Args: -y @zhook/mcp-server, Env: ZHOOK_API_KEY=...).

License

ISC

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.