Skip to main content
Glama
GitHub Repository Search MCP Server

GitHub Repository Search MCP Server

Search GitHub repositories by keyword, language, topic, and stars

search_github_repositories
Read-onlyIdempotent

Search public GitHub repositories by keyword, language, topic, star range, and dates; return structured metadata like owner, stars, forks, and license for each match.

Instructions

Give search phrases and filters (language, topics, star range, created or pushed date). Returns one row per public GitHub repository from GitHub's official search API: full name, owner, description, language, topics, stars, forks, open issues, license, created, updated, and pushed dates. Optional GitHub token for higher limits. Pay per event on Apify: 0.0025 USD per repository row.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_github_repositories"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNostars (default) lists the most starred first, forks the most forked, updated the most recently updated, best_match by GitHub's relevance.
forksNoexclude (default) leaves forks out, include adds them, only returns forks alone.
topicsNoOnly repositories tagged with every one of these GitHub topics, for example llm or web-scraping.
keywordsNoSearch phrases, for example web scraper or vector database. Each phrase is one search, combined with the filters below. One phrase per line. Leave empty to search on the filters alone. In Clay, put the column inside a one item list.
languageNoOnly repositories in this main language, for example Python, TypeScript, or Go.
max_starsNoOnly repositories with at most this many stars. With a minimum, this makes a range: use ranges to reach past GitHub's 1,000 results per search.
min_starsNoOnly repositories with at least this many stars, for example 100.
github_tokenNoOptional. Your own GitHub personal access token; it needs no scopes for public repositories. With it the run makes 30 searches a minute instead of 10. It is stored encrypted by Apify, sent only to api.github.com, and never written to a row or a log.
pushed_afterNoOnly repositories with a push on or after this date, YYYY-MM-DD. Use it to skip inactive projects.
created_afterNoOnly repositories created on or after this date, YYYY-MM-DD.
max_charge_usdNoStop the run before its charges pass this amount in USD. Empty for no cap beyond the one set in Apify.
extra_qualifiersNoAdvanced. Any other GitHub search qualifiers, added as written, for example license:mit in:readme or user:apify. See docs.github.com/en/search-github/searching-on-github/searching-for-repositories.
include_archivedNono (default) leaves archived, read only repositories out. yes keeps them.
max_repos_per_searchNoStop each search after this many repository rows. Default 100. GitHub returns at most 1,000 per search.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/openWorld/idempotent/non-destructive, and the description adds real behavior beyond them: per-row pricing of 0.0025 USD, a max_charge_usd spend cap, the 1,000-results-per-search limit, the 10-vs-30 searches/minute rate difference granted by a token, and how the token is stored and scoped. This is exactly the kind of cost, quota, and credential context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the input contract, then outputs, then credentials/cost. Nothing is padded, and listing exported fields is justified because no output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers input expectations, returned fields, credential handling, rate limits, result caps, and billing, which is thorough for a 14-parameter read tool with no output schema. Minor gap: it does not say what happens on an invalid token or how partial/failed searches surface, though annotations cover the safety profile.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 14 parameters are already documented in structured fields, and the description's filter list (language, topics, star range, dates) largely restates them. It adds only the pricing model and pointer to the pricing-per-row behavior, which is not a parameter-level clarification, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('search GitHub repositories') plus the exact mechanism ('GitHub's official search API') and the unit of output ('one row per public GitHub repository'), then enumerates the returned fields. An agent knows precisely what this does and that scope is limited to public repositories.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operating guidance: supply free-text phrases plus filters, leave keywords empty to filter alone, and use star ranges to get past GitHub's 1,000-result-per-search ceiling. It lacks any when-not-to-use or alternative-tool routing, but there are no sibling tools to route to.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools