GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Rank a GitHub repo's dependents by stars or trust heuristic, and search their code
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
DEP_RANK_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"dep-rank": {
"command": "uvx",
"args": [
"dep-rank",
"mcp"
],
"env": {
"DEP_RANK_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add dep-rank --env DEP_RANK_TOKEN=your-value -- uvx dep-rank mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"dep-rank": {
"command": "uvx",
"args": [
"dep-rank",
"mcp"
],
"env": {
"DEP_RANK_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"dep-rank": {
"type": "stdio",
"command": "uvx",
"args": [
"dep-rank",
"mcp"
],
"env": {
"DEP_RANK_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 j7an 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:DEP_RANK_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.10.2)于6天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Rank GitHub dependents by stars or trust.
dep-rank finds the most popular repositories that depend on a given GitHub project. It scrapes GitHub's dependents page, enriches results via the GraphQL API, and works as a command-line tool and as an MCP server for AI agents (see MCP server).
uvx or the ghcr.io/j7an/dep-rank Docker image.Also: JSON output, package download stats, choosing among multiple packages, local cache, Docker image, Python API.
pip install dep-rank
export DEP_RANK_TOKEN=ghp_your_token_here # see Authentication below dep-rank deps https://github.com/django/django --rows 5
A token is effectively required; see Authentication. Example output (numbers change over time). dep-rank also prints a scrape summary on stderr; this run stopped early, so the count is a lower bound, not a total (see Partial results):
Top dependents of
https://github.com/django/django ┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓ ┃ Repository ┃ Stars ┃ ┡━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩ │ makeplane/plane │ 61K │ │ scalar/scalar │ 16K │ │ jetify-com/devbox │ 12K │ │ shiaho777/web-to-app │ 7.1K │ │ WeblateOrg/weblate │ 6.1K │ └──────────────────────┴───────┘
178 dependents at or above the star threshold
dep-rank deps — List top dependentsdep-rank deps https://github.com/django/django
dep-rank deps https://github.com/django/django --rows 20 --min-stars 100 dep-rank deps https://github.com/django/django --descriptions --format json dep-rank deps https://github.com/django/django --packages
| Option | Default | Description |
|---|---|---|
--rows | 10 | Number of results |
--min-stars | 5 | Minimum star count filter |
--format | table | Output format: table or json |
--descriptions | off | Fetch descriptions via GitHub API (requires token) |
--packages | off | Search packages instead of repositories |
--token | DEP_RANK_TOKEN | GitHub token |
--max-pages | 200 | Maximum pages to scrape (ceiling 1000) |
--no-adaptive-stop | off | Disable adaptive early-stop; scrape continues until exhaustion or --max-pages |
--rank-by | stars | Ranking strategy: stars or trust (heuristic, requires token) |
--trust-check | off | Check sampled star history for up to 25 top results (requires --rank-by trust and token) |
--downloads | off | Show each dependent's most-downloaded registry package (ecosyste.ms / deps.dev / npm; display only) |
--package-name | GitHub's default | Scrape only this package (exact name from the dependents page dropdown). Without it, GitHub's default package is scraped and any other listed packages are named in a hint |
In table output (deps, search, and the live progress table), repository names are clickable links to their GitHub pages in terminals that support OSC 8 hyperlinks; piped or redirected output stays plain text.
dep-rank search — Search code in dependentsdep-rank search https://github.com/django/django "from django.db import"
dep-rank search https://github.com/django/django "middleware" --max-repos 20
| Option | Default | Description |
|---|---|---|
--max-repos | 10 | Maximum repos to search |
--min-stars | 50 | Only search repos with this many stars |
--token | DEP_RANK_TOKEN | GitHub token (required) |
--max-pages | 200 | Maximum pages to scrape (ceiling 1000) |
--package-name | GitHub's default | Scrape only this package (exact name from the dependents page dropdown). Without it, GitHub's default package is scraped and any other listed packages are named in a hint |
search always runs a bounded non-adaptive top-K scrape (--no-adaptive-stop is not exposed; adaptive early-stop is permanently disabled for this command).
Rate-limited code searches are retried up to twice, honoring GitHub's wait headers; if GitHub keeps limiting, the remaining repositories are reported as not searched (rate limited).
A scrape result (deps, and the search pre-pass) reports whether it finished: results include a complete flag and a reason. complete: false means the scrape stopped early — max_pages_reached (raise --max-pages), trend_converged (the adaptive heuristic judged the top-K stable; use --no-adaptive-stop to scrape until exhaustion or --max-pages), network_failure, or rate_limited. total_count/filtered_count are then lower bounds across the pages actually scraped, not population totals.
Some repositories publish several packages, and GitHub's dependents page lists them in a dropdown (at most 100). Without --package-name, GitHub picks the package, and dep-rank names it and the others in a hint. JSON output then also carries package (the one scraped) and packages (every listed name).
dep-rank cache — Manage cachedep-rank cache stats # Show cache size
dep-rank cache clear # Clear all cached data
dep-rank mcp runs an MCP server over stdio so AI agents can call dep-rank directly. It needs the optional mcp extra:
pip install "dep-rank[mcp]"
Client configuration (the command works with any MCP client that launches stdio servers):
{
"mcpServers": { "dep-rank": { "command": "uvx", "args": ["--with", "dep-rank[mcp]", "dep-rank", "mcp"], "env": { "DEP_RANK_TOKEN": "ghp_your_token_here" } } } }
DEP_RANK_TOKEN is required: both tools fail without it. The token is read from the server's environment only, never from a tool argument.
Tools:
get_dependents — rank a repository's dependents by stars or trust (the dep-rank deps pipeline). Parameters mirror the CLI: url, rows, min_stars, dependent_type, descriptions, rank_by, trust_check, downloads, max_pages, adaptive_stop, package_name.search_dependents — search code across the top dependents (the dep-rank search pipeline): url, query, max_repos, min_stars, max_pages, package_name.Caveats:
complete and reason before treating counts as totals; see Partial results.HTTP_PROXY, HTTPS_PROXY, and NO_PROXY from its environment. A SOCKS proxy (for example ALL_PROXY=socks5://...) is not supported: tool calls fail with an error until it is removed from the server's environment.The ghcr.io/j7an/dep-rank image runs the MCP server under Docker MCP Toolkit. You get:
--block-network;It does not change prompt-injection risk: tool results still contain text from third-party repositories, and your agent reads it.
Prerequisites: Docker Desktop with MCP Toolkit, and profiles enabled (the MCPWorkingSets feature flag in Docker Desktop, or docker mcp feature enable profiles).
~/.docker/mcp/catalogs/dep-rank.yaml. The gateway only reads file:// definitions from that directory. name: dep-rank
title: dep-rank type: server image: ghcr.io/j7an/dep-rank:latest description: Rank a GitHub repo's dependents by stars or trust heuristic, and search their code secrets:
get_dependents with downloads also needs packages.ecosyste.ms:443, api.npmjs.org:443, and api.deps.dev:443 in allowHosts; without them, download stats are reported as unavailable.
--id dep-rank: without it the ID becomes dep_rank, which won't match the harness config below. docker mcp profile create --name dep-rank --id dep-rank \
--server "file://$HOME/.docker/mcp/catalogs/dep-rank.yaml"
gh auth token | docker mcp secret set dep-rank.token
If the secret is missing, the gateway passes the literal value as DEP_RANK_TOKEN, so calls fail with GitHub errors rather than a "token missing" message.
--block-network, which is what enforces allowHosts: {
"mcpServers": { "dep-rank": { "command": "docker", "args": ["mcp", "gateway", "run", "--profile", "dep-rank", "--block-network"] } } }
docker mcp client connect -p dep-rank also works, but the entry it writes omits --block-network; add it yourself.
Notes:
image to a release tag (ghcr.io/j7an/dep-rank: ) or an @sha256: digest. Verify an image's build provenance with gh attestation verify oci://ghcr.io/j7an/dep-rank: --repo j7an/dep-rank.dep-rank-cache volume keeps the cache warm between calls.docker rm -f $(docker ps -aq --filter label=docker-mcp-proxy=true).Use dep_rank.core.dependents.get_dependents for the deps pipeline in Python. It returns dep_rank.core.models.DependentsResult; select repository or package dependents with dep_rank.core.models.DependentType. The API may change during 0.x.
import asyncio
import httpx2
from dep_rank.core.cache import SqliteCache from dep_rank.core.dependents import get_dependents from dep_rank.core.models import DependentsResult, DependentType
async def main(cache_dir: str | None = None) -> None: cache = SqliteCache(cache_dir) if cache_dir is not None else None try: if cache is not None: await cache.initialize() async with httpx2.AsyncClient() as session: result: DependentsResult = await get_dependents( session, "https://github
只显示了开头部分;其余内容请在仓库中阅读