Skip to main content
Glama
zebbern

Webhook.site MCP Server

by zebbern

Webhook.site MCP 服务器

PyPI Python MCP

一个用于 webhook.site 的模型上下文协议(MCP)服务器——可即时捕获 HTTP 请求、电子邮件和 DNS 查询。非常适合测试 Webhook、调试 API 回调、安全测试和漏洞赏金猎捕。

安全辅助工具(SSRF、XSS、蜜罐令牌)仅用于授权测试——即您拥有或已获得明确许可的系统。


目录


Related MCP server: hookray-mcp

快速开始

安装

# Using uvx (recommended - no install needed)
uvx webhook-mcp-server==2.2.2

# Or install via pip
pip install webhook-mcp-server==2.2.2

请使用 2.2.2 或更新版本。2.1.3 无法在 MCP 2.0 上启动。

VS Code / GitHub Copilot

添加到 .vscode/mcp.json

{
  "servers": {
    "webhook-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": ["webhook-mcp-server==2.2.2"]
    }
  }
}

Cursor

添加到 .cursor/mcp.json(项目)或您的用户 MCP 配置中:

{
  "mcpServers": {
    "webhook-mcp-server": {
      "command": "uvx",
      "args": ["webhook-mcp-server==2.2.2"]
    }
  }
}

Claude Desktop

添加到 claude_desktop_config.json

{
  "mcpServers": {
    "webhook-mcp-server": {
      "command": "uvx",
      "args": ["webhook-mcp-server==2.2.2"]
    }
  }
}

你能做什么?

捕获 Webhook

"Create a webhook and show me the URL"
"What requests have been sent to my webhook?"
"Wait for a request to come in"

安全/漏洞赏金:

"Generate an SSRF payload to test for blind vulnerabilities"
"Create XSS callback payloads to detect blind XSS attacks"
"Make me a canary token to detect if someone accesses a URL"

电子邮件自动化:

"Create a temp email and wait for a password reset link"
"Monitor this webhook for emails and extract all links from them"
"Give me 3 temporary emails at once" (batch creation)

API 测试:

"Create a webhook that returns a 404 error with a custom message"
"Make a webhook with CORS enabled that waits 5 seconds before responding"
"Send 10 different test requests to a webhook and show me all the captured data"

实时监控:

"Create a webhook and wait for any HTTP request to arrive"
"Monitor for DNS lookups to detect if a server is making DNS queries"
"Search all requests for ones containing 'password' in the body"

数据分析:

"Export all captured webhook requests to JSON format"
"Show me statistics on requests received in the last hour"
"Filter and show only POST requests with specific headers"

创意/实用:

"Create a webhook that pretends to be a Stripe payment API"
"Make a fake login endpoint that captures credentials (for pentesting)"
"Set up an email inbox that auto-extracts verification codes"

蜜罐令牌

"Create a canary URL to track document access"
"Generate a DNS canary for the config file"
"Set up an email tracker pixel"

工具参考

Webhook 管理

工具

描述

create_webhook

从这里开始:用于注册或回调的一次性 URL、临时电子邮件和 DNS

create_webhook_with_config

使用自定义响应、状态、CORS、超时创建

get_webhook_url

获取 webhook 令牌的完整 URL

get_webhook_email

用于注册/验证/魔法链接/重置的临时收件箱 {token}@email.webhook.site

get_webhook_dns

获取 Webhook 的 DNS 子域

get_webhook_info

获取 Webhook 设置和统计信息

update_webhook

修改 Webhook 配置

delete_webhook

删除 Webhook 端点

请求处理

工具

描述

send_to_webhook

向 Webhook 发送 JSON 数据

get_webhook_requests

列出所有捕获的请求

search_requests

使用过滤器搜索(方法、内容、日期)

get_latest_request

获取最近捕获的请求

delete_request

删除特定请求

delete_all_requests

使用过滤器批量删除

实时等待

工具

描述

wait_for_request

等待新的 HTTP 请求(轮询,1-120 秒)。设置 return_existing 以复用旧流量。

wait_for_email

注册后:等待验证/魔法链接/重置邮件、链接和 OTP 代码

follow_email_link

打开捕获的验证/魔法/重置 URL 并返回页面预览

漏洞赏金/安全

工具

描述

generate_ssrf_payload

创建 SSRF 测试载荷(HTTP、DNS、基于 IP)

generate_xss_callback

创建带有 Cookie/DOM 捕获的 XSS 回调载荷

generate_canary_token

创建可追踪的 URL、DNS 或电子邮件蜜罐

check_for_callbacks

快速检查 OOB 回调

extract_links_from_request

从捕获的电子邮件或 HTTP 正文中提取确认/重置/魔法链接 URL

批量与实用工具

工具

描述

send_multiple_requests

发送批量请求以进行负载测试

export_webhook_data

将所有请求导出为 JSON


示例

在网站上注册

  1. create_webhook — 获取 email{token}@email.webhook.site

  2. 在网站上使用该地址(注册、验证、魔法链接或密码重置)

  3. wait_for_email — 接收消息、确认/登录/重置 URL 以及任何 OTP

  4. follow_email_link 打开验证链接,或在网站上输入 verification_codes

如果您已有令牌,get_webhook_email 会返回相同的收件箱。

创建 Webhook

// Response from create_webhook
{
  "token": "abc123-def456-...",
  "url": "https://webhook.site/abc123-def456-...",
  "email": "abc123-def456-...@email.webhook.site",
  "dns": "abc123-def456-....dnshook.site"
}

等待密码重置电子邮件

// Response from wait_for_email
{
  "email_received": true,
  "subject": "Password Reset Request",
  "from": "noreply@example.com",
  "auth_links": ["https://example.com/reset?token=xyz789"],
  "verification_codes": ["847291"]
}

SSRF 测试载荷

// Response from generate_ssrf_payload
{
  "payloads": {
    "http": "https://webhook.site/token?id=ssrf-test",
    "dns": "ssrf-test.token.dnshook.site",
    "ip_decimal": "http://2130706433/token",
    "ip_hex": "http://0x7f000001/token"
  }
}

每个 Webhook 令牌提供

端点

格式

使用场景

HTTP URL

https://webhook.site/{token}

捕获 HTTP/HTTPS 请求

子域

https://{token}.webhook.site

替代 URL 格式

电子邮件

{token}@email.webhook.site

捕获传入的电子邮件

DNS

{token}.dnshook.site

捕获 DNS 查询


架构

webhook-mcp-server/
├── server.py              # MCPServer entry point + lifespan
├── handlers/              # Typed @mcp.tool() registrations
├── services/              # Business logic
│   ├── webhook_service.py # Webhook CRUD
│   ├── request_service.py # Request management
│   └── bugbounty_service.py # Security payloads
├── models/                # Config / filter / result types
└── utils/                 # HTTP client, logging, validation

主要特点

  • 异步架构 - 非阻塞 I/O 以实现最佳性能

  • 重试逻辑 - 针对瞬时故障的指数退避

  • 输入验证 - UUID 验证、参数清理

  • 结构化日志记录 - 用于调试和监控的 JSON 日志

  • 类型安全 - 全程完整的类型提示


开发

设置

git clone https://github.com/zebbern/webhook-mcp-server.git
cd webhook-mcp-server
pip install -e ".[dev]"

运行测试

# Offline unit tests (default for CI)
pytest -m "not live" -v

# Live webhook.site tests
pytest -m live -v

本地运行

python server.py

要求

  • Python 3.10+

  • mcp >= 2.0.0

  • httpx >= 0.25.0


变更日志

有关版本历史,请参阅 CHANGELOG.md


贡献

欢迎贡献!你可以通过以下方式提供帮助:

  1. 报告错误 - 打开一个问题描述问题

  2. 建议功能 - 打开一个问题并附上你的想法

  3. 提交 PR - 分叉仓库并提交拉取请求

开发设置

git clone https://github.com/zebbern/webhook-mcp-server.git
cd webhook-mcp-server
pip install -e ".[dev]"
pytest -m "not live" -v

指南

  • 遵循现有代码风格

  • 为新功能添加测试

  • 根据需要更新文档

  • 保持 PR 专注于单一变更


致谢

本项目与 webhook.site 无关联,也未获得其认可。

链接


为 MCP 社区用 ❤️ 制作

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
Response time
3wRelease cycle
12Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to create disposable webhook URLs, capture incoming HTTP requests, inspect headers and bodies, and replay them against local or remote endpoints, streamlining the webhook handler development loop.
    5
    13
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables management and inspection of webhook tokens (URLs) and incoming requests via webhook-test.com, allowing users to create, list, fetch details, fetch payloads, and delete webhooks without custom API integrations.

View all related MCP servers

Related MCP Connectors

  • A webhook inbox for agents: one call returns a live URL. Mock, verify, inspect and replay.

  • Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.

  • URL intelligence for AI agents and developers. 16 tools, 25 signal weights, 20 free checks.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zebbern/webhook-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server