Search GitHub repositories, users or trending projects
search_githubThree GitHub discovery reads in one call: mode: repositories (default) searches public repositories by keyword, language, push window and stars/forks; mode: users searches developers and organizations by keyword, location, language and followers/repositories, returning each account's bio, company, location, website, X handle and exact counts; mode: trending reads GitHub's trending repositories page (daily, weekly or monthly, optionally by language) with stars gained in the window. Cached for thirty minutes.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | What to search for (`repositories` and `users` modes). Omit on `trending` mode, or when filtering by `language` or `location` alone. | |
| mode | No | `repositories` (default) searches public repositories, `users` searches developers and organizations for lead discovery, and `trending` reads GitHub's trending repositories board (`github.com/trending`). | |
| sort | No | Order: `relevance`, `stars`, `forks` or `updated` on `repositories`; `relevance`, `followers`, `repositories` or `joined` on `users`. | |
| limit | No | Items to return, 1–30. One page is one read: a smaller `limit` on the same question is served from it. | |
| recency | No | Window filter: `day`, `week`, `month` or `year` on `repositories` (by last push), or `day`, `week` or `month` on `trending` (`daily`, `weekly`, `monthly`). | |
| refresh | No | Read again instead of serving the half-hour cache. Charged like any read, and the fresh answer replaces the cached one. | |
| language | No | Programming language filter, such as `typescript`, `python` or `rust`. | |
| location | No | Location filter for `users` mode, such as `Brazil` or `São Paulo`. | |
| accountType | No | Filter `users` mode to personal accounts (`user`) or organizations (`org`). |