
MCP stdio ShellGuard
io.studiomeyer由 studiomeyer.io 发布v0.1.3更新于 Nov 3, 2026
MCP stdio 服务器的纵深防御:shell 注入防护、AST 审计 CLI、RCE 拦截。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
Defense-in-depth for MCP stdio servers: shell-injection guard, AST audit CLI, RCE blocking.
发布方自己的服务:StudioMeyer Crew
概览
MCP stdio ShellGuard 的本地 MCP 服务,由 studiomeyer.io 发布;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
- 发布者
- studiomeyer.io
安装
在 SourceWeft 中
- 打开 控制台中的 MCP stdio ShellGuard,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Part of the StudioMeyer MCP Stack — Built in Mallorca 🌴 · ⭐ if you use it
mcp-stdio-shellguard
[npm version] [npm downloads] [License] [Last commit] [GitHub stars]
Defense-in-depth bundle for MCP stdio servers. Wraps `child_process.exec/spawn`with allowlist + sandbox + replay-detection, plus an AST audit CLI (mcp-shellguard-audit)
that scans MCP server sources for unsanitized shell calls. Closes the Ox-Security
MCP stdio-RCE class (200k vulnerable servers, May 2026 disclosure).
- MCP spec: 2025-06-18
- SDK:
@modelcontextprotocol/sdk^1.29.0 - Node: >= 20
- License: MIT
- Author: Matthias Meyer (StudioMeyer)
Install
Or run the audit CLI directly without installing:
Package contents and maintenance
Version 0.1.3 includes the dependency bundle described below.
The package ships @typescript-eslint/typescript-estree plus TypeScript and the required parser dependency closure through bundledDependencies. A root-only npm override does not constrain an installed package's dependency tree; the included closure carries the checked versions to consumers. The bundle preparation checks @typescript-eslint/typescript-estree 8.72.1 and minimatch 11.0.3, then changes only the parser manifest dependency range from minimatch ^10.2.2 to ^11.0.3. Third-party source files and package version numbers are unchanged. The AST audit calls typescript-estree.parse directly, with TypeScript included explicitly to satisfy the parser dependency tree; no ESLint runtime is required.
The measured archive is approximately 4.92 MB compressed and 26.04 MB unpacked (decimal MB). Bundling increases download and disk use; a security update to an included dependency requires an updated package archive.
For maintenance, run npm ci and npm run test:consumer from the repository checkout. npm pack runs prepack automatically: it builds the package and prepares the declared bundle. The consumer check packs twice, verifies identical bytes, installs the actual archive in a fresh project, checks npm ls and both dependency audits, and exercises the installed CLI or runtime. Review dependency updates together with the locked bundle and license proofs before distributing a new archive. The archive's dist/bundled-dependencies.json records the bundle and manifest adjustments.
What it gives you
Three layers, opt-in piecewise:
- Library API — drop-in
guardExec/guardSpawnyou call from your own MCP server. Default-deny allowlist, sandbox profiles, replay window. - Audit CLI —
mcp-shellguard-audit scan <path>walks the AST, reports 12 anti-patterns from LOW (no timeout) to CRITICAL (exec(\...${userInput}...`)`). - Reference MCP server —
mcp-stdio-shellguard-demoexposes 8 tools so the MCP Inspector / Claude Desktop can drive the bundle directly.
Tools (reference server)
Sandbox profiles
Caller can tighten via timeoutMs / fdBudget per call. Caller cannot widen
beyond the profile.
Trust tiers
Lift LOW → CRITICAL by registering the tool + setting argsPatterns + running
through guardExec/guardSpawn (which always activate sandbox + replay).
Library quickstart
Audit CLI
Exit codes:
0clean (no findings at-or-above floor)1findings present2parse / IO errors
Custom ignoreGlobs passed to scanPath or the audit_source MCP tool accept
at most 128 strings. Each string is limited to 1024 UTF-16 code units and 16
unescaped opening grouping characters ((, {, [). Inputs above these
budgets raise a controlled error before matching.
Anti-pattern library (12 rules)
The scanner resolves renamed child_process bindings before matching,
so the dangerous shapes below are caught even when the call goes through an
alias rather than a literal child_process.exec:
const execAsync = promisify(exec); execAsync(...${x})import cp from "node:child_process"; cp.exec(...${x})const { exec: sh } = require("child_process"); sh(...${x})import { exec as run } from "node:child_process"; run(...)
Synchronous variants (spawnSync, execFileSync) share their async rules,
and shell_true_option also fires on a string shell ({ shell: "/bin/sh" })
or a dynamic shell value — not just the literal { shell: true }. A
promisify of a non-child_process function, a destructure off another
module, and { shell: false } stay clean (no false positives).
Pragmas
// shellguard:ignore-next-line— suppress one finding// shellguard:ignore-file— suppress whole file (rare; prefer per-line)
Why this exists
Ox-Security disclosed (2026-05) that 200k+ MCP stdio servers wrap
child_process.exec with template literals carrying user input straight from
LLM tool args. LiteLLM v1.83.6 was the canonical example (CVE patched in 1.83.7).
This bundle is the defensive-security counterpart: a drop-in guard + scanner
that closes the class. Inspired by AWS Linux seccomp + Chromium sandbox tiers.
See also
HOOK_RECIPES.md— Claude Code hook recipes that auto-block dangerous tool callsCHANGELOG.md— release history- Ox-Security MCP audit: https://venturebeat.com/security/200000-mcp-stdio-servers/
- LiteLLM CVE-2026-XXXX: https://github.com/BerriAI/litellm/security/advisories
License
MIT — Copyright (c) 2026 Matthias Meyer (StudioMeyer)
Bundled dependencies retain their complete upstream license texts in the archive. The package license applies to this project's own code; bundled third-party packages retain their respective terms. The consumer check verifies each approved package version's full license file, or its complete README license section, against pinned content hashes from integrity-verified official npm artifacts. Whitespace and line-ending differences are accepted; missing, empty or partial legal text is rejected.
来源:README.md,提交 35b97f8
工具
0版本历史
2- v0.1.3最新Nov 3, 2026
- v0.1.2Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Studiomeyer 集成
StudioMeyer Crew
io.studiomeyer官方发布者
远程 MCP 服务器,为 Claude 提供智能体角色、16 个工具和 3 个工作流,宣称不产生额外 API 费用。
StudioMeyer Memory
io.studiomeyer官方发布者
远程双时态 AI 记忆服务器,带知识图谱与语义搜索,让助手跨会话持久记忆。

StudioMeyer MCP Suite
io.studiomeyer官方发布者
远程 MCP 套件,捆绑 8 个服务器、104+ 个工具,涵盖记忆、社交、PDF、邮件、图片、日历、定时任务和文件。
StudioMeyer GEO
io.studiomeyer官方发布者
一个远程、托管于欧盟的 MCP 服务器,让助手查看品牌或网站在八个大语言模型平台上的可见度,共 30 个工具,多数无需 API 密钥。
StudioMeyer CRM
io.studiomeyer官方发布者
StudioMeyer CRM 是一个远程、AI 原生的 CRM 服务器,为助手提供 37 个工具,涵盖销售管道、线索、健康评分和 GDPR 权利。