wsrx-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wsrx-mcpConnect to wss://ctf.example.com/api/traffic/abc123?port=9999 and tell me the local endpoint"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wsrx-mcp
English | 简体中文
An MCP (Model Context Protocol) server that manages WebSocket Reflector X (wsrx) tunnels.
The ret2shell CTF platform exposes dynamic challenge instances only through WebSocket traffic links such as:
wss://ctf.example.com/api/traffic/<token>?port=9999Platforms that hand out plain host:port pairs can be reached with nc / pwntools directly; these links cannot.
wsrx bridges a WebSocket endpoint to a local TCP port; wsrx-mcp then wraps starting, inspecting, and closing tunnels as MCP tools, so your MCP client (Claude Desktop, Codex, etc.) can call them directly — no manual terminal work.
┌───────────────┐ TCP ┌──────────────┐ WSS ┌───────────────────┐
│ nc / pwntools ├─────────►│ wsrx connect ├─────────►│ platform instance │
└───────────────┘ :1337 └──────────────┘ wss link └───────────────────┘
managed by wsrx-mcp (MCP tools)Tools
Tool | Description |
| Forward a local TCP port to a |
| List tunnels: remote, local port, endpoint, PID, alive. |
| Close a tunnel by its local port or remote URL. |
| Close every tunnel. |
| Check the wsrx binary is on PATH and list current tunnels. |
Related MCP server: ptywright
Requirements
Python 3.10+
The
wsrxCLI (releases) installed and on PATH, or setWSRX_BINARYto its location.
Install & configure
Run directly from GitHub with uvx (recommended — no clone needed):
{
"mcpServers": {
"wsrx": {
"command": "uvx",
"args": ["--from", "git+https://github.com/springbot2025/wsrx-mcp", "wsrx-mcp"]
}
}
}Or install once, then point your MCP client at the wsrx-mcp command:
pipx install git+https://github.com/springbot2025/wsrx-mcp{
"mcpServers": {
"wsrx": { "command": "wsrx-mcp" }
}
}Configuration (environment variables)
Variable | Default | Description |
|
| Path/resolved name of the wsrx executable. |
|
| Address tunnels bind to. Use |
|
| How long to wait for the local port to become connectable, in seconds. |
Example session
Ask your agent:
Connect to wss://ctf.example.com/api/traffic/abc123?port=9999 (the wsrx link from the ret2shell platform) and tell me the local endpoint.
The agent calls wsrx_connect, gets back {"endpoint": "127.0.0.1:54321", ...}, and can then run nc 127.0.0.1 54321 or use pwntools to connect. The same tunnel is reused across calls, and all tunnels close when the service exits.
Security notes
Tunnels bind to
127.0.0.1by default.The server manages subprocesses and holds no credentials — traffic tokens live in the URLs you pass in.
Only
ws://andwss://remotes are accepted.
Development
pip install -e . pytest
pytestThe tunnel core (wsrx_mcp.manager) has no MCP dependency and is fully injectable for testing.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Run commands and read/write files on your servers over Termalin's keyless tunnels (hosted MCP).
Build, deploy, and operate hosted web apps on VibeKit (vibekit.bot) from any MCP client.
Host your MCP tool over streamable HTTP in one command.
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for WebSocket operations, enabling connect, send, receive, and manage WebSocket connections and servers.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to launch and interact with terminal/TUI programs, providing tools to inspect and control live CLI/TUI sessions.25 npm1Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables remote desktop control with screen capture and mouse/keyboard simulation through an MCP server exposed via a WebSocket tunnel.-
- AlicenseNot gradedqualityAmaintenanceEnables MCP clients to connect to a local workspace over a public tunnel and lets them run shell commands and transfer files bidirectionally.262 npm21GPL 3.0