Back to MCP Directory
GitHub Repo
Model Context Protocol low risk

GitHub Repo

This MCP server allows AI assistants to browse public GitHub repositories, explore directories, and view file contents, enhancing code understanding and analysis.

Connections & Capabilities

Connects To

GitHub

Capabilities

read

Quickstart

Install

npx github-repo-mcp

Config

{
  "mcpServers": {
    "github-repo-mcp": {
      "command": "wsl",
      "args": [
        "bash",
        "-c",
        "cmd /c npx -y github-repo-mcp"
      ],
      "enabled": true
    }
  }
}

Exposed MCP Tools (3)

safe
getRepoAllDirectories

Lists all files and directories at the root of a specified GitHub repository.

Read-only operation, no modification of data.

safe
getRepoDirectories

Lists the contents of a specific directory within a GitHub repository.

Read-only operation, no modification of data.

safe
getRepoFile

Retrieves and displays the content of a specific file from a GitHub repository.

Read-only operation, no modification of data.

Safety Assessment

This MCP server is relatively safe due to its read-only nature and reliance on GitHub's infrastructure. Risks are primarily related to the exposure of information within public repositories and potential rate limiting issues. Using a GitHub token mitigates rate limiting.

  • Read-only access to public GitHub repositories.
  • No write or delete operations are supported.
  • Relies on GitHub's API for data retrieval, leveraging their security measures.
  • No local filesystem access or execution capabilities.
  • Potential for information leakage if sensitive data is exposed in public repositories.
  • Rate limiting by GitHub API can impact usability without authentication.
  • Dependence on external GitHub API availability and security.
  • No built-in input validation beyond what GitHub's API provides.