github-repo-scout-mcp

v0.3.2
github-repo-scout-mcp Checked 15 hours ago Published 1 month ago

Read-only MCP server for discovering and evaluating GitHub repositories: multi-topic search, repo health scores, comparisons, dependency vulnerability audits…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_repositories Search repositories

Search public GitHub repositories (GET /search/repositories) by any combination of keywords, topics, language, stars, activity dates and license. Matching: 'query' keywords match the repo name, description and topics (not the README unless you add in:readme). 'topics' is stricter: each listed topic must be an exact tag on the repo, and all of them must be present (AND). If you are unsure of exact topic names, call search_topics first. Archived repos are excluded unless include_archived is true; forks are excluded by GitHub by default. Each result includes: full_name (owner/repo), stars, forks,…

ParameterTypeDescription
created_afterstringOnly repos created on or after this date (YYYY-MM-DD)
include_archivedbooleanInclude archived (read-only) repositories
languagestringPrimary language, e.g. 'Java', 'TypeScript', 'Go'
licensestringLicense key, e.g. 'mit', 'apache-2.0', 'gpl-3.0'
limitintegerNumber of results to return (1-100, default 10)
min_starsintegerMinimum star count
offsetintegerNumber of results to skip, for paging (default 0)
orderstring
pushed_afterstringOnly repos with a push on or after this date (YYYY-MM-DD). Good proxy for 'still maintained'.
querystringKeywords matched against name, description and topics. You can also append raw GitHub qualifiers: in:name | in:description | in:topics | in:readme (where keywords must appear), user:NAME or org:NAME (…
sortstringSort order. Defaults to 'stars' when no free-text query is given, otherwise 'best-match'.
topicsarrayRepos must have ALL of these topics, e.g. ['java','spring-boot']

search_topics Search topics

Find the exact GitHub topic names for a concept, e.g. 'banking' -> fintech, core-banking, payments. Use the returned names in search_repositories. Featured topics are highlighted by GitHub; curated topics have extra descriptions.

ParameterTypeDescription
query *stringConcept or keyword, e.g. 'banking', 'state management', 'kubernetes operator'
curated_onlybooleanOnly curated topics
featured_onlybooleanOnly topics GitHub features
limitintegerNumber of results to return (1-100, default 20)
offsetintegerNumber of results to skip, for paging (default 0)

search_issues_and_prs Search issues and pull requests

Search issues or pull requests across all public repositories, or within one repo. Useful for finding how others hit and solved a problem (e.g. an error message), or for good-first-issue hunting.

ParameterTypeDescription
labelsarrayMust have ALL of these labels, e.g. ['good first issue']
languagestringRepository language, e.g. 'Python'
limitintegerNumber of results to return (1-100, default 10)
offsetintegerNumber of results to skip, for paging (default 0)
orderstring
querystringKeywords, e.g. an error message. Raw qualifiers like 'author:x' also work.
repostringLimit to one repository: 'owner/repo'
sortstring
statestring
typestringSearch issues or pull requests

search_code Search code

Search source code in public repositories (GitHub requires a token for this endpoint, so it only works when GITHUB_TOKEN or GITHUB_PAT is set). Returns matching files with a short snippet.

ParameterTypeDescription
query *stringCode or text to find, e.g. 'useSyncExternalStore'
extensionstringFile extension without dot, e.g. 'yml'
filenamestringExact file name, e.g. 'pom.xml'
languagestringe.g. 'TypeScript'
limitintegerNumber of results to return (1-100, default 10)
offsetintegerNumber of results to skip, for paging (default 0)
ownerstringLimit to a user or organization
pathstringLimit to files under this path, e.g. 'src/'
repostringLimit to one repository: 'owner/repo'

get_repository Get repository

Details for one repository: stars, forks, language breakdown, license, topics, activity dates, latest release and the start of the README.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'
include_readmebooleanInclude the README text
readme_max_charsintegerMaximum README characters to return

get_repo_tree Get repository file tree

The folder and file structure of a repository, as an indented tree. Use path to focus on a subfolder and max_depth to control detail.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'
max_depthintegerHow many folder levels to show below path (default 3)
max_entriesintegerMaximum lines to return (default 300)
pathstringOnly show this subfolder, e.g. 'src/main/java'
refstringBranch, tag or commit SHA (default: the default branch)

get_file_contents Get file contents

Read one file from a repository (e.g. 'pom.xml', 'package.json', 'src/main.go'). If the path is a folder, lists its contents instead.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
path *stringFile or folder path, e.g. 'package.json'
repo *stringRepository name, e.g. 'spring-boot'
max_charsintegerMaximum characters to return (default 20,000)
refstringBranch, tag or commit SHA (default: the default branch)

list_issues List issues

List issues in a repository (pull requests are excluded). Filter by state and labels.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'
directionstring
labelsarrayMust have ALL of these labels
limitintegerNumber of results to return (1-100, default 20)
offsetintegerNumber of results to skip, for paging (default 0)
sortstring
statestring

list_pull_requests List pull requests

List pull requests in a repository. Filter by state and target branch.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'
basestringOnly PRs targeting this branch, e.g. 'main'
directionstring
limitintegerNumber of results to return (1-100, default 20)
offsetintegerNumber of results to skip, for paging (default 0)
sortstring
statestring

get_pull_request Get pull request

Details for one pull request: status, branches, size, description and the list of changed files.

ParameterTypeDescription
number *integerPull request number
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'
body_max_charsintegerMaximum description characters
include_filesbooleanList changed files (up to 100)

get_repo_health Get repository health

Score (0-100) for whether a repository is alive and well maintained, with a transparent breakdown: recent pushes, commits in the last 90 days, releases, contributor count and concentration (bus factor), and community files (license, CONTRIBUTING, templates). Uses about 5 API requests.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'

compare_repositories Compare repositories

Compare 2-5 repositories side by side: stars, forks, language, license, activity and topics. Set include_health to add health scores (about 5 extra API requests per repo).

ParameterTypeDescription
repos *arrayRepositories as 'owner/repo' or github.com URLs
include_healthbooleanAlso compute health scores (costs about 5 requests per repo)

find_similar_repositories Find similar repositories

Find repositories similar to a given one, using its topics (and optionally its language). Results are ranked by how many topics they share, then by stars. Each result has the same fields as search_repositories (stars, forks, open issues + PRs, language, license, last push, flags, description, topics, URL) plus the list of shared topics. Uses up to 3 searches.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'
limitintegerNumber of results (default 10)
min_starsintegerMinimum stars for results (default 10)
same_languagebooleanOnly return repos in the same primary language

security_advisories Security advisories for a package

Known vulnerabilities (CVEs) and malware reports for one package from the GitHub Advisory Database: severity, affected and fixed versions, and EPSS exploit likelihood. Pass version to see only advisories that affect it. Part of the security toolkit: for a repository, also use security_audit_dependencies and security_supply_chain_risk. Uses 2 API requests.

ParameterTypeDescription
ecosystem *stringPackage ecosystem: npm, pip (Python), maven (Java), go, rust (crates.io), composer (PHP), rubygems, nuget, pub, erlang, swift or actions
package *stringPackage name as published: 'lodash', '@babel/core', 'Django', 'golang.org/x/net', 'org.apache.logging.log4j:log4j-core' (Maven groupId:artifactId)
limitintegerMaximum advisories to list (default 20)
min_severitystringOnly show advisories at or above this severity
versionstringExact version to check, e.g. '4.17.15'. Without it, every advisory ever published is listed.

security_audit_dependencies Audit a repository's dependencies

Checks every dependency a repository declares against the GitHub Advisory Database for known vulnerabilities and malware, without cloning it. Finds manifests at the repository root automatically (package.json, requirements.txt, pyproject.toml, go.mod, Cargo.toml, pom.xml, composer.json), or pass path. Part of the security toolkit: also call security_supply_chain_risk for how the project is run, and security_advisories for details on one package. Uses about 2 API requests per manifest plus 2 per ecosystem.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'
include_devbooleanAlso check dev, test and optional dependencies (default true)
pathstringPath to one manifest, e.g. 'backend/requirements.txt' (default: every supported manifest at the root)
refstringBranch, tag or commit SHA (default: the default branch)

security_supply_chain_risk Supply chain risk of a repository

Is this project safe to depend on? Checks the warning signs behind real supply chain attacks (xz-utils, event-stream): bus factor, a newcomer suddenly taking over, dormant-then-burst releases, branch protection, commit and release signing, security policy, private vulnerability reporting, Dependabot or Renovate, published advisories, and the OpenSSF Scorecard result. Part of the security toolkit: also call security_audit_dependencies for known vulnerabilities in its dependencies. Uses about 12 GitHub API requests, plus one call to the public OpenSSF Scorecard API with the repository name.

ParameterTypeDescription
owner *stringRepository owner (user or organization), e.g. 'spring-projects'
repo *stringRepository name, e.g. 'spring-boot'