GitHub (Unofficial)

v0.2.2
io.github.pipeworx-io/github Checked 17 hours ago Published 15 days ago

Unofficial 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.

ParameterTypeDescription
query *stringSearch query string (e.g., "react hooks", "cli tool language:go")
per_pagenumberNumber of results to return (default 10, max 30)
sortstringSort 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).

ParameterTypeDescription
repo *stringRepository name, e.g. "react". Also accepts the full slug "facebook/react".
ownerstringRepository 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.

ParameterTypeDescription
owner *stringRepository owner (user or org)
repo *stringRepository name
per_pagenumberNumber of issues to return (default 10, max 30)
statestringFilter 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").

ParameterTypeDescription
username *stringGitHub 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}.

ParameterTypeDescription
owner *stringRepo owner or org (e.g. "cli").
repo *stringRepo name (e.g. "cli").
pathstringFile or directory path (e.g. "README.md", "src/index.ts"). Omit or "" for the repo root.
refstringOptional 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.

ParameterTypeDescription
query *stringCode search query, e.g. "NewCmdRoot repo:cli/cli", "createRoot language:typescript", "addEventListener org:facebook".
per_pagenumberNumber 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.

ParameterTypeDescription
owner *stringRepo owner or org (e.g. "cli").
repo *stringRepo name (e.g. "cli").
per_pagenumberNumber 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.

ParameterTypeDescription
owner *stringRepo owner or org (e.g. "cli").
repo *stringRepo name (e.g. "cli").
pathstringOptional file or directory path — only commits that touched it.
per_pagenumberNumber of commits to return (default 10, max 30).
shastringOptional branch name, tag, or commit SHA to list history from (default: the repo default branch).
sincestringOptional ISO 8601 timestamp; only commits after this time.
untilstringOptional ISO 8601 timestamp; only commits before this time.