About whichlib
whichlib is an MCP server that helps coding agents choose dependencies by finding, comparing, and scoring GitHub repositories. Its transparent score breakdown includes momentum, maintenance, adoption, and license signals.
Key features
- 01Recommend repositories by need
- 02Compare repositories side by side
- 03Find and score trending repositories
- 04Show score breakdowns and verdicts
Use cases
- 01Choose a library for a project requirement
- 02Compare candidate repositories before adoption
- 03Find newly trending repositories by language
MCP support
Provides three tools—recommend_repos, compare_repos, and trending_repos—to MCP clients. It can run locally over stdio or as a hosted HTTP server.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://whichlib.com/mcpclaude mcp add --transport http josifb-whichlib https://whichlib.com/mcp{"mcpServers":{"josifb-whichlib":{"type":"http","url":"https://whichlib.com/mcp"}}}Open in Cursor{"servers":{"josifb-whichlib":{"type":"http","url":"https://whichlib.com/mcp"}}}Open in VS Code{"mcpServers":{"josifb-whichlib":{"type":"http","url":"https://whichlib.com/mcp"}}}{"mcpServers":{"josifb-whichlib":{"serverUrl":"https://whichlib.com/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://whichlib.com/mcpAuth requiredTools
3| Parameter | Type | Required | Description |
|---|---|---|---|
| need | string | Yes | The need in plain words, e.g. "python pdf parser", "react state management". Name the task, not a library. |
| limit | integer | No | How many repositories to return, 1-10. |
| language | string | No | GitHub language name, e.g. "TypeScript", "Python", "Rust", "C++". JavaScript also matches TypeScript repositories and the reverse; Python also matches Jupyter Notebook. Omit to search all languages. |
Details
From the project READMEwhichlib
The dependency picker for coding agents. Ask which library to use and get a scored, verified answer instead of a guess.
whichlib is an MCP server with three tools. It speaks MCP 2026-07-28; older clients keep working. Every repository it returns carries a transparent 0–100 score (momentum, maintenance, adoption including npm and PyPI downloads, license), a tier, a one-line verdict and the full breakdown, so the agent can justify the pick and you can read why.
For teams (waitlist): alerts when a dependency your repos use goes stale, and rules your team's coding agents must follow when they add one. Add a 👍 to the waitlist issue; at 20 signups it gets built. whichlib itself stays free.
Install
Claude Code:
claude mcp add whichlib -- npx -y whichlib
Cursor, Windsurf and other MCP clients:
{ "mcpServers": { "whichlib": { "command": "npx", "args": ["-y", "whichlib"] } } }
Requires Node 22 or newer. No account, no API key.
Use it without installing (hosted, no Node needed):
claude mcp add --transport http whichlib https://whichlib.com/mcp
Limits and the web API: https://whichlib.com/docs/
Tools
| Tool | Ask | You get |
|---|---|---|
recommend_repos | need in plain words, optional language, limit 1–10 | The best repositories for the need, ranked by fit (score × relevance), with downloads and a verdict each |
compare_repos | repos: 2–10 names as owner/repo | The repositories side by side, best first, same breakdown |
trending_repos | period day / week / month / rising, optional language, limit | Most-starred repositories created in the period, scored; rising: repositories of any age by stars gained this week |
Example, in Claude Code: "which Python PDF parser should I use?" → MinerU, pdfplumber, pypdf with scores, weekly downloads and verdicts like "Rising fast, 26k downloads/wk, pushed 3 days ago, Apache-2.0".
Score
| Part | Weight | Signal |
|---|---|---|
| Momentum | 40% | Stars gained over 7 days (from daily star counts when available), else stars per day since creation, scaled by the npm/PyPI download trend when known (0.5–2x). Log scale. |
| Maintenance | 25% | Days since last push, full marks to 30 days, zero at a year. Widely used repos (10k+ stars or 100k+ weekly downloads) never drop below half. |
| Adoption | 25% | Stars, forks and npm / PyPI weekly downloads, log scale. |
| License | 10% | Permissive 1.0, weak copyleft 0.75, strong copyleft 0.5, none 0. |
Tiers: Strong ≥ 75, Solid ≥ 50, Watch ≥ 25, Avoid; repos younger than 30 days are New ("Too new to judge"), whatever their score. Archived repos are capped at 20. On a 20-need eval the top recommendation is an accepted answer 75% of the time and the top five contain one 100% of the time; the eval and its reports live in the repository.
Environment variables, all optional
GITHUB_TOKEN: raises GitHub's search limit from 10 to 30 per minute. A fine-grained token with no permissions is enough. Recommend makes three searches per call.WHICHLIB_HISTORY=off: do not download daily star counts. By default the server keeps the last 10 days in~/.whichlib/stars/, refreshed in the background at most every 12 hours fromraw.githubusercontent.com, so momentum uses real stars gained per week for the top 1,000 repos per language and new trending repos. Nothing is sent with that download.FRESH_REPOS_DATA_DIR: a folder of daily snapshots or star counts to use instead (see the repository's data branch).WHICHLIB_TELEMETRY=offorDO_NOT_TRACK=1: disables anonymous call counting. What is counted: tool name, a random install id, version, platform, Node major version, the MCP protocol version of the call. Never queries, repository names or results. The aggregate numbers are public at https://whichlib-telemetry.todorovskijosif.workers.dev/stats.
Source, dashboard, data
Repository: https://github.com/josifb/whichlib (MIT). It also holds the Fresh Repos dashboard (most-starred new repositories, day / week / month, sortable, one HTML file), the nightly snapshot and enrichment jobs, the recommendation eval, and 80+ unit tests.
Development, from the whichlib/ folder of the repository:
npm test # unit tests, no network
npm run mcp:smoke # start the server over stdio and call every tool live
npm run eval # 20-need recommendation eval (set GITHUB_TOKEN)
npm run snapshot # today's top repos per period and language -> data/snapshots/
npm run enrich # add npm / PyPI packages and weekly downloads to the latest snapshot
npm run score # top repos from the latest snapshot with score and verdict
npm run pull-data # copy snapshots from the data branch
Layout:
mcp/server.mjs MCP entry (stdio) mcp/tools.mjs tool logic
mcp/expand.mjs query expansion mcp/telemetry.mjs anonymous call counting
mcp/github-api.mjs GitHub client + cache mcp/data.mjs snapshot history provider
mcp/eval/ needs, metrics, runner, inspect, results/
lib/score.js the score, shared by browser and Node
snapshot/src/ query, normalize, github, registry, enrich, history, run, score-report, pull-data
dashboard/index.html redirect to whichlib.com/repos (Fresh Repos)
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.