reposniffer-mcp
This server helps agents discover and vet open-source GitHub projects via MCP tools.
find_repos: Rank GitHub projects by a natural-language feature query, with configurable filters (language, license, min stars, archived inclusion, intent, top-k) and returns scored candidates with evidence and quality signals.
repo_intel: Verify an existing repo (owner/name) for health, license, and best-of-kind status, and get alternative project suggestions.
health: Check the embedding backend, model, and GitHub authentication status.
Provides GitHub repository discovery and intelligence, allowing natural-language feature queries to return ranked open-source projects with quality signals, license classifications, and snippet evidence.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@reposniffer-mcp Find a well-maintained Python library for converting PDFs to markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RepoSniffer
There's a repo for that. Let RepoSniffer find it.

AI-first GitHub repo discovery. Describe a feature in plain language — "markdown editor with live preview" — and RepoSniffer returns a ranked, adoption-grade list of open-source projects that implement it, with evidence and quality signals (stars, activity, license, archived status).
Built to be the grounding layer for coding agents: stop hallucinating repos, get a verifiable "best of kind" answer with reasons.
Quickstart
# CLI
uvx reposniffer "markdown editor live preview" --language python --top-k 5
# MCP server (stdio) — wire into opencode, Claude Code, Codex, Cursor, ...
uvx --from reposniffer reposniffer-mcpSet GITHUB_TOKEN to raise search rate limits (authenticated = 30 req/min vs ~10).
Related MCP server: github-repo-mcp
Wire into your agent
opencode — add to opencode.json:
{
"mcp": {
"reposniffer": {
"type": "local",
"command": ["uvx", "--from", "reposniffer", "reposniffer-mcp"],
"environment": { "GITHUB_TOKEN": "ghp_..." }
}
}
}Claude Code: claude mcp add reposniffer -- uvx --from reposniffer reposniffer-mcp
Codex/Cursor: add an MCP server pointing at uvx --from reposniffer reposniffer-mcp (stdio).
MCP tools
Tool | Purpose |
| Feature query → ranked candidates with score breakdown, snippet evidence, license verdict, recommendation |
| Verify an existing repo (alive? licensed? best-of-kind?) + 2 alternatives |
| Embedding backend, model, auth status |
Every result carries as_of (a freshness timestamp agents can cite), a flags list
(archived, no-license, strong-copyleft, stale, ...), a license_category
(permissive / weak-copyleft / strong-copyleft / unknown), and a targeted
snippet showing why the repo matched.
Why not just GitHub Search?
Need | GitHub Search / grep.app | RepoSniffer |
Query | literal keywords ( | natural language intent ( |
Ranking | BM25 / stars only | hybrid cosine + lexical rerank + quality signals |
Verdict | you inspect each repo |
|
Agent-ready | scrape HTML / hallucinate | MCP |
Cache | none | local SQLite (repos, READMEs, embeddings, queries) |
Architecture
Coarse candidate fetch — GitHub Search API (
in:readme, language/license/stars filters).Hybrid rerank — embed each candidate's description + README front matter (not the whole README, to avoid dilution), cosine vs embedded query, plus a lexical-overlap boost for literal matches.
Quality scoring — popularity (log stars), activity (pushed_at half-life), license category, archived penalty; weights differ by
intent(adoptvsstudy).Adoption safety — permissive/weak/strong-copyleft classification flags GPL/AGPL repos before you depend on them.
Local SQLite cache — repos, READMEs, embeddings, query results → fast repeat queries, index grows over time.
Embeddings are pluggable: default is a zero-config local fastembed ONNX model
(BAAI/bge-base-en-v1.5, no torch, no API key); set REPOSNIFFER_EMBED_BACKEND=api plus an OpenAI-compatible
endpoint for stronger quality.
Model size: the default bge-base-en-v1.5 is a one-time ~209 MB download (cached
in ~/.cache/fastembed). If you want a smaller footprint, set
REPOSNIFFER_EMBED_MODEL=BAAI/bge-small-en-v1.5 (~90 MB) — quality is slightly lower
(hit@1 0.50 vs 0.83 on the eval), so prefer the larger model when disk isn't a concern.
Eval
Ground-truth queries live in eval/queries.py (feature → known-good repos). Run with a
token (each query fetches ~50 READMEs):
GITHUB_TOKEN=ghp_... uv run python -m eval.runReports hit@1 / hit@3 / hit@5. Current live result: hit@1 0.83, hit@3 0.83, hit@5 0.83.
Known limitation: the candidate stage depends on GitHub Search API relevance, which can
fail to recall canonical repos with weak descriptions/READMEs (e.g. Kozea/WeasyPrint
— description is just "The awesome document factory"). Semantic rerank can only rank
what the candidate fetch surfaces.
Star History
Project layout
src/reposniffer/
config.py # env-driven settings
cache.py # sqlite store (repos, readmes, embeddings, query cache)
engine/
github.py # GitHub REST client + search query builder + text/snippet utils
embed.py # Embedder protocol: local fastembed + OpenAI-compatible API
score.py # quality + license-category + lexical scoring
search.py # orchestration (Engine)
mcp/server.py # MCPServer (mcp 2.x)
cli.py # Typer CLI
eval/ # golden query → repo eval harness
tests/ # offline (fake transport + fake embedder)Development
uv sync
uv run ruff check .
uv run ruff format --check .
uv run pyright
uv run pytestCI (lint/format/type/tests) runs on every push and PR. Publishing to PyPI happens on v*
tags via trusted publishing — enable it once on the PyPI project settings, then:
git tag v0.1.0 && git push --tags.
Note: mcp 2.x is used — MCPServer (FastMCP was renamed in mcp 2.0). Pin mcp<2 if you need the v1 API.
Contributing
We welcome contributions — bugs, features, docs, and eval cases. Please read CONTRIBUTING.md first; it covers the dev setup, coding standards, tests, the eval harness, and the PR workflow.
Found a bug? Open an issue with the exact query and output.
Have a feature idea? Discuss it in an issue before writing code.
Reporting a vulnerability? See SECURITY.md — don't post it publicly.
This project follows a Code of Conduct.
License
MIT
Available Tools
3 toolsfind_reposA
Rank open-source GitHub projects that implement a described feature.
Use when an agent needs to pick a library/project to adopt or study, and wants a verifiable, adoption-grade verdict with evidence and quality signals (stars, activity, license, archived status) instead of a hallucinated guess.
Inputs: query (required), top_k, intent, license, +3 more. Returns: object
healthA
Report embedding backend, model, and GitHub auth status.
Inputs: no named parameters. Returns: object
repo_intelA
Verify an existing repo the agent already found: is it alive, licensed, and best-of-kind? Returns a status verdict plus a few alternatives.
Use BEFORE committing to a dependency to catch archived/stale/no-license repos.
Inputs: owner_repo (required), query, top_k. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
find_repos is clearly for discovering projects by feature, repo_intel is clearly for validating an already-known repo, and health is an operational diagnostic. The purposes are distinct and the descriptions reinforce the boundaries.
The names are readable and unambiguous, but they do not follow a single pattern: find_repos uses verb_noun, while repo_intel and health are noun-style labels. There is no chaotic mixing of casing, but the conventions are inconsistent.
Three tools is an appropriate size for a focused repo-intelligence server. Each tool has a clear role: discovery, verification, and service health, so none feels redundant or extraneous.
The core workflow is covered: discover candidate repos, validate them for adoption, and check service health. A minor gap is the lack of a dedicated detailed-comparison tool, but the combination of verdicts and alternatives in repo_intel makes the surface functional.
Maintenance
Related MCP Connectors
Finds real, maintained open-source repos that fit your project. MCP grounding for coding agents.
Dependency picker for coding agents: recommends, compares and scores GitHub repos with a verdict.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Search agent-ready open source repos by task, interface, ecosystem and OG score.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to discover GitHub repositories by expanding intents into multiple keyword queries, searching GitHub's live Search API, and returning deduplicated, ranked candidates with README excerpts and metadata.11MIT
- AlicenseAqualityCmaintenanceEnables AI agents to analyze public GitHub repositories directly through tools for repo health scoring, recent commit summaries, good first issue discovery, and semantic Q&A over docs and issues.439 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to find public GitHub repositories matching plain-language project descriptions, filter low-quality results by ranking, and fetch a repository's README.1Creative Commons Attribution Non Commercial Share Alike 4.0 International
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to route engineering problems to manifest-verified GitHub repositories with OS/license filtering and multi-step capability decompositions, while reducing context tokens and blocking prompt-injection payloads.1MIT