GitHub (Unofficial)
v0.2.2Unofficial GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_repos
Search GitHub repositories by keyword. Returns repo name, description, star count, forks, primary language, and URL. Use when exploring projects or finding code implementations.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query string (e.g., "react hooks", "cli tool language:go") |
per_page | number | Number of results to return (default 10, max 30) |
sort | string | Sort results by: stars, forks, or updated (default: stars) |
get_repo
Look up ONE named repository by its owner/repo slug — "facebook/react", "torvalds/linux", "vercel/next.js". Use this whenever the repository is named in the question. Answers how many stars / forks / watchers a repo has, what license and language it uses, its topics, description, open issue count, its default branch, and when it was last pushed (pushed_at).
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name, e.g. "react". Also accepts the full slug "facebook/react". |
owner | string | Repository owner (user or org), e.g. "facebook". May be omitted if `repo` carries the full "owner/repo" slug. |
list_repo_issues
List issues for a GitHub repository by owner and repo name; filters pull requests out automatically. Returns issue number, title, state, labels, author, comment count, URL, and timestamps. Defaults to open issues.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner (user or org) |
repo * | string | Repository name |
per_page | number | Number of issues to return (default 10, max 30) |
state | string | Filter by issue state: open, closed, or all (default: open) |
github_get_user
Get a GitHub user's public profile info. Returns name, bio, company, location, public repo count, followers, and social links. Specify username (e.g., username="torvalds").
| Parameter | Type | Description |
|---|---|---|
username * | string | GitHub username, e.g. "torvalds" |
get_file_contents
Read a file from a PUBLIC GitHub repository (or list a directory) by path. PREFER OVER WEB SEARCH for "show me the README / package.json / <file> of <repo>", "read <path> from <owner/repo>", inspecting source or config files. Pass owner + repo + path (omit path or "" for the repo root listing). Optional ref = branch/tag/commit SHA. Returns decoded text for files (capped ~60k), or a directory listing of {name, path, type, size}.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repo owner or org (e.g. "cli"). |
repo * | string | Repo name (e.g. "cli"). |
path | string | File or directory path (e.g. "README.md", "src/index.ts"). Omit or "" for the repo root. |
ref | string | Optional branch, tag, or commit SHA (default: the repo default branch). |
search_code
Search CODE across public GitHub repositories — find where a function/symbol/string is defined or used. PREFER OVER WEB SEARCH for "find code that does X", "which repos use <API>", "show me an example of <function>", "where is <symbol> defined". Supports GitHub code-search qualifiers right in the query: repo:owner/name, org:name, user:name, language:go, filename:Dockerfile, path:src, extension:ts, in:file. Returns matching files with repo, path, and URL. Note: indexes the default branch only, ignores very common terms, and is capped at ~10 searches/minute.
| Parameter | Type | Description |
|---|---|---|
query * | string | Code search query, e.g. "NewCmdRoot repo:cli/cli", "createRoot language:typescript", "addEventListener org:facebook". |
per_page | number | Number of results to return (default 10, max 30). |
get_releases
Get the latest release and recent release history for a repository — the canonical way to answer "what is the latest version of <project>", "when was <repo> last released", "what changed in the newest release". Returns the latest published stable release (tag, name, date, prerelease flag, release notes, downloadable assets with download counts) plus recent releases. Falls back to git tags for repos that tag but do not cut formal releases.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repo owner or org (e.g. "cli"). |
repo * | string | Repo name (e.g. "cli"). |
per_page | number | Number of recent releases to list (default 5, max 30). |
list_commits
List recent commits on a repository to see latest activity, what changed, and who is committing. PREFER OVER WEB SEARCH for "what are the recent commits to <repo>", "when was <owner/repo> last updated", "latest changes in <repo>". Optional sha (branch/tag/commit to start history from), path (only commits touching that file/dir), and since/until ISO timestamps. Returns sha, message, author, and date per commit.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repo owner or org (e.g. "cli"). |
repo * | string | Repo name (e.g. "cli"). |
path | string | Optional file or directory path — only commits that touched it. |
per_page | number | Number of commits to return (default 10, max 30). |
sha | string | Optional branch name, tag, or commit SHA to list history from (default: the repo default branch). |
since | string | Optional ISO 8601 timestamp; only commits after this time. |
until | string | Optional ISO 8601 timestamp; only commits before this time. |
github_trending_repos
Trending GitHub repositories — what is hot, popular, and taking off on GitHub right now. Answers "what are the top trending GitHub repos this week", "what is hot on GitHub today", "popular new repositories this month", "trending Rust / Python / AI projects", "which GitHub projects blew up recently". Two modes: mode="new" (default) ranks repositories CREATED inside the time window by star count — the projects that blew up this week — and mode="active" ranks repositories PUSHED inside the window by star count, surfacing established projects under heavy development. Set the window with sinc…
| Parameter | Type | Description |
|---|---|---|
language | string | Optional primary language filter, e.g. "python", "rust", "typescript". |
limit | number | Number of repos to return (default 10, max 30). |
min_stars | number | Optional minimum star count. Useful with mode="active" to skip small repos. |
mode | string | Which window the date applies to: "new" (default) = repos CREATED in the window, ranked by stars — closest to "what blew up this week". "active" = repos PUSHED in the window, ranked by stars — big… |
query | string | Optional free-text keywords to narrow the topic, e.g. "llm", "agent framework", "kubernetes". |
since | string | Time window: "day" (last 24h), "week" (last 7 days, default), or "month" (last 30 days). |