
Sn1per MCP Server: pentest, recon and attack surface scanning
io.github.1N3由 GitHub 帳號 1N3 發布v0.9.0更新於 Oct 25, 2026
Run scoped, authorized Sn1per pentest, recon and attack surface scans from AI agents; read findings.
概覽
本機 MCP 伺服器,讓 AI 助理驅動自架的 Sn1per 安裝,在限定範圍內執行具稽核的滲透測試與偵察掃描並讀取結果。
- 可以做什麼
- 檢查狀態與清單:回報偵測到的 Sn1per 版本、可用掃描模式和已設定的範圍,並列出主機上的 loot 工作區。讀取掃描結果:含嚴重性的發現、開放連接埠、發現的子網域和偵測到的網頁技術。搜尋 loot:在工作區 loot 檔案中依字串或正規表示式檢索。執行掃描:對單一目標啟動 Sn1per 掃描,並取消本伺服器啟動的掃描。管理工作區:僅在啟用破壞性工具且由人工確認時刪除或匯出工作區封存檔。
- 適用情境
- 適用於已安裝 Sn1per 的專用 Linux 掃描主機上的授權安全測試,希望由助理在既定範圍內發起掃描並彙整結果。它本身不是掃描器,也不適用於多使用者共用主機。
- 執行需求
- 已安裝 Sn1per 社群版 9.x 或 11.x 引擎的 Linux 主機、Python 3.11 或更新版本、root 或針對 Sn1per CLI 的免密碼 sudo 規則,以及支援本機 stdio 的 MCP 用戶端。掃描前必須透過 SNIPER_MCP_SCOPE 或 SNIPER_MCP_SCOPE_FILE 設定範圍;其他選用變數用於調整路徑、侵入模式、破壞性工具和去識別化。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Sn1per MCP Server: pentest, recon and attack surface scanning,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Sn1per MCP Server
Drive your self-hosted Sn1per from your AI assistant: scoped, audited, for authorized testing.
[PyPI version of sn1per-mcp] [License: Apache-2.0]
For authorized security testing only. Use the Sn1per MCP Server only against systems you own or are explicitly permitted, in writing, to test, and within the scope of that permission.
Status: beta (0.9.x). Tool names, parameters and output fields follow the compatibility promise for 0.x releases.
What it does
Sn1per MCP Server connects the AI assistant you already use to the Sn1per installation on your own Linux host. It runs locally over stdio beside Sn1per, refuses scan requests for targets outside the scope you configure (see the limits), records every scan, cancel, delete and export request it acts on in a local audit log, and returns Sn1per's findings, open ports, subdomains and technologies as structured data with secrets redacted by default. It supports Sn1per Community Edition 9.x and the 11.x engine used by SE, Professional and Enterprise; the edition matrix lists what has been verified. It is free and open source under the Apache-2.0 license, and is intended for authorized security testing only.
The server runs beside Sn1per on your host: loot stays there, and tool results leave the host only through your MCP client and the model service it uses. Read Data handling and privacy for what does leave the host.
Sn1per does the scanning. The Sn1per MCP Server lets the AI assistant you already use drive it. Generic tool-runner MCP servers expose individual commands. The Sn1per MCP Server drives Sn1per's orchestrated scan modes and returns its structured results, with scope enforcement and an audit log.
What it is not
- It is not a scanner by itself. It launches and reads the Sn1per installation that is already on your host.
- It does not include Sn1per. Install Sn1per first (Sn1per Community Edition, or the Professional or Enterprise installer from your licence).
- It is not for shared multi-user hosts. Run it on a dedicated, single-user scanning VM or container.
Requirements
- A Linux host with Sn1per Community Edition 9.x or the 11.x engine (Sn1per SE, Sn1per Professional or Sn1per Enterprise).
- Python 3.11 or later. Ubuntu 22.04 and Kali 2022.x ship Python 3.10 and need a uv-managed Python (install guide).
- Root, or a passwordless sudo rule for the Sn1per CLI. That rule is equivalent to full root access for the user it names; read the security model before you add it.
- An MCP client that runs local stdio servers. Web, mobile and remote-connector clients are not supported in 0.9.0 (stdio only).
Quick start
Replace <user> with the user who runs your MCP client. The env file is the canonical configuration, so --check sees exactly what the client will run.
-
Install pipx, then install the server as that user (never run pipx with
sudo): -
Create the env file
/home/<user>/.config/sn1per-mcp/envwith mode 0600:Put this line in it, then replace the placeholder with the targets you are authorized to test. The placeholder itself is refused (
scope_invalid), so nothing is scanned until you do. -
Check the configuration. The output includes the realpath of the Sn1per CLI that the sudo rule must name:
-
Add the sudoers drop-in with that realpath (
/usr/share/sniper/sniperon a standard install). Skip this step if the client runs as root. Full steps: docs/install.md. -
Register the server with Claude Code (other clients: docs/clients.md):
-
Start a new client session and ask: "Run sniper_status".
Client setup
Only clients that passed the 0.9.0 client tests (2026-10-12) are listed. Configuration paths, approval settings and per-client notes are in docs/clients.md.
Claude Code: the one-line command in the quick start (step 5). Codex CLI: the config.toml entry, and the approval setting that export_workspace needs there, are in docs/clients.md. Other clients that start local stdio servers are not yet tested with 0.9.0.
Is Sn1per on another machine, or is your client on macOS or Windows? See docs/remote.md for the SSH recipe (verified with a Linux OpenSSH client; Windows and macOS clients documented, unverified), WSL2 (documented, unverified) and the Docker recipes (documented, unverified).
Editions
The server detects the edition and engine from the Sn1per CLI on the host. "Verified" means exercised by the 0.9.0 verification run on 2026-10-12; "expected" means no known blocker, but not exercised. The per-tool results, the scan modes that were run and the fixes made after the run are in docs/editions.md, together with the mode tables and per-edition notes.
Platforms: Linux only. Verified on Kali Rolling (amd64). Ubuntu 24.04: verified for the install and the MCP session (no scan was run on Ubuntu). Debian 12 and 13 and Parrot: expected. Ubuntu 22.04 and Kali 2022.x: expected only with a uv-managed Python or a separately installed Python 3.11 or later; their system Python 3.10 is refused. BlackArch: expected; needs a sniper symlink on PATH. arm64: expected. macOS and Windows are not supported as the server host; use them as the client host over SSH (docs/remote.md).
Tools
Full parameters, example results and error codes: docs/tools.md.
Configuration
All settings, the scope grammar and the command-line flags: docs/configuration.md.
- Scope (required for scans):
SNIPER_MCP_SCOPEand/orSNIPER_MCP_SCOPE_FILElist the domains, IPv4 and IPv6 addresses and CIDR ranges you are authorized to test, with!exclusions. With no scope, every scan request is refused. One invalid entry makes the whole scope invalid. - Intrusive modes: modes that run credential brute force, exploitation or injection testing are off until you set
SNIPER_MCP_ALLOW_INTRUSIVE=1. The default mode isstealth. - Destructive tools:
delete_workspaceandexport_workspaceexist only withSNIPER_MCP_ENABLE_DESTRUCTIVE=1, and both ask the human to type the workspace name. - Redaction: secrets in results are redacted by default (
SNIPER_MCP_REDACT). Redaction is pattern-based; it is not data-loss prevention.
Security model
The server is a set of controls around a root-capable engine, not a security boundary. Read docs/security-model.md before you deploy it. In short:
- The passwordless sudo rule for the Sn1per CLI is equivalent to full root access for that user.
- The scope applies to the target the agent requests, at launch time. Sn1per resolves names again during the scan, may contact third-party services, and some modes scan hosts they discover. Use an egress filter on the scanning host.
- These controls do not stop an agent that also has shell or file-write access as the same user. Keep the scope and env files under
/etc/sn1per-mcp/, owned by root, and deny those tools for them. - Everything read from loot, logs and searches is returned as untrusted data, because scanned systems control it.
Responsible use
The Sn1per MCP Server lets an AI agent launch active security scans. Scans send traffic to the target, can be intrusive, and run with root privileges through sudo.
- Use it only against systems you own or are explicitly authorized, in writing, to test, and only within the scope and rules of engagement of that authorization. Unauthorized scanning is illegal in many jurisdictions.
- You, the operator, are responsible for every action your agent takes, including actions triggered by content the agent reads (for example prompt injection in a web page or in scan output).
- Configure the target scope (
SNIPER_MCP_SCOPEorSNIPER_MCP_SCOPE_FILE) before you use the scan tools. The server refuses scan requests for targets outside that scope (see the limits). - Brute-force and exploitation modes and destructive tools are off by default. Turn intrusive modes on (
SNIPER_MCP_ALLOW_INTRUSIVE=1) only when your rules of engagement allow credential brute force and exploitation. - The server records every scan, cancel, delete and export request it acts on in a local audit log. Keep that log with your engagement evidence.
- Sn1per Community Edition is governed by its own EULA, which also prohibits scanning without permission.
This software is provided under the Apache License 2.0, without warranty of any kind.
Data handling and privacy
- The MCP server itself sends no telemetry. Its only network activity is the DNS lookups it makes to check hostname targets against your scope.
- Sn1per runs its own update and licence checks every time a scan starts, including scans launched through this server. Sn1per Community Edition sends the host machine-id. Sn1per SE, Professional and Enterprise send the licence key, the machine-id and usage statistics, and run the update server's response as root; Professional licence checks can stop every running scan or remove the install. The MCP server never suppresses these checks. Per-edition details: docs/editions.md.
- Scans send traffic to the target and, depending on the mode, to third-party services (OSINT APIs, web archives, certificate and DNS datasets, whois) and to out-of-band interaction servers.
- Tool results (findings, hostnames, ports and search matches, which may include personal data such as harvested e-mail addresses) are returned to your MCP client and from there to the model service it uses. Some clients route model traffic through the client vendor's own backend, and transcripts may be stored or synced in the vendor's cloud. Make sure your engagement contract and data-protection obligations allow this, or use a locally hosted model.
- The server writes job records, job logs, exports and the audit log to its state directory,
/home/<user>/.local/state/sn1per-mcpby default (/root/.local/state/sn1per-mcpfor root), with owner-only permissions. Job logs and exports on disk are not redacted. Treat the state directory as engagement evidence.
Remote use, upgrade, uninstall and troubleshooting
- Client on another machine (macOS, Windows, another Linux host), WSL2 and Docker: docs/remote.md.
- Upgrade, rollback and uninstall (including removing the sudoers rule): docs/install.md.
- Common problems and error codes: docs/troubleshooting.md.
Support and security
- Questions and help: SUPPORT.md.
- Report a vulnerability privately through GitHub Private Vulnerability Reporting or as described in SECURITY.md. Do not open a public issue for a vulnerability.
- Contributions are welcome under the Developer Certificate of Origin: see CONTRIBUTING.md.
- This project follows the Code of Conduct.
License and trademarks
The Apache License 2.0 (LICENSE, NOTICE) covers this MCP server only. It does not cover Sn1per. Sn1per Community Edition is source-available under its own EULA. Sn1per Professional and Sn1per Enterprise are commercial products of Sn1perSecurity LLC and are licensed separately. "Sn1per" and the Sn1per logo are trademarks of Sn1perSecurity LLC; see TRADEMARKS.md.
Get notified
Every install command pins an exact version, so you only receive fixes when you upgrade. A PyPI yank does not reach installs pinned with ==. To hear about new releases and security fixes:
- On GitHub, choose Watch, then Custom, then select Releases and Security alerts for this repository.
- Read the releases page and the security advisories.
Sn1per MCP Server is published by Sn1perSecurity LLC.
來源:README.md,提交 d265723
工具
0版本歷史
1- v0.9.0最新Oct 18, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分