dep-scout

dep-scout

Dep-scout prevents AI coding agents from reinventing the wheel by searching package registries for mature, safe packages and scoring them on reuse quality, security, and license compliance.

Category
访问服务器

README

dep-scout

先查再造 (research before you build) — an MCP server that stops AI coding agents from reinventing the wheel.

Before an agent writes a feature from scratch, dep-scout searches the right registry — crates.io (Rust), npm (JS/TS/frontend), PyPI (Python), pkg.go.dev (Go), Maven Central (Java/Kotlin) or NuGet (.NET) — for a mature package that already solves the problem, and scores each candidate on reuse quality (popularity, maintenance recency, version stability, metadata) — and flags known security advisories (OSV) and license-compliance risks. The agent then reuses a proven, safe solution instead of hand-rolling buggy code. It can also search the official MCP registry so the agent reuses an existing MCP server instead of building one.

Works with Cursor (and any MCP client) over stdio. No API keys — every data source is a keyless public API.

Why

AI now writes a lot of code — and its worst habit is reimplementing solved problems, picking abandoned libraries, or hallucinating packages. dep-scout turns the best practice "don't build it if a maintained package already does it" into a tool the agent calls automatically, across languages.

Tools

Tool What it does
find_packages Given a feature description + ecosystem (rust | npm | python | go | maven | nuget), returns ranked candidates with a 0–100 reuse score, signals, and warnings.
inspect_package Deep-dives one package by exact name + ecosystem: license (+ compliance flag), known OSV vulnerabilities, deprecation/yank status, runtime/version requirements, downloads or GitHub stars, last-update recency.
find_mcp_servers Searches the official MCP registry for existing MCP servers (name, install info, repo, status) — so you don't rebuild one.

ecosystem accepts aliases: js/ts/javascript/typescript/node/frontend → npm, py/pip → python, golang → go, java/kotlin/gradle/jvm → maven, dotnet/csharp/net → nuget, rs/cargo → rust.

Reuse score (0–100)

  • Popularity (≤40) — downloads normalised to a ~90-day window; for Go/Maven (no public download stats) GitHub stars are used as a proxy.
  • Maintenance (≤30) — how recently the package was updated.
  • Stability (≤15) — stable 1.0+ vs 0.x; penalty for pre-releases.
  • Metadata (≤15) — repository, docs/homepage, license present.
  • Security penalty — known OSV advisories on the resolved version sink the score and de-rank the candidate.
  • License flag — copyleft / commercially-restricted licenses (GPL, AGPL, LGPL, MPL, SSPL, BUSL…) are surfaced as compliance warnings.
  • Penalty — latest version yanked (crates/PyPI) or deprecated (npm).

Verdicts: ≥78 ✅ strongly recommend · 58–77 🟡 usable · 38–57 🟠 cautious · <38 🔴 find an alternative.

Ranking blends textual relevance (query-term overlap, exact-name match) with the reuse score and the registry's own ordering, so results are both on-topic and high quality.

Data sources (all keyless)

Ecosystem Search Details Popularity
Rust crates.io API (relevance + downloads merge) crates.io API crates.io downloads (90-day)
npm registry.npmjs.org/-/v1/search registry.npmjs.org/{pkg}/latest api.npmjs.org (last-month)
Python deps.dev name search (+ token fallback) pypi.org/pypi/{pkg}/json pypistats (last-month)
Go deps.dev name search deps.dev v3 (GetPackage/GetVersion/GetProject) GitHub stars
Java/Kotlin Maven Central solr search deps.dev v3 GitHub stars
.NET NuGet search API NuGet search API NuGet total downloads
MCP servers official registry.modelcontextprotocol.io — —
Security OSV.dev query (detail) + querybatch (flag) across all ecosystems

Python note: PyPI has no public full-text search API (the legacy XML-RPC search is gone and the web search is bot-blocked), so Python search is name-oriented via deps.dev. It excels when the query is/contains the library name; for pure capability phrases, prefer inspect_package with a known name.

Build

Requires a recent Rust toolchain (edition 2024).

cargo build --release

The binary is produced at target/release/dep-scout (.exe on Windows).

Use in Cursor

  1. Register the MCP server. A portable project config lives at .cursor/mcp.json — it uses cargo run --release so no machine-specific paths are required. For global use, add an entry to ~/.cursor/mcp.json:

    {
      "mcpServers": {
        "dep-scout": {
          "command": "/absolute/path/to/dep-scout/target/release/dep-scout"
        }
      }
    }
    

    On Windows use ...\\target\\release\\dep-scout.exe. Build the release binary first (cargo build --release above) when using a direct binary path.

  2. Restart Cursor; you should see dep-scout with its tools enabled.

  3. The .cursor/rules/research-before-build.mdc rule makes the agent search before building. A portable, client-agnostic version lives at skill/SKILL.md.

How it talks

Standard MCP over stdio (JSON-RPC 2.0), built on the official rmcp SDK. Logs go to stderr so they never corrupt the protocol stream on stdout.

Roadmap

  • More ecosystems: Ruby (RubyGems), PHP (Packagist), Dart/Flutter (pub.dev).
  • Per-ecosystem popularity calibration (npm/PyPI volumes dwarf crates.io).
  • Last-update recency for NuGet; richer Maven search ranking.
  • Deeper repo health signals (open issues, release cadence, maintainer count).
  • A curated trust/quality dataset — the real moat over a plain registry mirror.

Project layout

src/
  main.rs      # MCP server + tools (find_packages / inspect_package / find_mcp_servers)
  model.rs     # Ecosystem enum, normalised Package, reuse scoring, relevance
  sources.rs   # keyless registry clients (crates.io, npm, PyPI, deps.dev, MCP registry)
.cursor/
  rules/research-before-build.mdc   # always-on Cursor rule
  mcp.json                          # local server registration
skill/SKILL.md                      # portable skill for any MCP client

MCP Registry

Published to the official MCP Registry as io.github.unievolver/dep-scout. Download the .mcpb bundle from GitHub Releases or build from source with cargo build --release.

  • MCP Registry name: mcp-name: io.github.unievolver/dep-scout

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选