Mcpwatch

io.github.lazymac2x由 GitHub 账号 lazymac2x 发布v0.1.1更新于 Oct 24, 2026

Audit MCP servers from inside Claude Code. 10 OWASP checks, A-F grade, live leaderboard.

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

概览

AI 生成的概览

一个 MCP 服务器,让助手按 OWASP MCP Top 10 审计其他 MCP 服务器,给出 A–F 等级和逐项检查结果。

可以做什么
按路径扫描本地 MCP 服务器,依据 10 项源自 OWASP 的检查(命令注入、路径穿越、密钥泄露、工具描述中的提示注入等)返回等级和逐项发现。按 owner/repo 标识查询公开 MCP 服务器已发布的评分,并列出公开排行榜中排名最高或最低的服务器。按 ID 获取任一 OWASP MCP Top 10 检查项的详细说明。
适用场景
在把不熟悉的 MCP 服务器加入配置之前,或想比较某服务器的公开安全评分与其他服务器时使用。也适合用来了解某项 OWASP 检查的具体含义。
运行要求
通过 npx 以 mcpwatch-mcp 包在本地运行,需要 Node.js 18 或更高版本。被扫描的服务器必须能在本地磁盘上访问。查询公开排行榜无需 API 密钥,但需要网络访问。
安装前请注意
扫描会读取目标服务器在你机器上的文件,请只指向你愿意让该工具读取的代码。排行榜和评分查询会连接外部服务。README 中宣传付费 Pro 报告及其他付费产品,所列工具均不需要购买。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MCPWatch

[npm] [License: MIT] [lazymac2x/mcpwatch MCP server]

Have I Been Pwned for MCP servers. Open-source security scanner that audits MCP servers against the OWASP MCP Top 10 and produces an A–F letter grade.

Overview

MCPWatch is a security tool for the MCP ecosystem that:

  • Runs 10 automated checks derived from the OWASP MCP Top 10 on any MCP server
  • Produces an A–F letter grade with per-check findings
  • Exposes an MCP server interface so AI agents can audit MCPs on demand
  • Provides a CLI for pre-install scanning in CI/CD pipelines
  • Powers a public leaderboard at mcpwatch.pages.dev with live SVG grade badges

Installation

Use with Claude Code / Cursor / Windsurf (MCP server)

Add to your MCP configuration:

json
{  "mcpServers": {    "mcpwatch": {      "command": "npx",      "args": ["-y", "mcpwatch-mcp"]    }  }}

CLI (scan before install)

bash
npx mcpwatch-scanner /path/to/mcp-server

GitHub Action (CI/CD gate)

yaml
- uses: lazymac2x/mcpwatch-action@v1  with:    path: .    fail-below: B

MCP Tools

When running as an MCP server, MCPWatch exposes the following tools to your AI agent:

ToolDescription
scan_mcp_serverScan a local MCP server by path — returns grade + per-check findings
get_public_scoreFetch the live grade for any public MCP server by owner/repo slug
list_leaderboardReturn the top/bottom N servers from the public leaderboard
explain_checkGet a detailed explanation of any OWASP MCP Top 10 check by ID

Example: scan before adding an MCP

Ask Claude: "Use mcpwatch to scan the filesystem-mcp server at ~/mcps/filesystem-mcp before I add it to my config."

The 10 Checks (OWASP MCP Top 10)

IDCheckSeverity
MCP-01Command injection in tool handlersCritical
MCP-02Path traversal in file toolsCritical
MCP-03Unauthenticated mutationsCritical
MCP-04Prompt injection via tool descriptionsHigh
MCP-05SSRF in URL-fetching toolsHigh
MCP-06Hardcoded secret leakageHigh
MCP-07Over-permissive filesystem scopeMedium
MCP-08Missing rate limitsMedium
MCP-09Outdated dependencies with known CVEsMedium
MCP-10Missing input schema validationLow

Grading

GradeScore
A90–100 — no Critical/High findings
B75–89 — no Critical findings
C60–74 — has Critical findings, minor impact
D40–59 — multiple Critical findings
F0–39 — severe/exploitable vulnerabilities

Public Leaderboard & Badges

Every public MCP server on Smithery, npm, and the official registry is scanned daily.

Live badge — drop into any README:

markdown
[![MCPWatch score](https://api.lazy-mac.com/mcpwatch/badge/YOUR_OWNER/YOUR_REPO.svg)](https://mcpwatch.pages.dev/servers/YOUR_OWNER/YOUR_REPO)

JSON API:

GET https://api.lazy-mac.com/mcpwatch/scan/{owner}/{repo}

Architecture

mcpwatch/├── packages/│   ├── scanner/   # Core check engine (TypeScript, runs in Worker + CLI + Node)│   └── cli/       # mcpwatch-scanner — npx runnable├── workers/│   └── crawler/   # CF Worker — scheduled crawl + scan (daily)├── apps/│   └── web/       # CF Pages — mcpwatch.pages.dev — public leaderboard└── .github/    └── workflows/ # mcpwatch-action CI gate

Requirements

  • Node.js 18+
  • The MCP server under test must be locally accessible (for scan_mcp_server / CLI)
  • No API key required for public leaderboard lookups

License

MIT — use it, fork it, contribute checks.

Contributing

Pull requests for new checks, false-positive fixes, or leaderboard improvements are welcome. See CONTRIBUTING.md for guidelines.


Pro Report $49 (in development)

Cross-repo trend analysis + Slack/Discord webhook alerts on grade drops + private MCP scanning. Email waitlist:

Related — Lumen API + MCP Catalog

If you ship MCP servers, you might want these (one-time license, lifetime updates, MIT source):

Full catalog: https://api.lazy-mac.com Profile: https://github.com/lazymac2x dev.to: https://dev.to/lazymac2x

来源:README.md,提交 8e6e0a4

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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