About Memory Shell MCP
Memory Shell MCP is an MCP server published by RuoJi6 in the Developer Tools category: this repository is designed to automate the detection and cleanup of in-memory web shells using MCP in combination with the memory-shell-detector tool. / 本仓库旨在结合 MCP 与 memory-shell-detector 工具,实现对内存 WebShell(内存马)的自动化检测与清除。. Conduid read 9 tools from its source: check_network, download_detector_tools, execute_command, export_report, get_system_info_tool, list_java_processes and 3 more. It is published to PyPI as memory-shell-mcp and runs with uvx.
The repository has 31 stars and 6 forks, is licensed MIT, and its last commit was on 14 Jan 2026. The latest release is 1 (14 Jan 2026): 适配此MCP的jar 项目:memory-shell-detecto的cli.jar在扫描的时候会输出大量文件,会导致AI获取上下文失败. It is the only release Conduid has on record for this repository. It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass Tests present, No dynamic code execution and Scoped permissions. Its topics include shiro, shell, memory-shell, spring, devtools and filter.
Install
uvx memory-shell-mcppip install memory-shell-mcpgit clone https://github.com/RuoJi6/memory-shell-mcpTools (9)
check_network检测网络连通性download_detector_tools下载 Java 内存马检测工具包(detector-agent.jar 和 detector-cli.jar)| Parameter | Type | Description |
|---|---|---|
| ssh_host | string | SSH 主机地址(不指定则从环境变量 SSH_HOST 读取) |
| ssh_key_path | string | SSH 私钥路径(不指定则从环境变量 SSH_KEY_PATH 读取) |
| ssh_password | string | SSH 密码(不指定则从环境变量 SSH_PASSWORD 读取) |
| ssh_port | integer | SSH 端口(不指定则从环境变量 SSH_PORT 读取) |
| ssh_username | string | SSH 用户名(不指定则从环境变量 SSH_USERNAME 读取) |
| tools_dir | string | 工具存放目录,不指定则从环境变量 TOOLS_DIR 读取,都没有则使用系统临时目录 |
| use_ssh | boolean | 是否在远程服务器上下载 |
execute_command执行系统命令(本地或通过 SSH 远程执行)| Parameter | Type | Description |
|---|---|---|
| command * | string | 要执行的 shell 命令 |
| ssh_host | string | SSH 主机地址(不指定则从环境变量 SSH_HOST 读取) |
| ssh_key_path | string | SSH 私钥路径(不指定则从环境变量 SSH_KEY_PATH 读取) |
| ssh_password | string | SSH 密码(不指定则从环境变量 SSH_PASSWORD 读取) |
| ssh_port | integer | SSH 端口,默认 22(不指定则从环境变量 SSH_PORT 读取) |
| ssh_username | string | SSH 用户名(不指定则从环境变量 SSH_USERNAME 读取) |
| timeout | integer | 命令超时时间(秒),默认 300 秒 |
| use_ssh | boolean | 是否使用 SSH 远程执行 |
export_report执行 memory-shell-detector-cli.jar 生成内存马检测报告| Parameter | Type | Description |
|---|---|---|
| format | string | 报告格式(json/html/txt) |
| output_file * | string | 报告输出文件路径 |
| pid * | integer | 目标 Java 进程的 PID |
| ssh_host | string | |
| ssh_key_path | string | |
| ssh_password | string | |
| ssh_port | integer | |
| ssh_username | string | |
| tools_dir | string | 检测工具 jar 包所在目录 |
| use_ssh | boolean | 是否通过 SSH 在远程服务器执行 |
get_system_info_tool获取当前系统环境信息list_java_processes执行 memory-shell-detector-cli.jar 列出系统中所有运行的 Java 进程| Parameter | Type | Description |
|---|---|---|
| ssh_host | string | |
| ssh_key_path | string | |
| ssh_password | string | |
| ssh_port | integer | |
| ssh_username | string | |
| tools_dir | string | 检测工具 jar 包所在目录 |
| use_ssh | boolean | 是否通过 SSH 在远程服务器执行 |
remove_memory_shell执行 memory-shell-detector-cli.jar 从 JVM 内存中移除指定的内存马类| Parameter | Type | Description |
|---|---|---|
| ai_confirmed | boolean | AI 是否已确认该类为内存马(首次调用设为 False) |
| class_name * | string | 要移除的内存马完整类名 |
| pid * | integer | 目标 Java 进程的 PID |
| ssh_host | string | |
| ssh_key_path | string | |
| ssh_password | string | |
| ssh_port | integer | |
| ssh_username | string | |
| tools_dir | string | 检测工具 jar 包所在目录 |
| use_ssh | boolean | 是否通过 SSH 在远程服务器执行 |
scan_process执行 memory-shell-detector-cli.jar 对指定 Java 进程进行内存马扫描检测| Parameter | Type | Description |
|---|---|---|
| pid * | integer | 目标 Java 进程的 PID |
| ssh_host | string | |
| ssh_key_path | string | |
| ssh_password | string | |
| ssh_port | integer | |
| ssh_username | string | |
| tools_dir | string | 检测工具 jar 包所在目录 |
| use_ssh | boolean | 是否通过 SSH 在远程服务器执行 |
view_class_code执行 memory-shell-detector-cli.jar 从 JVM 内存中提取并反编译指定类的字节码| Parameter | Type | Description |
|---|---|---|
| class_name * | string | 要反编译的完整类名(如 com.example.EvilFilter) |
| pid * | integer | 目标 Java 进程的 PID |
| ssh_host | string | |
| ssh_key_path | string | |
| ssh_password | string | |
| ssh_port | integer | |
| ssh_username | string | |
| tools_dir | string | 检测工具 jar 包所在目录 |
| use_ssh | boolean | 是否通过 SSH 在远程服务器执行 |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 822 words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- !No dynamic code executionScanned 1 source file and found 1 call to eval or shell execution, in src/memory_shell_mcp/__init__.py:154. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/memory_shell_mcp/__init__.py:820
- Starts other programs
- 1 callsrc/memory_shell_mcp/__init__.py:154
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 1 callsrc/memory_shell_mcp/__init__.py:441
- Lockfile
- uv.lock
Pattern matches on the source text of 1 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 822 words, fetched a month ago. The original in the repository is authoritative.
Read full README