revsheller
Hosted reverse and forward shell relay for CTFs, labs and authorized testing.
Should I use this
Quality & Safety
Findings (3)
- HIGH
- MEDIUMin tunnel_create
- INFOin tunnel_create
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"revsheller": {
"url": "https://revsheller.com/mcp"
}
}
}Remote endpoints
https://revsheller.com/mcpstreamable-httpWhat it can do
Tool inventory
Tools (11)
🟡create_session(mode, target_host, target_port, custom_subdomain)
Create a shell relay session for your own authorized lab or CTF target. Reverse mode (default) returns a one-liner to run on the target so it connects back; forward mode dials target_host:target_port (public internet only). Then use run_command / send_input / read_output. Counts against your concurrent session limit.
Input Schema
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"reverse",
"forward"
],
"default": "reverse",
"description": "reverse: target connects back to the relay. forward: the relay connects out to target_host:target_port."
},
"target_host": {
"type": "string",
"description": "Forward mode only: public hostname or IP of the target."
},
"target_port": {
"type": "integer",
"minimum": 1,
"maximum": 65535,
"description": "Forward mode only: target TCP port."
},
"custom_subdomain": {
"type": "string",
"description": "Optional reserved subdomain you own (Pro Plus)."
}
},
"required": [],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_target_command(session_id, variant, type, encoding)
Regenerate the command to run on the target for an existing reverse session. Default type 'auto' picks whatever the target has (python, curl, bash...). The command embeds the session's target token: treat it as a secret and only run it on a machine you are authorized to test.
Input Schema
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Session id returned by create_session or list_sessions.",
"minLength": 1,
"maxLength": 32
},
"variant": {
"type": "string",
"enum": [
"posix",
"windows"
],
"default": "posix",
"description": "Target OS family."
},
"type": {
"type": "string",
"default": "auto",
"description": "Payload type (see the web UI list), e.g. auto, python_ws, bash_curl, powershell_ws."
},
"encoding": {
"type": "string",
"default": "none",
"description": "Optional encoding such as base64 (aes256 is not available over MCP)."
}
},
"required": [
"session_id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢session_status(session_id)
Connection state of a session: whether the target is connected, whether a browser operator is watching, the last status message, and the current output cursor. Read-only. Poll this after running the target command.
Input Schema
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Session id returned by create_session or list_sessions.",
"minLength": 1,
"maxLength": 32
}
},
"required": [
"session_id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴send_input(session_id, data, append_newline)
Type raw text into the session's shell (a newline is appended by default). Use for interactive programs, Ctrl-C (\u0003) or anything run_command cannot express. Returns the output cursor from just before the write; pass it to read_output to see the response. The target must be connected.
Input Schema
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Session id returned by create_session or list_sessions.",
"minLength": 1,
"maxLength": 32
},
"data": {
"type": "string",
"minLength": 1,
"maxLength": 16384,
"description": "Text to type. Ctrl-C is \"\\u0003\"."
},
"append_newline": {
"type": "boolean",
"default": true,
"description": "Append a newline (press Enter)."
}
},
"required": [
"session_id",
"data"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢read_output(session_id, cursor, wait_ms, max_bytes, strip_ansi)
Read terminal output after a cursor (from send_input, run_command or an earlier read). Without a cursor it returns the oldest retained output (256 KiB ring). Optionally long-polls up to wait_ms. Read-only: does not keep the session alive. If dropped_bytes > 0 or reset is true, output was lost. If more is true, call again with the returned cursor.
Input Schema
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Session id returned by create_session or list_sessions.",
"minLength": 1,
"maxLength": 32
},
"cursor": {
"type": "string",
"maxLength": 64,
"description": "Cursor from a previous result."
},
"wait_ms": {
"type": "integer",
"minimum": 0,
"maximum": 25000,
"default": 0,
"description": "Long-poll up to this long for new output."
},
"max_bytes": {
"type": "integer",
"minimum": 1,
"maximum": 65536,
"default": 16384
},
"strip_ansi": {
"type": "boolean",
"default": true,
"description": "Remove ANSI escape sequences and normalise line endings."
}
},
"required": [
"session_id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴run_command(session_id, command, shell, timeout_ms, idle_ms, ...)
Run one command in the session's shell and wait for it to finish, returning its output and exit code. Works by typing the command followed by a completion marker, so the shell must be at a prompt (not inside a pager, REPL or heredoc) and the shell type must match. If it does not finish within timeout_ms, completed is false: continue with read_output using the returned cursor, or interrupt with send_input "\u0003". Run one command at a time per session. shell 'raw' types the text as-is and returns after idle_ms of silence.
Input Schema
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Session id returned by create_session or list_sessions.",
"minLength": 1,
"maxLength": 32
},
"command": {
"type": "string",
"minLength": 1,
"maxLength": 16000
},
"shell": {
"type": "string",
"enum": [
"posix",
"powershell",
"cmd",
"raw"
],
"default": "posix",
"description": "Shell running on the target."
},
"timeout_ms": {
"type": "integer",
"minimum": 1000,
"maximum": 55000,
"default": 15000
},
"idle_ms": {
"type": "integer",
"minimum": 0,
"maximum": 30000,
"default": 2000,
"description": "raw shell only: finish after this much silence."
},
"max_bytes": {
"type": "integer",
"minimum": 1,
"maximum": 65536,
"default": 16384,
"description": "Cap on returned output (the tail is kept)."
},
"strip_ansi": {
"type": "boolean",
"default": true
}
},
"required": [
"session_id",
"command"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_sessions
List your live sessions (created from the web UI, API or MCP).
Input Schema
{
"type": "object",
"properties": {},
"required": [],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴close_session(session_id)
Tear down a session: disconnects the target and the browser operator and frees a session slot. Cannot be undone.
Input Schema
{
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Session id returned by create_session or list_sessions.",
"minLength": 1,
"maxLength": 32
}
},
"required": [
"session_id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴tunnel_create(port, name)
Create an HTTP tunnel: a public https URL that will forward to a web server on the user's own machine. Returns the URL, the expiry and the exact command the USER must run on their machine to connect it. The command contains the placeholder rsh_YOUR_KEY: tell the user to replace it with their own API key from the account page; never ask for or handle the key yourself. The URL serves nothing until that command is running. Counts against the tunnel limit; call tunnel_delete when done.
Input Schema
{
"type": "object",
"properties": {
"port": {
"type": "integer",
"minimum": 1,
"maximum": 65535,
"default": 3000,
"description": "Local port of the user's web server (goes into the command)."
},
"name": {
"type": "string",
"maxLength": 32,
"description": "Optional reserved name you own (Pro / Pro Plus): gives <name>.<tunnel domain>."
}
},
"required": [],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢tunnel_list
List your HTTP tunnels with their public URL, whether a client is connected (online), expiry, and this month's bandwidth use against the cap.
Input Schema
{
"type": "object",
"properties": {},
"required": [],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴tunnel_delete(tunnel_id)
Close an HTTP tunnel: disconnects its client, stops serving the URL and frees a tunnel slot. Cannot be undone (random URLs are never reused).
Input Schema
{
"type": "object",
"properties": {
"tunnel_id": {
"type": "string",
"description": "Tunnel id returned by tunnel_create or tunnel_list (e.g. tn-abc123xyz0).",
"minLength": 1,
"maxLength": 63
}
},
"required": [
"tunnel_id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Community
Evidence