@buygit/mcp-server
The @buygit/mcp-server lets you search, discover, audit, and compare 78,094 curated Git assets with license classification, supply-chain risk scoring, popularity metrics, and pricing — no API key required for most tools.
Core Tools
Search (
buygit_search): Full-text search with filters for license, category, language, minimum stars, and sort options.Get listing details (
buygit_get_listing): Full detail for a single listing — secret-scan status, malware flag, upstream health, repo signals, license, pricing, and up to 5 similar listings.Browse categories (
buygit_list_categories): Full taxonomy with per-category counts.Trending assets (
buygit_trending): Top assets by recent activity (day/week/month), optionally filtered by category.Compare listings (
buygit_compare): Side-by-side comparison of 2–5 listings including license warnings, popularity, risk, and pricing.Catalog statistics (
buygit_stats): Total listings, license/category/source breakdowns, and last indexed timestamp.Random discovery (
buygit_random): Surface 1–10 random listings for serendipitous browsing.Find alternatives (
buygit_find_alternative): License-compatible, risk-scored alternatives to any library or repo, filterable by language and license.License compatibility (
buygit_check_license_compat): Check if one SPDX license can be bundled into a project with another — returnscompatible,review, orincompatiblewith a plain-English explanation.Audit any GitHub repo (
buygit_audit_repo): Audit an external GitHub URL for license, supply-chain risk, popularity, and repo signals via cached or live data.AI-powered explanations (
buygit_explain): Plain-English summary of a listing focused on overview, license, risk, or usage (requires Anthropic API key).Diff versions (
buygit_diff_versions): Compare how a listing's license, popularity, and risk changed between two dates.Deep federated audit (
buygit_deep_audit): Chains Socket, OpenSSF Scorecard, and TruffleHog companion MCPs with BuyGit signals for a comprehensive multi-vendor supply-chain audit.Tool routing (
search_tools): Meta tool that maps plain-English intent to the best BuyGit tool(s) to call.
Additional Features
7 resource templates for @-mentioning listings, categories, comparisons, trending, stats, the category tree, and license compatibility as conversation context.
4 prompt templates for common tasks: finding starter kits, discovering alternatives, auditing dependencies, and exploring categories.
Indexes Git assets from Codeberg, providing license classification, supply-chain risk, and popularity scoring.
Integrates with GitHub to fetch curated, license-tagged, and risk-scored Git assets for the BuyGit Open Index.
Indexes npm packages with license, risk, and popularity signals, enabling license-filtered and risk-aware searches.
Chains Socket's security analysis alongside BuyGit's own signals in the deep audit tool for comprehensive supply-chain risk assessment.
Indexes WordPress plugins and themes with metadata including license category and supply-chain risk.
@buygit/mcp-server
The only MCP that returns license + supply-chain risk + popularity + price in a single call. 78,094 curated Git assets. Zero config. MIT. Free forever.
MCP server for the BuyGit Open Index — 78,094 curated, deduplicated, license-tagged Git assets from GitHub, Codeberg, npm, crates.io, WordPress, HuggingFace, and 17 other sources — to Claude Desktop, Cursor, Cline, Continue, ChatGPT Apps SDK, and any MCP 2025-11-25 client.
Companion:
@buygit/cli— same answers from your shell.npx @buygit/cli search "react form" --license MIT.Companion:
buygit-vscodeextension — license-compat + audit from the VS Code command palette + explorer right-click. Seepackages/vscode-extension.Works in Antigravity, Claude Desktop, Claude Code, Cursor, Cline, Codex CLI, Continue, Gemini CLI, OpenCode, Roo Code, Windsurf, Zed, and any MCP 2025-11-25 client. Full install matrix in CLIENTS.md.
Cursor one-click install:
cursor://anysphere.cursor-deeplink/mcp/install?name=buygit&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBidXlnaXQvbWNwLXNlcnZlckBsYXRlc3QiXX0=
What is BuyGit?
BuyGit is an open marketplace and discovery platform for Git-based digital products — source code, templates, SaaS starters, boilerplates, plugins, AI agents, ML models, and developer tools.
Unlike raw GitHub search, BuyGit curates, deduplicates, and enriches every listing with structured metadata:
License classification — SPDX identifier + category (permissive / weak-copyleft / strong-copyleft / proprietary) + plain-English compatibility warnings
Supply-chain risk scoring — 0-100 composite score based on dependency hygiene, secret scan status, malware flags, and maintenance signals
Popularity scoring — log-scaled 0-100 star score normalized across sources (GitHub, npm, crates.io, etc.)
Pricing tier — free vs. paid, with USD price for premium listings
Repository health — stars, forks, language, last commit date, archived/disabled status, upstream health
The catalog currently indexes 78,094 crawler-imported listings from 17+ sources, with continuous crawling adding new assets daily. BuyGit also supports seller-curated premium listings (marketplace), but the MCP server exposes only the public crawler-imported catalog — no auth required.
Key URLs:
🌐 Main site: buygit.com
📖 MCP landing page: buygit.com/mcp
📋 API spec: buygit.com/api/v1/crawler/openapi.json
Related MCP server: proof-of-commitment
Why BuyGit over raw GitHub search?
Every tool returns a 4-axis signals block — the differentiator. No other MCP gives you this in one call.
{
"license_category": "permissive",
"license_warning": null,
"popularity": 75,
"risk": 0,
"price_usd": 0,
"pricing_tier": "free"
}User question | github-mcp | Smithery code-search | context7 | Socket MCP | BuyGit MCP |
"MIT-compatible image diff library" | raw search, no license | raw search | docs only | safety only | license-filtered |
"Is this dependency safe to bundle?" | — | — | — | Socket score | Socket + popularity + license fused |
"Compare A vs B by license + activity" | 4+ calls | 4+ calls | — | — | 1 call |
"Alternative to GPL X, but MIT-only" | — | — | — | — |
|
"Is GPL-3.0 safe in my MIT project?" | — | — | — | — |
|
"Explain this listing for me" | — | — | — | — |
|
"Deep audit with companion MCPs" | manual | — | — | separate |
|
We also tell you when NOT to use us — see WHEN_NOT_TO_USE.md.
What you get
14 tools, 7 resource templates, 4 prompts — all backed by the public, read-only, free-forever BuyGit Open Index API. Full client install matrix in CLIENTS.md (13 clients).
Tool | One-line value |
| Curated, license-tagged, risk-scored search across 78,094 assets. |
| Replaces 3 separate MCP calls — license + risk + popularity + repo signals + similar in one shot |
| Full taxonomy with per-category counts |
| Curated trending (not GitHub Trending noise), license-aware |
| Single-call 2-5 way comparison with license_warning |
| Catalog meta — totals by license, category, source, plus data_freshness |
| Surprise me — license + risk badges on every pick |
| License-filtered, risk-scored alternatives — the answer GitHub search cannot give |
| "Is GPL-3 safe in my MIT project?" Returns compatible / review / incompatible with note. The only MCP that answers this without a separate SCA tool. |
| Audit any external GitHub repo URL — same 4-axis signals as catalog rows, via live GitHub probe. Falls back to richer cached signals when URL is in our index. |
| v0.9.0 · AI-powered listing summary (overview / license / risk / usage focus). Gated on |
| v0.9.0 · Time-window signal diff — shows how a listing's license, popularity, and risk changed between snapshots. |
| v0.9.0 · Federated deep audit — chains Socket, OpenSSF Scorecard, and TruffleHog companion MCPs alongside BuyGit's own signals for a comprehensive security audit. |
| Meta routing tool — give it a plain-English intent, get the ranked tool to call next. MCP Tool Search Tool semantic. |
Resources let you @-mention a listing, category, comparison, or any cacheable static asset and have it attached as conversation context — no tools/call required:
buygit://listing/{slug}— full listing detail with 4-axis signalsbuygit://category/{slug}— category top 20buygit://compare/{slug-a}+{slug-b}+{slug-c}— single-fetch 2-5 way comparebuygit://trending/{period}— day/week/month trending, pin once and re-referencebuygit://stats— catalog meta + data_freshness, pin to know catalog scalebuygit://category-tree— full taxonomy lookup tablebuygit://license/{spdx}— compatibility matrix row for any SPDX id
Prompts (slash-menu in Claude Desktop):
starter_for_stack— "Find me a starter kit for {stack}"alternative_to— "Alternatives to {repo}"audit_my_dependency— "Is {slug} safe to ship?"explore_category— "What's hot in {category}?"
Install
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows:
{
"mcpServers": {
"buygit": {
"command": "npx",
"args": ["-y", "@buygit/mcp-server@latest"]
}
}
}Restart Claude Desktop. The first tool call may take a few seconds while npx resolves the package.
Cursor
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"buygit": {
"command": "npx",
"args": ["-y", "@buygit/mcp-server@latest"]
}
}
}Cline (VS Code extension)
Open the Cline MCP settings (Cline: Open MCP Servers from the command palette) and add:
{
"buygit": {
"command": "npx",
"args": ["-y", "@buygit/mcp-server@latest"]
}
}Continue
Continue picks up MCP servers from ~/.continue/config.json:
{
"mcpServers": {
"buygit": {
"command": "npx",
"args": ["-y", "@buygit/mcp-server@latest"]
}
}
}Self-hosted via Docker
docker run -i --rm ghcr.io/buygit/mcp-server:latestThe container runs stdio MCP. Pipe stdin/stdout from your client.
Try it
After you've added the config and restarted your client, ask:
"Find me a Next.js SaaS starter under MIT with more than 500 stars."
"What's trending in AI agents this week on BuyGit?"
"Tell me about
next-saas-starter-pro— is the secret scan clean?""Compare
react-saas-templateandnextjs-stripe-starter.""Explain the license risk of
some-gpl-libraryfor my MIT project.""Run a deep audit on github.com/some-org/some-repo."
The model will call the right tools, attach the canonical BuyGit links, and let you click through.
Configuration
Env var | Default | Purpose |
|
| Override for staging / self-hosted mirror |
|
|
|
|
| Per-request timeout in milliseconds. Increase for slow networks. |
|
| Anthropic model for |
| (none) | Required only for |
| (built-in) | JSON override for companion MCP tool names in |
Architecture
┌─────────────────────────────────────────────┐
│ AI Agent (Claude, GPT, Gemini, …) │
│ ↕ MCP JSON-RPC (stdio or Streamable HTTP) │
├─────────────────────────────────────────────┤
│ @buygit/mcp-server │
│ 14 tools · 7 resources · 4 prompts │
│ Zod input validation · structuredContent │
│ Retry w/ exponential backoff (429/503) │
├─────────────────────────────────────────────┤
│ undici Pool → buygit.com REST API │
│ Public · Read-only · No auth · Free │
└─────────────────────────────────────────────┘Privacy & licensing
The BuyGit Open Index API is public, read-only, no auth. There is no key to install. Requests are not personally identifiable (the server doesn't log the queries you make).
The catalog excludes seller-curated listings — only crawler-imported public-repo metadata is exposed. Each result includes a url field linking back to the canonical BuyGit page; please surface that link when redistributing.
This package is MIT licensed. The API responses are licensed for indexing + attribution per the BuyGit API terms.
Links
BuyGit main site: https://buygit.com
BuyGit MCP landing page: https://buygit.com/mcp
OpenAPI 3.1 spec: https://buygit.com/api/v1/crawler/openapi.json
Issues: https://github.com/genoxdeveloper/buygit-mcp-server/issues
Develop
cd packages/mcp-server
pnpm install
pnpm build
node dist/index.js # connects on stdio — feed it MCP JSON-RPC over stdinOr run the watch build while developing:
pnpm devRun tests:
pnpm test # 57 tests (handler + server + federation)To smoke-test against the live API:
BUYGIT_API_BASE=https://buygit.com node dist/index.js
# then in another process, send a `tools/list` JSON-RPC frameAvailable Tools
14 toolsbuygit_audit_repoA
Audit any external GitHub repo (not just BuyGit catalog) — returns license + supply-chain risk + popularity + repo signals in one shot. If the repo is already in our catalog, uses the richer cached signals. Otherwise lives-probes the GitHub REST API. Use for "is github.com/X/Y safe to bundle?" or "what license is github.com/X/Y under?".
Inputs: url (required). Returns: source, repo_url, listing, audit, +2 more
buygit_check_license_compatA
Check whether SPDX license A can be bundled into a project licensed under SPDX license B. Returns one of compatible / review / incompatible with a plain-English note. The only MCP that answers "Is GPL-3.0 safe in my MIT project?" without a separate SCA tool. Hint, not legal advice.
Inputs: source (required), target (required). Returns: source, target, verdict, note
buygit_compareA
Single-call side-by-side of 2-5 listings: license category, license_warning, popularity score, risk score, pricing, repo signals. Equivalent github-mcp / Smithery workflows need 4+ calls and do not return license compatibility. Pass slugs from prior tool results; unknown slugs come back as not found entries instead of erroring.
Inputs: slugs (required). Returns: items
buygit_deep_auditA
Federated audit — spawns Socket / OpenSSF / TruffleHog companion MCPs in parallel and combines their findings with our catalog signals. The only MCP that one-shots a multi-vendor supply-chain check (vs. the user installing 4 MCPs and asking each separately). Companion MCPs that are not installed surface as federation_failures[] with operator hints. Soft-fails per-companion — always returns SOMETHING agent-actionable.
Inputs: slug_or_url (required), federate_with, timeout_ms. Returns: target, buygit_audit, federation_results, verdict
buygit_diff_versionsA
Time-window diff for a BuyGit listing — did the license / popularity / risk change between two dates? Answers questions no other MCP can ("did this dep regress since I added it last quarter?"). Returns snapshot-driven deltas when the operator has TRENDING_V2_ENABLED + the snapshot table populated; otherwise returns current state + a gated_on hint so the agent knows what to ask the operator for.
Inputs: slug (required), from, to. Returns: slug, title, mode, from, +5 more
buygit_explainA
AI-summarised explanation of a BuyGit listing (license + risk + how to use). Uses Claude Haiku 4.5 under the hood; gated on the operator's ANTHROPIC_API_KEY (returns a structured error with routing hint when unset). Use after buygit_get_listing when the user wants a plain-English digest instead of raw fields.
Inputs: slug (required), focus. Returns: slug, summary, focus, model, +1 more
buygit_find_alternativeA
Find license-compatible, risk-scored alternatives to a library or repo — the answer GitHub search cannot give (raw search ranks by stars and lacks license/risk signals). Filter by language and required license (e.g. MIT-only). Use when the user says "what can replace X?", "alternatives to Y", or "the GPL version of Z is blocking me, find an MIT one".
Inputs: query (required), language, license, limit. Returns: query, count, results
buygit_get_listingA
Full detail for one BuyGit listing — replaces 3 separate MCP calls (license + supply-chain risk + popularity in one response). Includes secret-scan status, malware flag, upstream health, repo signals (stars, forks, last commit, language), full description, license classification with compatibility warning, pricing, and up to 5 similar listings. Slug must come from a prior buygit_search / trending / random / compare result.
Inputs: slug (required). Returns: slug, title, url, license, +1 more
buygit_list_categoriesA
Full BuyGit Open Index taxonomy with per-category crawler listing counts. Use this to find a category slug for buygit_search, or to discover what is in the catalog. Counts are accurate to the last crawl (typically <24h).
Inputs: no named parameters. Returns: categories
buygit_randomA
Surface 1-10 random crawler listings, each with license + risk + popularity + pricing signals. Useful for "surprise me", category browsing, or seeding agent suggestions when the user has not specified intent. Optional category slug narrows the pool.
Inputs: count, category. Returns: count, results
buygit_searchA
Search 78,094 curated, deduplicated, license-tagged Git assets — not raw GitHub search. Every result carries license + popularity + supply-chain risk + pricing in one shot. Filters: category slug, language, SPDX license, min stars. Sort: relevance | newest | stars | health. Prefer this when the user wants to use or buy a project, compare alternatives, or check license compatibility. Use github-mcp for private repos / Issues / commits.
Inputs: query, category, language, license, +4 more. Returns: count, has_more, next_cursor, results
buygit_statsA
BuyGit Open Index meta — total listings, license breakdown, top categories, source providers, last_indexed_at. Useful for "how big is the catalog?", "what license is most common?", or proving the curated catalog size before recommending it.
Inputs: no named parameters. Returns: total_listings, last_indexed_at, by_license, by_category, +1 more
buygit_trendingA
Top crawler listings ranked by recent activity (day | week | month), each carrying license + risk + popularity + pricing. Optionally narrow to a category. Use for "what is hot right now in " — agent gets a curated, license-aware shortlist instead of GitHub trending noise.
Inputs: period, category, limit. Returns: period, count, results
search_toolsA
Meta tool — given a plain-English intent, returns the most appropriate BuyGit tool(s) to call next, ranked. Implements MCP Tool Search Tool semantics. Saves the agent from listing every tool description when only one will fit the user's ask.
Inputs: intent (required). Returns: intent, recommendations
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools map to distinct workflow steps—search, trending, random, compare, audit, license check—so an agent can usually select correctly. Minor ambiguity exists between buygit_get_listing, buygit_explain, and buygit_deep_audit, and between search_tools and buygit_search, but descriptions clarify the boundaries.
The buygit_ prefix and snake_case naming are consistent and readable. However, not all names follow a strict verb_noun pattern—trending, random, and stats are noun/adjective-style—and search_tools breaks the buygit_ prefix, creating a small inconsistency.
14 tools sits within the well-scoped 3-15 range and each tool covers a distinct user intent or workflow phase. The set is broad but not bloated, with no obvious filler tools.
The server covers the full catalog lifecycle: discovery, search, detail, trending, random, comparison, alternatives, license compatibility, external auditing, deep auditing, and version diffs. There are no core dead ends, and optional gated features are clearly handled with fallback behavior.
Maintenance
Related MCP Connectors
Supply chain risk scoring for npm, PyPI, Cargo, and Go. 9 tools. Behavioral signals.
Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and supply-c.
Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and security.
Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAnalyze GitHub repositories into structured JSON with tech stack detection, dependency analysis, health signals, and security checks. No AI, fully deterministic. Available as CLI and MCP server.9MIT
- AlicenseAqualityBmaintenanceSupply chain risk scoring for npm, PyPI, and GitHub repos860 npm9MIT
- AlicenseAqualityDmaintenanceMCP security trust layer. Continuously monitors 800+ MCP packages on npm for install scripts, command injection, hardcoded secrets, capability drift, and publisher posture. Ships a GitHub Action policy gate for PR-level allow/warn/block decisions. 5 MCP tools, no API key required.899 npm1MIT
- AlicenseNot gradedqualityDmaintenanceCombines GitHub repository analysis, npm/PyPI package info, and deps.dev security advisories into a single MCP server, requiring no API keys.MIT