
Aguara MCP
io.github.garagon由 GitHub 帳號 garagon 發布v0.2.0更新於 Oct 24, 2026
Security scanner for AI agent skills and MCP servers
概覽
讓助手在採用前於本機掃描不受信任的代理內容、技能與 MCP 伺服器設定,以找出安全威脅。
- 可以做什麼
- 提供針對 AI 代理內容的本機安全掃描工具。scan_content 檢查技能、README、工具定義、套件清單、工作流程 YAML 與代理指令檔案等文字,辨識提示注入、憑證外洩、資料外傳、命令執行與供應鏈模式。check_mcp_config 檢查 MCP 伺服器設定 JSON 中的危險命令、憑證暴露與工具投毒模式。list_rules 與 explain_rule 用於瀏覽與說明偵測規則目錄,discover_mcp 以唯讀方式讀取本機 MCP 用戶端設定檔。
- 適用情境
- 適用於助手即將安裝 MCP 伺服器、檢查技能或外掛、閱讀第三方 README 或載入工具設定,並應先檢查其安全性的情境。適合在執行前審查不受信任第三方代理內容的工作流程。
- 執行需求
- 以本機 stdio 程序在使用者機器上執行,可透過 mcpb 套件安裝或從原始碼建置。未宣告帳號、API 金鑰、環境變數或標頭。掃描離線執行,無需網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Aguara MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Aguara MCP
Local security checks for AI agents before they trust third-party tools.
Aguara MCP gives Claude Code, Cursor, Windsurf, and any MCP-compatible agent a local tool for reviewing untrusted agent content before acting on it.
When an agent is about to install an MCP server, inspect a skill, read a plugin README, or load a tool configuration, it can call Aguara first. The scan runs locally, inside the MCP server, and returns a structured verdict with findings, severity, remediation, and the rule that triggered.
No LLM calls. No network access. No subprocess to the aguara binary. The MCP server imports Aguara as a Go library and runs the scanner in-process.
Use it to help agents answer questions like:
- Is this MCP config exposing credentials?
- Does this tool description contain prompt injection?
- Is this README asking the agent to run unsafe install commands?
- Does this skill try to read secrets or exfiltrate data?
- Which rule triggered, and why?
The v0.9.0 source pins Aguara commit 8412e8e, a post-v0.28.0 revision that restores direct Python cron-write detection. The exact Go module version is v0.28.1-0.20261101224820-8412e8e5d2d1; this is not a published Aguara v0.28.1 release. Building from source requires Go 1.26 or later. Source changes can precede published binaries; check GitHub Releases for available artifacts. Built on the official MCP SDK (v1, Tier 1).
In v0.9.0, discovery returns a redacted inventory instead of raw local configurations, and scanned content can no longer suppress its own findings with inline Aguara directives. Explicit caller options such as disabled_rules remain supported. Upgrading from v0.8.0: callers that forwarded discovery output to check_mcp_config must instead supply the original configuration JSON; the inventory is not a scan input or a security verdict.
Repository-wide dependency checks (npm, PyPI, pnpm, Go, crates.io, Composer, RubyGems, Maven, NuGet) are still handled by the Aguara CLI:
These will land as MCP tools in a future release once Aguara core exposes a stable public Check API; see garagon/aguara for the CLI install path.
The problem
AI agents are gaining autonomy. They browse registries, discover tools, install MCP servers, and execute third-party code - often without any security review.
This creates a new attack surface. A skill published to a registry today can contain:
- Prompt injection that hijacks the agent's behavior ("ignore all previous instructions...")
- Credential theft that exfiltrates API keys, tokens, and secrets from the agent's environment
- Remote code execution hidden in install scripts (
curl | bash, shell injection) - Data exfiltration that silently sends user data to attacker-controlled endpoints
- Supply chain attacks through dependency confusion and typosquatting
The agent doesn't know. It can't tell a helpful tool from a weaponized one. The description looks normal. The install succeeds. The damage is done.
This is the gap Aguara MCP fills. It gives the agent a security advisor it can consult as a tool - the same way a developer would run a linter before merging code. One tool call, milliseconds, entirely local. The agent checks first, then decides.
Quick start
One command, one binary, no external dependencies. The installer verifies SHA256 checksums before extracting and fails closed if no sha256 verifier is available on the host (no silent skip).
Make sure the install directory (
~/.local/bin) is in yourPATH. The binary is statically linked with the Aguara rule catalog and analyzers compiled in so all MCP scans run fully offline. Aguara core's OSV-derived threat-intel snapshot is not bundled in this binary because the MCP does not expose repository-wide dependency checks yet; use the Aguara CLI for those (see garagon/aguara for install + usage).
Add to your AI agent
Claude Code:
Claude Desktop - add to claude_desktop_config.json:
Cursor / Windsurf / any MCP client - stdio transport with aguara-mcp.
Your agent now has a security advisor.
Tools
scan_content
Scan text for security threats before acting on it. Works on agent skills, READMEs, tool definitions, MCP server descriptions, prompts, package manifest content (package.json), GitHub Actions workflow YAML when the filename argument contains .github/workflows/, Claude Code settings when filename is .claude/settings.json or .claude/settings.local.json, agent instruction files (.cursorrules, .windsurfrules, .clinerules, AGENTS.md, copilot-instructions.md), npm install-trust policy when filename is .npmrc or package.json, and pnpm policy when filename is pnpm-workspace.yaml. Detects prompt injection (pattern + NLP), credential leaks, exfiltration, command execution, supply-chain patterns, MCP attacks, package metadata risks, JavaScript / Python / Rust install-time payload shapes, GitHub Actions trust chains, risky agent host configuration, weakened npm / pnpm supply-chain settings, and Unicode/encoding evasion. Sensitive matches are redacted in the response: when a finding is marked Sensitive=true (cred+exfil combos, toxic-flow cred reads, MCP_007) or belongs to the credential-leak category, matched_text is replaced with [REDACTED] so the scanner never creates a second copy of the secret. Supports context-aware false-positive reduction via tool_name.
Returns a structured report with verdict (clean, flag, or block), severity-rated findings with remediation guidance, matched patterns, line numbers, confidence scores, and which analysis engine produced each finding.
check_mcp_config
Check an MCP server configuration (JSON) for security issues before adding it to a client. Detects dangerous command shapes in command/args, credential exposure in env, unsafe argument injection, and tool-poisoning patterns. Use on any mcpServers entry from Claude Desktop, Cursor, VS Code, or other MCP clients before enabling it. Sensitive matches are redacted in the response.
list_rules
Browse the embedded engine's catalog: 259 detections (191 YAML pattern rules + 68 analyzer-emitted rules). Useful when the agent needs to understand a finding or filter by category. Catalog availability is not activation: bundle checks and stateful monitoring are not available through these single-content MCP tools.
explain_rule
Get detailed information about a specific rule by ID. Resolves both YAML rules (returns patterns plus true/false-positive examples) and analyzer-emitted rule IDs from ci-trust, pkgmeta, jsrisk, pyrisk, rsbuild, npm-policy, pnpm-policy, agent-policy, NLP, toxic-flow, and rug-pull (returns severity, category, analyzer name, description, and remediation; analyzer rules have no inline patterns or examples).
discover_mcp
Discover MCP server configurations on the local machine by reading known MCP client config files (Claude Desktop, Cursor, VS Code, Windsurf, and others). Returns client identifiers, response-local config/server IDs, and argument/environment counts. Commands, arguments, environment keys and values, server names, and local paths are withheld because any of these fields can carry credentials or instructions.
Read-only, not a scan: discovery never executes commands or connects to servers. The response is marked kind: "aguara.discovery-inventory", redacted: true, and scan_status: "not_scanned". It is best-effort: unreadable or unsupported configurations may be skipped, so an empty inventory is not evidence that the machine is safe or has no MCP configurations.
This intentionally replaces the raw-definition response. check_mcp_config rejects this inventory; it needs the original configuration JSON to inspect risky commands and credentials. Do not reconstruct a configuration from inventory counts or treat discovery as a security verdict.
No parameters required.
Example
An agent evaluating whether to install an MCP server from a registry:
Without Aguara MCP, the agent would have installed it silently.
Coverage
The pinned development engine's catalog totals 259 detections (191 YAML pattern rules + 68 analyzer-emitted). The MCP tools analyze one submitted content item at a time:
- Pattern matcher - regex / contains rules covering prompt injection, credential leaks, exfiltration, command execution, supply-chain patterns, MCP attacks, indirect injection, external download, SSRF/cloud, third-party content, and Unicode attacks. Content is NFKC-normalized before scanning to prevent Unicode evasion.
- CI trust - YAML-aware analysis of
.github/workflows/*.ymlfor pwn-request chains, cache poisoning, OIDC token surface, and persisted-credentials checkout patterns. Reachable from MCP when thefilenameargument contains.github/workflows/. - PkgMeta -
package.jsonanalysis for install-time lifecycle scripts paired with git-sourced dependencies, optional-git deps, and publish-surface chains. - JSRisk -
.js/.mjs/.cjsanalysis for obfuscator-shape payloads, install-time daemonization, CI secret harvesting, runner process-memory pivots, GitHub-as-C2 channels, host trust tampering, destructive wipes, and known IOCs (e.g. the May 2026 node-ipc DNS-TXT exfil chain). - PyRisk -
setup.py/__init__.pyflow analysis binding a remote JS fetch to anode -eexecution sink. - RSBuild -
build.rsflow analysis binding a wallet/keystore read to a network send sink. - Npm policy -
.npmrcandpackage.json(allowScriptspolicy) analysis for npm v12 install-trust weakenings: thedangerously-allow-all-scriptsescape hatch, unpinned approvals,allow-git/allow-remoterelaxations. Reachable from MCP when thefilenameargument is.npmrcorpackage.json. - Pnpm policy -
pnpm-workspace.yamlanalysis for supply-chain settings weakened below the pnpm v11 defaults. Reachable from MCP when thefilenameargument ispnpm-workspace.yaml. - Agent policy -
.claude/settings.jsonanalysis for Claude Code host configuration that is dangerous to inherit from a cloned repo (fetch-and-execute hooks, code-injection env vars,bypassPermissions, MCP auto-approval, secret-read allow rules). Reachable from MCP when thefilenameargument is.claude/settings.jsonor.claude/settings.local.json. - NLP - Goldmark-based markdown analysis for prompt-injection, authority-claim, and credential-transmission combos that evade static patterns. Agent instruction files (
.cursorrules,.windsurfrules,.clinerules,AGENTS.md,copilot-instructions.md) are analyzed even without a.mdextension and weighted as high-trust prompt surfaces. - Skill policy - wildcard tool grants in skill frontmatter when the filename is
SKILL.md. - Script risk - Python decode/remote-fetch execution, context exfiltration, world-writable permissions, shell install sources, and persistence.
SC-EX-007retains its identity after moving from a pattern rule into this analyzer. - MCP capabilities - distinguishes explicit capability grants from drops and denials in supported configuration fields.
- Kubernetes policy - reports explicit SETUID/SETGID additions in supported workload security contexts as contextual findings, not proof of privilege escalation.
- Toxic flow - risky capability combinations within the submitted content. These tools do not submit a directory or correlate separate calls.
- Skill chain - catalog metadata is available, but its bundle analysis is not invoked by these single-content MCP tools.
- Rug-pull - SHA256-based change detection on tool descriptions over time (used by the Aguara CLI; not currently invoked by MCP tools).
See garagon/aguara for the canonical category list and rule IDs.
How it works
Aguara MCP imports the Aguara scanner as a Go library - no subprocess, no temp files, no external binary. The scan engine runs in-process with version integrity guaranteed by go.sum.
The MCP protocol layer uses the official Go SDK (Tier 1, Linux Foundation governance, v1 semver stability). This ensures protocol compliance and long-term compatibility as the MCP specification evolves.
No network access. No LLM calls. No cloud dependencies. Everything runs locally and deterministically. Scans complete in milliseconds.
Security
See SECURITY.md for the vulnerability disclosure policy.
Aguara MCP is itself security-hardened:
- No subprocess execution - Aguara runs as an in-process Go library, eliminating PATH hijacking and binary substitution risks
- No network calls - every MCP scan is fully offline. The Aguara rule catalog and analyzers are linked in at build time; the OSV-derived threat-intel snapshot is not bundled in the MCP binary because the MCP does not expose repository-wide dependency checks (use the Aguara CLI for those)
- Input validation - Rule IDs validated against strict format, content size capped at 10 MB
- Filename sanitization - Allowlisted characters only, length-capped, no path traversal; the canonical
.github/workflows/<basename>prefix is preserved so the ci-trust analyzer can reach workflow YAML - Sensitivity-based output redaction - Findings marked
Sensitive=trueby Aguara core (cred+exfil combos, toxic-flow cred reads, MCP_007, MCPCFG_003) or belonging to thecredential-leakcategory have theirmatched_textreplaced with[REDACTED]before the MCP serializes the response; the MCP keeps its own defensive guard in addition to Aguara's in-place scrub - Signed release pipeline - release binaries are Cosign-signed with SPDX SBOMs attached, the multi-arch Docker image at
ghcr.io/garagon/mcp-aguarais signed at digest with SLSA provenance and SBOM attestations. After v0.9.0 artifacts are published, verify withVERSION=v0.9.0 .github/scripts/verify-release.sh. - Version integrity - Aguara scanner version is pinned in
go.sum, verified at build time
Advanced
Debug mode (logs scan details to stderr):
Build from source:
Using Aguara as a Go library
Aguara MCP uses the Aguara public API. You can use it in your own tools:
See the Aguara documentation for the full API reference.
License
來源:README.md,提交 297f03f
工具
0版本歷史
1- v0.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分