Mcp Supply Audit

io.github.kimmawla由 GitHub 账号 kimmawla 发布v0.1.0更新于 Nov 5, 2026

Audits MCP servers as software artifacts: registry entries, packages, configs, tool definitions.

发布方自己的服务:audit.domains - Domain Valuation

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

把 MCP 服务器当作供应链产物来审计:注册表条目、PyPI/npm 包、客户端配置与工具定义,全部为只读静态检查。

可以做什么
  • 用注册表名称或包名加生态,一次性并发执行适用检查并返回合并报告
  • 检查注册表条目的仓库一致性、所有者匹配、包与版本是否存在、远程 URL
  • 检查 PyPI 或 npm 包版本的公告、撤回或弃用状态、安装脚本、来源证明与发布时间
  • 判断名称是否与已知热门包或注册表名称相近
  • 扫描粘贴的 MCP 客户端配置,查找未固定版本的运行器、明文 http 远程地址、硬编码密钥、shell 包装与过宽路径
  • 扫描 tools/list 快照,查找隐藏 Unicode、类指令措辞、外泄措辞与编码数据块
适用场景
适合在决定是否采用某个 MCP 服务器、包或客户端配置时使用,也适合审查服务器工具描述中的提示注入迹象。适合希望得到可复现、基于规则的检查结果而非结论的审查者。
运行要求
以 Python 包(mcp-supply-audit)形式通过 stdio 在本机运行,通常用 uvx 启动,或从源码检出后用 uv 运行。未声明任何认证、API 密钥或环境变量。检查需要访问 registry.modelcontextprotocol.io、pypi.org、registry.npmjs.org 与 api.osv.dev。
安装前请注意
处于预发布阶段且尚未发布,目前只能从源码检出运行。报告只是迹象而非结论:没有发现不等于安全,静态检查也看不到运行时行为。失败或超时的检查会列为跳过,需阅读跳过清单。粘贴的配置与工具快照可能含密钥,这些内容会发送到上述四个外部服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Supply Audit,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-supply-audit

Audits MCP servers as software artifacts: registry entries, packages, configs, tool definitions.

An MCP server. Static checks only. It never runs the code it inspects.

Status: pre-release, in development. Not yet published. Nothing here is a security guarantee.

Why this exists

Most MCP security scanners focus on tool descriptions. This project looks at the server as a supply-chain artifact: does the registry entry match its package and repo, is the name close to a popular one, what do the package version's own metadata and advisories say, and what does the config you are about to copy actually do.

What works today

Six tools, served over stdio by a FastMCP server (tool surface). All are read-only and take names or pasted text, never a path.

  • audit_server: runs the checks below that apply to one server (a registry name, or a package name plus pypi/npm) concurrently under a 30 s deadline, and returns one merged report. A check that fails or times out is listed as skipped; the rest of the report still returns.
  • audit_registry_entry: an MCP Registry entry's repository consistency with its packages, owner match, package and version existence, ownership markers, status, and remote URLs (as text).
  • audit_package: one PyPI or npm package version's OSV.dev advisories, yanked or deprecated state, install scripts (npm only), provenance, publish recency (PyPI only) and declared repository.
  • check_typosquat: whether a name is close to one in a dated reference list (curated PyPI and npm names; for registry names, also names crawled from the MCP Registry).
  • scan_mcp_config: an MCP client config's servers, for unpinned runners, plain-http remotes, hardcoded secrets, shell wrappers, broad paths, non-registry sources and risky env.
  • scan_tool_definitions: checks a tools/list snapshot for hidden Unicode, instruction-like phrasing, cross-tool references, exfiltration phrasing, encoded blobs, and other indicators.

Outbound requests go only to registry.modelcontextprotocol.io, pypi.org, registry.npmjs.org and api.osv.dev.

Quick start

Not on PyPI yet: these commands work once the package is published. Until then, run it from a source checkout.

For Claude Code, with uv:

bash
claude mcp add mcp-supply-audit -- uvx mcp-supply-audit

Pinned to one version (uvx's package@version form):

bash
claude mcp add mcp-supply-audit -- uvx [email protected]

scan_mcp_config flags the first form in the configs it scans (CF001, unpinned package runner).

From a source checkout

Run it from a checkout of this repository with uv:

bash
cd mcp-supply-audituv sync

Then point an MCP client at the mcp-supply-audit console script in that checkout. For Claude Code:

bash
claude mcp add mcp-supply-audit -- uv --directory /path/to/mcp-supply-audit run mcp-supply-audit

For clients configured with JSON (e.g. Claude Desktop's mcpServers):

json
{  "mcpServers": {    "mcp-supply-audit": {      "command": "uv",      "args": ["--directory", "/path/to/mcp-supply-audit", "run", "mcp-supply-audit"]    }  }}

Then ask, for example, "Is the MCP server <namespace>/<name> safe to install?" and the client can call audit_server. Read the report's skipped checks: a report with no findings is not proof of safety.

Design principles

  • Never executes a scan target. Static analysis and metadata only. No tool accepts a filesystem path.
  • Hostile input by default. Text from a target is sanitized, capped, and returned only as quoted evidence under untrusted_text. Hidden characters are shown as visible \uXXXX escapes.
  • Deterministic rules, no LLM in detection. Results are reproducible and unit-tested.
  • Findings are indicators, not verdicts. Every report lists which checks ran and which were skipped, and states that no findings is not proof of safety.
  • Mapped to the OWASP MCP Top 10 (beta, v0.1), by ID.

Limits

Static checks cannot see runtime behavior. Audit and telemetry gaps, shadow servers, and context over-sharing are outside what this tool can detect.

Per-check limits: registry checks, package checks, typosquat checks, config checks.

Evaluation

No benchmark has been run yet.

Development

bash
uv syncuv run pytest -quv run ruff checkuv run ruff format --check

Security

To report a vulnerability in this project, see SECURITY.md.

License

MIT

来源:README.md,提交 47f5543

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:软件包安装失败。

版本历史

1
  1. v0.1.0最新Nov 5, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Audit 集成