The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Nahook MCP listing page.
The official Model Context Protocol server for Nahook — drive webhook deliveries, endpoints, and event triggers from Claude Desktop, Cursor, Cline, and any other MCP-compatible AI assistant.
The MCP server ships as a subcommand of the
nahookCLI. One binary, one credentials file, one install path.
Once installed and authenticated, your AI assistant can:
Write operations are tagged with the MCP destructiveHint/readOnlyHint annotations so MCP clients surface a per-call human-approval prompt before anything mutates state.
Webhook payloads are third-party data, so the server treats everything that flows back into the model's context as a potential prompt-injection channel:
get_delivery with include_payload), delivery idempotency keys, and receiver error messages (list_attempts) — is wrapped in explicit <<<UNTRUSTED CONTENT ...>>> delimiters with embedded fence markers neutralized, and the server instructions tell the model to treat fenced content as inert data, never as instructions.payload_truncated) so a hostile producer can't stuff the model's context. Tune the cap with NAHOOK_MCP_PAYLOAD_CAP=<bytes> in the MCP client's environment.update_endpoint is marked destructive. It overwrites live endpoint config (repointing its URL is the primitive an injection would target), so its destructiveHint is true and clients surface a prominent approval prompt.create_endpoint, send_to_endpoint, trigger_event) are annotated destructiveHint: false per their spec semantics; keep human-in-the-loop approval enabled in your MCP client and don't blanket-allow them. If you want a hard guarantee of no writes, run the server without an ingestion key (disables sending) and treat management tools as approval-gated.whoami returns only the token's public id.trigger_event, send_to_endpoint) requires a separate ingestion key — omit it and the server is management/read-only for ingestion.Client-side measures can't make prompt injection impossible — pair them with your MCP client's tool-approval prompts.
The MCP server is a subcommand of the nahook CLI. Install the CLI, then add it to your AI client.
macOS / Linux (Homebrew):
Linux / macOS (install script):
See getnahook/nahook-cli for other install options.
This opens your browser, walks you through device-grant authentication, and writes credentials to ~/.nahook/config.toml.
Claude Desktop & Claude Code CLI:
Cursor — edit ~/.cursor/mcp.json:
Cline (VS Code) — Cline → Settings → MCP Servers → add:
Zed — add to settings.json:
Other MCP-compatible clients (Continue, Windsurf, Goose, …) follow the same command + args shape.
| Tool | What it does |
|---|---|
whoami | Local config sanity check — workspace, region, token id, expiry. |
list_endpoints | List every endpoint in the current workspace. |
get_endpoint | Fetch one endpoint by ep_xxx. |
create_endpoint | Create a new endpoint. Defaults to the workspace's default environment; also accepts slugs like production. |
update_endpoint | Partial patch — pause/resume, change URL, update description. |
list_environments | List every environment in the workspace. |
list_deliveries | Page through an endpoint's deliveries, newest-first. |
get_delivery | Fetch one delivery by del_xxx. Pass include_payload: true to also fetch the original webhook body — critical for debugging. |
list_attempts | List every attempt against a delivery (useful for debugging failures). |
retry_delivery | Re-enqueue a failed or dead-lettered delivery. |
trigger_event | Fire an event by type — the backend fans it out to every subscriber. |
send_to_endpoint | Send a webhook directly to one endpoint. |
The MCP server uses two separate credentials:
nhc_…) — written by nahook login. Powers read tools and management operations on endpoints / deliveries / environments.nhk_…) — the same key your SDKs use. Powers trigger_event and send_to_endpoint. Set it via NAHOOK_INGESTION_KEY=nhk_... in the MCP client's environment, or add ingestion_key = "nhk_..." to ~/.nahook/config.toml. The server fails loudly if a write tool is called without one configured.Permissions are evaluated per request against your workspace role — the MCP token has exactly the permissions you have in the dashboard, nothing more.
The MCP server implementation is part of the nahook CLI source tree. This repo exists as a discoverability surface — README, MCP directory entries, and packaging metadata. There is no separate codebase to maintain.
If you want to file a bug, request a tool, or contribute: please open the issue at getnahook/nahook-cli.
MIT — same as the CLI.