ProxyPin MCP Server - 整合版,提供HTTP抓包、请求管理、代码生成等功能
Project description
ProxyPin MCP Server
ProxyPin 的 MCP 服务器,作用通俗点说就是 抓包软件有啥功能,ai都能调用啥功能;
功能特性
- 请求管理: 高级搜索、获取请求详情、重放请求、最近请求、清空请求
- 代码/命令生成: 生成 Python/JS/cURL 代码或 cURL 命令
- 重写与拦截: 屏蔽 URL、添加请求/响应重写规则
- 脚本管理: 创建/更新/列出 JavaScript 脚本用于请求处理
- 代理控制: 启动/停止代理、获取代理状态、Hosts 映射
- HAR 导入导出: 导出 HAR、导入 HAR
- 分析统计: 请求统计、对比请求、提取 API 端点
- 其它: 设置 ProxyPin 配置、导出统计信息等
环境要求
- Python 3.10+
- ProxyPin: 默认本机监听17777作为mcp通信端口,
http://127.0.0.1:17777(不要和抓包工具的9099端口搞混,这是两个概念) - 如果需要手机抓包,随便找一个能转发手机请求的软件就行,然后局域网挂代理到电脑的17777端口;这里推荐proxypin的app版本,appproxy等等;
- Python 依赖:
fastmcp,requests
安装
- 下载内置mcp的proxypin:目前全平台都编译了,本仓库放了一个win的,其他平台 有需要的去我的proxypin仓库下载即可
- 下载mcp的py文件:release中的py文件,下载了随便找个地方放;
使用
-
启动 ProxyPin 然后能正常抓包;默认端口是9099
这一步是你本来就要做的,跟mcp没关系
-
启动 mcp 服务,并设置监听端口 17777
这一步是为了proxypin监听ai的mcp工具调用请求
-
问你的ai连上没有 或者 手动测试
python proxypin_mcp_server.py
在 IDE 中配置 MCP(示例):
"proxypin-mcp": {
"command": "你的python.exe路径",
"args": ["你下载的py文件路径"],
"disabled": false,
"autoApprove": [
"search_requests", "get_request_details", "replay_request", "generate_code", "get_curl",
"block_url", "add_response_rewrite", "add_request_rewrite", "update_script", "get_scripts",
"set_config", "add_host_mapping", "get_proxy_status", "start_proxy", "stop_proxy",
"export_har", "import_har", "get_recent_requests", "clear_requests", "get_statistics",
"compare_requests", "find_similar_requests", "extract_api_endpoints"
]
}
工具列表(主要)
请求与搜索 (5)
search_requests- 高级搜索 HTTP 请求get_request_details- 获取请求详细信息replay_request- 重放请求get_recent_requests- 获取最近请求列表(Legacy)clear_requests- 清空捕获的请求
代码与命令 (2)
generate_code- 生成示例代码(python/js/curl)get_curl- 生成 cURL 命令
重写与拦截 (3)
block_url- 屏蔽 URLadd_response_rewrite- 添加响应重写规则add_request_rewrite- 添加请求重写规则
脚本管理 (2)
update_script- 创建或更新 JavaScript 脚本get_scripts- 列出所有脚本
代理与网络 (4)
start_proxy- 启动代理服务器stop_proxy- 停止代理服务器get_proxy_status- 获取代理状态add_host_mapping- 添加 Hosts 映射
HAR 与导入导出 (2)
export_har- 导出 HARimport_har- 导入 HAR
分析与统计 (3)
get_statistics- 获取请求统计信息compare_requests- 对比两个请求extract_api_endpoints- 提取并分组 API 端点
其它 (2)
set_config- 设置 ProxyPin 配置(例如 system_proxy, ssl_capture)find_similar_requests- 查找相似请求
常见问题
- ProxyPin 连接失败: 配不上一般都是整个通信过程没搞懂导致端口配的乱七八糟;
- 请求为空: 检查是否正确启用了proxypin代理并已捕获流量
贡献 欢迎提交 issue 或 PR 来补充更多工具、增强稳定性或完善文档。
License MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_lunfengchen_proxypin_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_lunfengchen_proxypin_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4265c68f313f63548f41a4dc1ed3a7e0d0eebf3a4e48a15eecb5605b9cdc260
|
|
| MD5 |
7d650d340ce8a0f601e7dce3a2111840
|
|
| BLAKE2b-256 |
12c4796bfc1e34f67d3329db2b4785b19d051acc345c3db31352e1f4533a7bd3
|
File details
Details for the file iflow_mcp_lunfengchen_proxypin_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_lunfengchen_proxypin_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95ebc9b3bd31642a8a73a056aa9a7eb0195bb4dce4db7c3e29eb5b13c1bf7c73
|
|
| MD5 |
117611126ead69b1677bd103e0b6179f
|
|
| BLAKE2b-256 |
79f5e78d8638444b582ace25bc54fe10f54c6e0b86652f625696609a9f169211
|