MCP端点重建🎯
功能强大的MCP(模型上下文协议)服务器,用于全面的API端点发现和文档。通过AdsPower浏览器配置文件从任何网站捕获所有内容-标题、Cookie、令牌、有效载荷和响应数据。
特性
🚀 两个强大的工具
1. adspower_capture_everything
- 仅捕获Fetch/XHR请求(过滤掉静态资产)
- 提取完整的标头、Cookie、令牌、有效载荷和预览数据
- 生成清洁
endpoints.md有组织文档的文件 - 包括Python/JavaScript使用示例
- 非常适合以API为中心的侦察
2. adspower_comprehensive_commander (高级)
从工具#1 PLUS开始:
- 自动导航:单击所有按钮、下拉菜单和交互元素
- 页面发现:分析API响应以查找新页面/URL
- 端点→ 页面映射:显示哪些端点显示哪些页面
- 智能点击:跟踪已点击的内容以避免重复
- 时间长:彻底探索的默认时间为60秒
✅ 什么被捕获
- 标头:所有请求/响应标头,包括身份验证
- Cookie:具有正确格式的会话Cookie和身份验证Cookie
- 代币:从头部/有效载荷自动提取的授权、CSRF、API密钥
- 有效载荷:完整的请求有效载荷(可能时解析JSON)
- 预览数据:智能提取关键响应数据字段
- 仅限FETCH/XHR:过滤掉图像、CSS和其他静态资源
- 清洁文档:带有用法示例的漂亮端点.md
安装
# Clone the repository
git clone https://github.com/yourusername/mcp-endpoint-recon.git
cd mcp-endpoint-recon
# Install dependencies
npm install
# Add to Claude Desktop config添加到您的Claude Desktop配置(~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"endpoint-recon": {
"command": "node",
"args": ["/path/to/mcp-endpoint-recon/src/index.js"]
}
}
}用法
基本捕捉(30秒)
# Through MCP in Claude
endpoint-recon: adspower_capture_everything
- adspowerPort: "63812"
- targetUrl: "https://example.com"自动导航高级(60秒)
# Through MCP in Claude
endpoint-recon: adspower_comprehensive_commander
- adspowerPort: "63812"
- targetUrl: "https://example.com"
- duration: 90 # Optional: extend to 90 seconds输出文件
这两种工具都会生成:
endpoints-{domain}.md-干净、有序的文件,包括:
- 身份验证令牌和Cookie - 所有发现的API终结点 - 请求/响应示例 - Python和JavaScript代码片段 - 发现的页面和映射
endpoints-{domain}.json-程序使用的原始数据
输出示例
# 📡 API Endpoints Documentation
**Domain:** example.com
**Total Endpoints:** 47
**Discovered Pages:** 12
## 🔐 Authentication Tokens
授权=持有人姓名。.. X-CSRF-Token=a8f93jf93jf93jf93j。我…
## 📋 API Endpoints
### /api/v1
#### GET /api/v1/user/profile
**Headers:**{ "Authorization": "Bearer ...", "Content-Type": "application/json" }
...
Requirements
- Node.js 16+
- AdsPower browser with debug port enabled
- Active browser profile logged into target site
How It Works
- Connects to AdsPower browser via Chrome DevTools Protocol
- Intercepts all Fetch/XHR network requests
- Extracts authentication data, headers, and payloads
- (Advanced mode) Automatically clicks through the UI to discover more endpoints
- Analyzes API responses to find hidden pages and endpoints
- Generates comprehensive documentation
Contributing
Feel free to submit issues and enhancement requests!
License
MIT```
