SunnyNet MCP Server logo

SunnyNet MCP Server

Community
a121400

基于 SunnyNet 中间件和 SunnyNetTools 抓包工具扩展的 MCP Server

Publishera121400
Repositorysunnymcptool
LanguageJavaScript
Forks
45
Stars
122
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    SunnyNet MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    122 stars and 45 forks from the linked repository.

SunnyNet MCP Server

基于 SunnyNet 网络中间件的 MCP Server,让 AI 直接控制网络抓包、修改请求/响应、管理断点等。

预览

下载

从 Releases 下载:

平台GUI 主程序MCP 桥接
WindowsSunnyNet.exesunnynet-mcp.exe
macOS (Apple Silicon)SunnyNet.appsunnynet-mcp

使用方法

1. 启动 GUI

运行 SunnyNet.exe(Windows)或 SunnyNet.app(macOS),GUI 启动后自动开启 MCP HTTP 端点(默认端口 29999)。

2. 配置 Cursor / Claude Desktop

在 .cursor/mcp.json 或对应配置文件中添加:

json
{
  "mcpServers": {
    "sunnynet": {
      "command": "/path/to/sunnynet-mcp",
      "args": ["-port", "29999"]
    }
  }
}

sunnynet-mcp 是轻量级 stdio→HTTP 桥接程序,将 Cursor 的 JSON-RPC 请求转发到 GUI 的 MCP 端点。

3. 对话使用

在 Cursor 中直接:

  • "启动抓包"
  • "显示最近的请求"
  • "搜索包含 login 的请求"
  • "查看请求 123 的详情"
  • "添加断点拦截 api.example.com"
  • "修改响应体"

架构

Cursor ──stdio──> sunnynet-mcp ──HTTP──> SunnyNet GUI (:29999/mcp)
                                              │
                                         代理端口 (:2024)
                                              │
                                    浏览器/手机/App 流量
  • GUI 主程序:Wails 桌面应用,包含完整 SunnyNet 引擎 + MCP HTTP Server + 可视化界面
  • MCP 桥接:纯 Go 程序(~8MB),处理 MCP 协议握手,转发工具调用到 GUI
  • tshark 后端:集成 Wireshark tshark 实现网卡级原始抓包和协议解析(需单独放置 wireshark/ 目录)

MCP 工具列表

分类工具说明
代理控制proxy_start / proxy_stop启动/停止代理
proxy_set_port设置代理端口
proxy_get_status获取运行状态
proxy_set_ie / proxy_unset_ie设置/取消系统代理
proxy_pause_capture / proxy_resume_capture暂停/恢复捕获
请求request_list获取请求列表(分页)
request_get获取请求详情
request_search按 URL/方法/状态码搜索
request_body_search在 Body 中搜索关键词
request_get_response_body_decoded获取解码后的响应体
request_modify_header / request_modify_body修改请求头/体
response_modify_header / response_modify_body修改响应头/体
request_block阻断请求
request_release_all放行所有拦截的请求
request_resend重发请求

| | request_stats | 抓包统计 | | | request_save_all / request_import | 保存/导入抓包数据(.syn 格式) | | | request_highlight_search / request_highlight_clear | UI 高亮搜索 | | 长连接 | connection_list | 列出 WS/TCP/UDP 连接 | | | socket_data_list / socket_data_get / socket_data_get_range | 数据包操作 | | 断点 | breakpoint_add / breakpoint_list / breakpoint_remove / breakpoint_clear | 断点管理 | | 规则 | replace_rules_add / replace_rules_list / replace_rules_remove / replace_rules_clear | 替换规则。除全局 String/HEX/Base64、响应文件外,还可按请求头、响应头、请求体、响应体、正则、仅 URL 替换,并用 url 限制生效范围 | | | hosts_list / hosts_add / hosts_remove | HOSTS 规则 | | 进程 | process_list / process_add_name / process_remove_name | 进程过滤 | | 抓包(Wireshark) | capture_list_interfaces | 列出网络接口(需 Npcap) | | | capture_start / capture_stop / capture_status | 原始网卡级抓包 | | | capture_read_pcap | 读取 pcap + Wireshark 显示过滤器 | | | capture_packet_detail | 单帧完整协议解析 | | | capture_decode_tls | TLS 密钥日志解密 HTTPS | | | capture_statistics | 协议层次/会话/端点统计 | | 证书 | cert_install / cert_export | CA 证书管理 | | 配置 | config_get | 获取全部配置 |

从源码编译

前置条件:Go 1.23+、Node.js 18+、Wails CLI

bash
git clone https://github.com/a121400/sunnymcptool.git
cd sunnymcptool

# 安装 Wails CLI(如未安装)
go install github.com/wailsapp/wails/v2/cmd/wails@latest

# 编译(自动处理前端 + 后端)
wails build

# 编译 MCP 桥接(可选)
cd headless && go build -o ../build/bin/sunnynet-mcp .

产物在 build/bin/ 目录。macOS 用户可指定平台:wails build -platform darwin/arm64

Wireshark 抓包功能(可选):

capture_ 工具族需要 tshark 可执行文件。将编译好的 Wireshark 放到 build/bin/wireshark/ 目录:

  • Windows: 需要 Npcap 驱动才能实时抓包
  • 从 Wireshark 源码 编译或下载官方安装包中的 tshark.exe

安卓云函数抓包 (Cloud安卓)

一键抓取安卓微信小程序的云函数 API 调用,无需配置代理证书。

原理

通过 Frida 动态注入 Hook 微信进程的 AppBrandCommonBindingJni.nativeInvokeHandler 和 invokeCallbackHandler,实时拦截所有云函数的请求和响应。

使用

  1. 手机连接 USB,打开 USB 调试
  2. 手机需要 ROOT 权限(Magisk / KernelSU)
  3. 在 SunnyNet GUI 点击顶部 "Cloud安卓" 按钮
  4. 程序自动检查环境(Node.js / ADB / Frida),缺失的组件会自动下载安装
  5. 环境就绪后自动启动 Hook,成功后弹窗提示,开始捕获云函数调用

自动处理

点击 Cloud安卓 按钮后,程序会依次自动检查并安装所有必需环境:

  • Node.js:未安装则自动下载便携版到 %APPDATA%/SunnyNet/node/
  • ADB:未安装则自动下载 Android Platform Tools 到 %APPDATA%/SunnyNet/adb/
  • Frida 依赖:内置 frida + frida-java-bridge(已打包在二进制中,无需 npm install)
  • frida-server:自动检测手机版本,不匹配则下载安装对应版本

日志查看

  • 右键点击 Cloud安卓 按钮可打开日志窗口,查看所有步骤的详细日志
  • 启动失败或 Hook 异常退出时会自动弹出日志窗口

列表显示

  • 蓝色上箭头 →发送:小程序发出的请求
  • 绿色下箭头 ←响应:微信返回的响应
  • 点击条目查看完整 JSON 数据

相关文件

  • cloud_hook.go — Hook 生命周期管理 + 数据转换
  • adb_frida.go — ADB 设备管理 + frida-server 部署
  • frida-scripts/ — 嵌入的 JS 注入脚本

项目结构

├── main.go              # Wails 入口
├── app.go               # Wails App 绑定
├── public.go            # GUI↔Go 回调
├── cloud_hook.go        # 安卓云函数 Hook 服务
├── adb_frida.go         # ADB/Frida 设备管理
├── frida-scripts/       # Frida 注入脚本(嵌入到二进制)
├── mcp/                 # MCP Server 框架(registry, validator, middleware)
│   └── tools/           # MCP 工具实现(request, proxy, breakpoint, replace...)
├── headless/            # stdio→HTTP MCP 桥接程序
├── ios-tool/            # iOS 越狱抓包辅助工具
│   ├── hide_proxy.c     # CydiaSubstrate 代理检测绕过
│   ├── HideProxy.plist  # MobileSubstrate 过滤器
│   └── sunny-tool.sh    # iOS 一键 CA 证书+代理配置
├── CommAnd/             # 平台特定命令(darwin/windows/linux)
├── MapHash/             # 请求哈希表存储
├── SunnyNet/            # SunnyNet 核心引擎(内嵌源码)
├── frontend/            # Vue.js 前端(AG-Grid + Element Plus)
├── scripts/             # 构建脚本
└── build/               # Wails 构建配置

iOS 抓包工具

ios-tool/ 目录提供越狱 iOS 设备的抓包辅助:

  • hide_proxy.c — Hook CFNetworkCopySystemProxySettings(),让 App 看不到代理设置
  • sunny-tool.sh — 一键安装 SunnyNet CA 证书到 iOS TrustStore + 配置 WiFi 代理

详见 ios-tool/README 目录内的源码注释。

致谢

License

MIT

Installation

TypingMind
{
  "mcpServers": {
    "sunnymcptool": {
      "command": "SunnyNet.exe",
      "args": []
    }
  }
}

Use SunnyNet MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once SunnyNet MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add SunnyNet MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the SunnyNet MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "sunnymcptool": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the SunnyNet MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the SunnyNet MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use SunnyNet MCP Server to help me with this task?
SunnyNet MCP Server
Sure. I read it.
Here is what I found using SunnyNet MCP Server.

Frequently asked questions

What is the SunnyNet MCP Server MCP server used for?

SunnyNet MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use SunnyNet MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use SunnyNet MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use SunnyNet MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With SunnyNet MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect SunnyNet MCP Server MCP to TypingMind?

SunnyNet MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does SunnyNet MCP Server MCP provide in TypingMind?

SunnyNet MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use SunnyNet MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If SunnyNet MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇