Blog · · 5 min read

MCP vs Webhooks: Differences and How They Work Together

MCP lets an AI client call tools; a webhook pushes an event to another URL. How they differ, what the 2026-07-28 MCP spec says about async, and how to combine them.

Key points

  • MCP is a protocol for AI clients (Claude Code, Cursor and others) to call tools and read data on a server; the AI side starts every exchange. A webhook is an HTTP POST that a service sends to someone else's URL when something happens; the side where the event happened starts it.
  • The 2026-07-28 MCP spec has no webhook mechanism. Long-running work lives in the Tasks extension, where the client polls with tasks/get.
  • They combine well in two ways: expose webhook configuration as MCP tools, or receive webhooks on your own server and hand the events to an agent.

MCP (Model Context Protocol) is how an AI client calls tools and reads data from a server. A webhook is an HTTP POST a service sends to another system's URL when something happens. With MCP, the AI side asks; with webhooks, the side where the event happened tells. They point in opposite directions, which is why they complement each other rather than compete.

Side by side

MCP Webhooks
Purpose Let an AI call tools and read data Notify another system that something happened
Who starts it The AI client (host) The service where the event occurred
Direction Client → server, request and response Sender → receiver, one-way notification
Message format JSON-RPC 2.0 Provider-defined JSON (or a shared format such as Standard Webhooks)
Transport stdio or Streamable HTTP HTTPS POST
Auth Optional OAuth 2.1-based authorization on HTTP transports Receiver verifies a signature (usually HMAC)
If the other side is down The call fails and the AI decides what to do The sender retries later
Fan-out One client connects to many servers One event goes to many endpoints

The current MCP spec is the 2026-07-28 revision. It defines two standard transports, stdio and Streamable HTTP, and states that servers do not initiate JSON-RPC requests (Specification, Transports, Authorization, all checked 2026-09-27).

What MCP says about async work

The obvious question: can an MCP server call you back when a long job finishes, like a webhook would? As of the 2026-07-28 revision:

  • Long-running operations moved out of the core into the Tasks extension (io.modelcontextprotocol/tasks). Clients poll with tasks/get, and there's a new tasks/update (2026-07-28 release post).
  • The Tasks proposal (SEP-2663) adds pollIntervalMs and ttlMs, and lets servers push status via notifications/tasks, but only to clients that opted in with subscriptions/listen. That's a stream the client holds open, not a POST to a URL the client exposes (SEP-2663).
  • The core became stateless: the initialize handshake and the Mcp-Session-Id header are gone, and each request carries its own metadata.

A proposal to add webhooks to MCP was opened in May 2025 (Discussion #523, "Webhooks for Operations in MCP"). One objection in the thread was that receiving webhooks "assumes they have a stable IP or DNS and are always online," which most AI clients running on a laptop or in a browser don't. The discussion was closed on 2026-09-25 without the feature entering the spec. (All checked 2026-09-27.)

So if you need push, you still need a webhook endpoint somewhere, just not inside the AI client.

Two ways to combine them

Pattern 1: configure webhooks through MCP tools

The service that sends webhooks also runs an MCP server, exposing tools for registering endpoints, sending a test event and retrying failures. A developer can then ask their coding agent to do the setup:

You:   Register https://example.com/webhooks as an endpoint for customer_123 and send a test event
Agent: Called create_endpoint (ep_…, secret whsec_…)
       Called send_test (msg_…). The endpoint answered 204

Delivery still happens over plain HTTPS. MCP is the control surface for setup and debugging.

Pattern 2: feed incoming webhooks to an agent

Your server receives webhooks from other services (payments, forms, CI) and uses them to start or inform an agent:

  1. The webhook endpoint verifies the signature and stores the event.
  2. A worker picks up the stored event and starts the agent with it.
  3. The agent calls MCP tools if it needs more context.

Because the receiving endpoint lives outside the AI client, the "clients can't accept inbound requests" problem doesn't arise. The reverse case, where an agent runs a long job and needs to notify another system when it's done, is covered in Webhooks for AI agents.

Choosing

You want to Build
Tell customers' systems about payments, orders or other events as they happen Webhook sending
Let customers use your product from their AI client An MCP server
Let developers set up and debug your webhooks from their AI client An MCP server with webhook configuration tools
Kick off an agent when something happens elsewhere A webhook endpoint plus an agent runner

MCP runs only when an AI calls it, so it can't replace a notification that has to go out while nobody's asking. Webhooks are one-way, so they can't replace an AI querying or changing things on demand.

Security works differently

The trust questions are mirror images. With MCP, the server has to decide whether the client calling it is allowed to act for a user, which is why the spec leans on OAuth for HTTP transports, and the host has to decide whether to trust the server's tools. With webhooks, the receiver has to decide whether a POST really came from the sender, which is what signatures, timestamps and event IDs are for (Webhook security checklist). A system that uses both needs both sets of checks: OAuth on the MCP endpoint, and signature verification on the webhook endpoint.

How Webhook Admin fits

Webhook Admin is a service for sending webhooks to your customers. Deliveries are HTTPS POSTs signed in the Standard Webhooks format, and separately there's an MCP server at https://mcp.webhookadmin.com/mcp. That's Pattern 1: from Claude Code, Claude Desktop or Cursor you can create a project, register endpoints, send tests and retry failed deliveries. Setup is in the MCP docs and in Set up webhook sending from Claude Code and Cursor via MCP.

If you're about to build webhook sending for your product, you can try Webhook Admin free for up to 50,000 messages a month: https://app.webhookadmin.com/signup

FAQ

If I have an MCP server, do I still need webhooks?

Yes. MCP only runs when the AI client calls it. Anything that happens while no one is asking, like a payment clearing or a form being submitted, has to be pushed to the other system, and that's what webhooks do.

How can an MCP server receive webhooks?

Not through MCP; the spec has no inbound webhook mechanism. Run a normal HTTP endpoint alongside the MCP server, verify and store incoming events there, and expose a tool that lets the AI read the stored events.

Which should I build first?

If customers need to hear about events in their own systems, build webhook sending first. If you want AI clients to operate your product, build MCP. When you need both, exposing webhook configuration as MCP tools lets the two share the same backend.

Related posts