Skip to content

MCP Server

The Hookbase MCP (Model Context Protocol) server lets you manage webhooks directly from AI assistants like Claude. Ask Claude to list your sources, replay failed deliveries, check analytics, and more.

What is MCP?

Model Context Protocol is an open standard that allows AI assistants to interact with external tools and services. The Hookbase MCP server exposes 24 tools for managing your webhook infrastructure.

Quick Start

1. Get your API key

Get your API key from the Hookbase dashboard under Settings → API Keys.

2. Configure Claude Desktop

Add to your Claude Desktop configuration file:

json
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "hookbase": {
      "command": "npx",
      "args": ["-y", "@hookbase/mcp-server"],
      "env": {
        "HOOKBASE_API_KEY": "whr_live_your_key_here"
      }
    }
  }
}
json
// ~/.config/claude/claude_desktop_config.json
{
  "mcpServers": {
    "hookbase": {
      "command": "npx",
      "args": ["-y", "@hookbase/mcp-server"],
      "env": {
        "HOOKBASE_API_KEY": "whr_live_your_key_here"
      }
    }
  }
}
json
// %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "hookbase": {
      "command": "npx",
      "args": ["-y", "@hookbase/mcp-server"],
      "env": {
        "HOOKBASE_API_KEY": "whr_live_your_key_here"
      }
    }
  }
}

3. Restart Claude Desktop

Restart Claude Desktop to load the MCP server. You'll see "hookbase" in the available tools.

4. Start chatting!

You can now ask Claude to manage your webhooks:

  • "List all my webhook sources"
  • "Show me failed deliveries from the last hour"
  • "What's my success rate for the last 24 hours?"
  • "Replay the failed deliveries for my Slack destination"

Example Conversations

Debugging failed webhooks

You: Show me recent failed deliveries

Claude: I found 3 failed deliveries in the last hour:

  • del_abc123 to Slack (status: 500, error: "Internal Server Error")
  • del_def456 to CI/CD (status: timeout)
  • del_ghi789 to Analytics (status: 401, error: "Unauthorized")

You: Replay the Slack one

Claude: Successfully replayed delivery del_abc123. New status: success (200 OK, 145ms)

Creating a new webhook flow

You: Create a source for GitHub webhooks and route them to my build server at https://build.example.com/webhook

Claude: Done! I've created:

Your webhook URL is: https://api.hookbase.app/ingest/your-org/github

Checking analytics

You: What's my webhook performance this week?

Claude: Here's your 7-day analytics:

  • Total events: 12,847
  • Total deliveries: 25,691
  • Success rate: 99.2%
  • Average response time: 234ms

Top sources: GitHub (8,234 events), Stripe (3,102 events) Top destinations: Slack (15,234 deliveries, 99.8% success)

Available Tools

The MCP server provides 24 tools organized by category:

CategoryToolsDescription
Sources4List, get, create, update webhook sources
Destinations4List, get, create, test destinations
Routes3List, get, create routes
Events3List, get events, generate debug cURL
Deliveries4List, get, replay, bulk replay deliveries
Tunnels3List, create, check status of tunnels
Cron2List cron jobs, trigger manually
Analytics1Get dashboard metrics

See Tools Reference for complete documentation.

Configuration

VariableRequiredDescription
HOOKBASE_API_KEYYesYour Hookbase API key
HOOKBASE_ORG_IDNoOrganization ID (only needed with multiple orgs)
HOOKBASE_API_URLNoAPI URL override

The organization is automatically detected from your API key.

Alternative Installation

Global install

bash
npm install -g @hookbase/mcp-server

Then use hookbase-mcp as the command:

json
{
  "mcpServers": {
    "hookbase": {
      "command": "hookbase-mcp",
      "env": {
        "HOOKBASE_API_KEY": "whr_live_your_key_here"
      }
    }
  }
}

From source

bash
git clone https://github.com/hookbase/hookbase.git
cd hookbase/mcp-server
npm install && npm run build

Troubleshooting

Server not appearing in Claude

  1. Verify the config file path is correct for your OS
  2. Ensure the JSON is valid (no trailing commas)
  3. Restart Claude Desktop completely (quit and reopen)

"Missing HOOKBASE_API_KEY"

Make sure your API key is set in the env section of your config.

"Invalid API key"

Check that your API key:

  • Starts with whr_
  • Is not expired
  • Has not been revoked

"Multiple organizations found"

If you belong to multiple organizations, add HOOKBASE_ORG_ID to your env:

json
{
  "env": {
    "HOOKBASE_API_KEY": "whr_live_xxx",
    "HOOKBASE_ORG_ID": "org_xxx"
  }
}

Next Steps

Released under the MIT License.