- Reqable Mcp Server
Overview
Reqable MCP Server
reqable-mcp 用于把本地 Reqable 抓包数据暴露给 MCP 客户端(Windsurf/Cursor/Claude/Codex)。
默认采用本地优先架构:
- Reqable 把 HAR(JSON) 上报到
http://127.0.0.1:18765/report。 reqable-mcp解析后写入本地 SQLite。- MCP 工具只读取本地数据,不走默认云端中转。
核心特性
- 本地优先、隐私优先。
- 基于 Report Server 的近实时上报。
- 支持 HAR 文件补录兜底。
- 请求列表、检索、域名统计、API 结构分析、代码生成。
- 跨平台可用(macOS / Linux / Windows,Python 3.10+)。
前置条件
- 已安装并打开 Reqable。
- 在 Reqable 中配置 Report Server 上报到
http://127.0.0.1:18765/report。 - 本机具备 Node.js(给
npx)和uv(给uvx)。
安装与启动
npx 启动(推荐)
npx -y reqable-mcp@latest
本地开发运行
uv run reqable-mcp
MCP 配置示例
{
"mcpServers": {
"reqable": {
"command": "npx",
"args": ["-y", "reqable-mcp@latest"]
}
}
}
Reqable Report Server 配置
在 Reqable 的“添加报告服务器”中建议填写:
- 名称:
reqable-mcp-local - 匹配规则:
*(或你自己的目标域名规则) - 服务器 URL:
http://127.0.0.1:18765/report - 压缩:
无(或与接收端保持一致)
保存后产生一点请求流量,再调用 ingest_status 验证计数是否增长。
可用工具
ingest_status:查看接收端状态和计数import_har:从 HAR 文件导入list_requests:按条件列出请求get_request:按 ID 查询明细search_requests:按关键字检索 URL/Bodyget_domains:按域名聚合统计analyze_api:分析某域名 API 结构generate_code:从抓包生成调用代码
环境变量
| 变量 | 说明 | 默认值 |
|---|---|---|
REQABLE_INGEST_HOST | 接收服务监听地址 | 127.0.0.1 |
REQABLE_INGEST_PORT | 接收服务监听端口 | 18765 |
REQABLE_INGEST_PATH | 接收服务路径 | /report |
REQABLE_DATA_DIR | 本地数据目录 | 平台默认应用数据目录 |
REQABLE_DB_PATH | SQLite 文件路径 | ${REQABLE_DATA_DIR}/requests.db |
REQABLE_MAX_BODY_SIZE | 每条请求落库 body 最大字节数 | 102400 |
REQABLE_MAX_REPORT_SIZE | 单次上报最大字节数 | 10485760 |
REQABLE_MAX_IMPORT_FILE_SIZE | HAR 导入文件最大字节数 | 104857600 |
REQABLE_RETENTION_DAYS | 数据保留天数 | 7 |
REQABLE_INGEST_TOKEN | 可选本地鉴权 token | 未设置 |
隐私与保留策略
- 默认模式下数据仅存本机。
- 过期数据会按保留窗口自动清理。
- 若接收端离线,Reqable 对失败上报默认不重试,该次数据会丢失。
许可证
MIT
Server Config
{
"mcpServers": {
"reqable": {
"command": "npx",
"args": [
"-y",
"reqable-mcp@latest"
]
}
}
}Project Info
Created At
2 months agoUpdated At
2 months agoAuthor Name
ElonJaskStar
-Language
-License
-Tags
Recommend Servers
View AllOmni Dev
@rust-works
4 hours ago
Serper MCP Server
@garymengcom
A Serper MCP Server
Python
a year ago
Memchats
4 hours ago
Youtube Transcript Mcp
@hancengiz
19 hours ago
Filesystem
@modelcontextprotocol
a month ago
Mira
26 minutes ago
Nordic Data
2 days ago