SuperAPIAI Directory

mcp-events-bridge

github.com · AI developer platforms

mcp-events-bridge is an MCP server open-sourced by Hookdeck for converting Webhooks into MCP Events, enabling AI agents to respond immediately when events occur without polling. It supports Resend inbound email, GitHub, Stripe, Slack, and 163 other Event Gateway source types, as well as any custom Webhook with a signature. Hookdeck Event Gateway handles receiving, verifying, retrying, and logging each event, and subscribers can set filters to decide which events wake the agent. For clients that do not support MCP Events (such as Claude Code), polling tools and a plugin are provided. The project is in the 0.9 experimental stage and requires Node 22.12+, a Hookdeck account, and at least one event source.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Purpose

mcp-events-bridge aims to solve the problem that AI agents can only poll and cannot subscribe to events. MCP Events is an experimental extension of MCP that allows agents to subscribe to events instead of polling, but very few MCP servers implement this extension, while almost all services already support sending Webhooks. This bridge converts Webhooks into MCP Events, enabling agents to act immediately when events occur (such as receiving an email, opening an Issue, or a workflow failing).

Key capabilities

  • Webhook to MCP Events: Supports Resend inbound email, GitHub, 163 Event Gateway source types (Stripe, Slack, Shopify, etc.), and Webhooks from any HTTP sender (with HMAC, Standard Webhooks, Basic auth, or API key verification). Additional sources can be added via defineSource to add other sources.
  • Subscriber-defined filters: Events can have filters, for example filtering by email sender, GitHub repository, and action, to decide which events wake the agent.
  • Event verification and reliable delivery: Event Gateway verifies each service's signature, retries failures, deduplicates within one hour, and retains records of each event and delivery attempt.
  • Stateless design: Each subscription corresponds to one Event Gateway connection, with no database required.
  • Compatible with clients that do not support MCP Events: Provides polling tools and a Claude Code plugin, covering clients that do not yet support MCP Events.

Usage

  1. Environment requirements: Node 22.12 or later; a Hookdeck account and project (to obtain an API key and signing secret); Hookdeck CLI (for local running); at least one event source (Resend, GitHub, or any service that sends Webhooks).
  2. Create a project and install:
    mkdir my-bridge && cd my-bridge
    npm init -y && npm pkg set type=module
    npm install @hookdeck/mcp-events-bridge
    printf 'node_modules/\n.env\n.hookdeck/\n' > .gitignore
    
  3. In bridge.config.ts select a source, for example:
    import { defineConfig, env } from '@hookdeck/mcp-events-bridge';
    import { github, resend } from '@hookdeck/mcp-events-bridge/sources';
    export default defineConfig({
      sources: [
        resend({ apiKey: env('RESEND_API_KEY') }),
        github({ token: env('GITHUB_TOKEN', { optional: true }), scope: { repos: ['your-org/your-repo'] } }),
      ],
    });
    
  4. In .env add credentials:HOOKDECK_API_KEY、HOOKDECK_SIGNING_SECRET、RESEND_API_KEY(if using Resend),GITHUB_TOKEN(if using GitHub). npx mcp-events-bridge setup create Event Gateway resources and Webhooks. The first run generates an MCP secret, which needs to be added to .env as BRIDGE_MCP_SECRET. npx mcp-events-bridge serve start the bridge. When running locally, serve checks whether setup has already been run and starts hookdeck listen to receive Event Gateway notifications and local agent events. https://<bridge>/mcp/<BRIDGE_MCP_SECRET>, select No Authentication. Claude Code can install the plugin, which provides an MCP endpoint (https://<bridge>/mcp) and secret (sent as the Authorization: Bearer header), and the plugin maintains a watchlist for each project and polls the bridge.

Applicable scenarios

Suitable for developers who want agents (ChatGPT, Claude Code, Hermes Agent, etc.) to react to events in services they already use. For example: notify the agent when an email from a specific sender is received, trigger the agent when a GitHub repository has a new Issue or comment, perform an action when a Stripe invoice is paid successfully, etc.

Notes

  • The project status is 0.9, MCP Events is an experimental extension, and the package may change accordingly.
  • Requires a Hookdeck account and the Event Gateway service.
  • ChatGPT connections require the bridge to be publicly accessible (deployed or tunneled), and ChatGPT cannot send an Authorization header, so the secret is placed in the URL and must be kept confidential.
  • Some Event Gateway source types (such as GitLab, Grafana, Azure Event, SendGrid Inbound Parse, Ordinal) are not yet supported; use a Webhook source or a custom definition instead.
  • Removing a source or repository does not automatically delete the corresponding Webhook and Event Gateway sources; they must be deleted manually.
  • After upgrading the bridge or adding a source, you need to refresh the plugin in ChatGPT to subscribe to new events.
  • Pausing a ChatGPT task cancels the subscription; after resuming, it resubscribes from the current time, and events during the pause are not delivered or replayed, but can be listed via list_events .
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools