Skip to main content
Glama
01Aniket

github-repository-analyzer

by 01Aniket

GitHub Repository Analyzer

An LLM-powered GitHub repository analysis tool that allows users to provide a GitHub repository URL and ask natural-language questions about the repository.

The application retrieves repository information and source code through GitHub APIs exposed as MCP tools, then uses a local LLM to generate answers grounded in the retrieved repository evidence.


Features

  • Analyze different GitHub repositories from the terminal

  • Accept the repository URL separately from the question

  • Ask questions in natural language

  • Ask high-level repository questions

  • Ask implementation questions about functions and code

  • Search repository source code

  • Read specific repository files or line ranges

  • Retrieve repository metadata

  • Retrieve repository file structure

  • Use MCP to expose repository operations as tools

  • Use LangGraph to manage the analysis workflow

  • Use a local LLM through Ollama

  • Ground implementation answers in retrieved repository source code

  • Retry temporary GitHub API failures


Related MCP server: AI Project Explorer

Architecture

                    User
                     |
                     v
                 main.py
                     |
                     v
                LangGraph
                 graph.py
                     |
                     v
                 MCP Client
               mcp_client.py
                     |
                     v
                 MCP Server
               mcp_server.py
                     |
                     v
             repository_tools.py
                     |
                     v
              github_client.py
                     |
                     v
              GitHub REST API
                     |
                     v
          Repository Information
          and Source Code
                     |
                     v
                    LLM
                     |
                     v
                Final Answer

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables analysis of any GitHub repository to get architecture, file roles, execution flows, system design Q\&A, and structured agent context. Works with MCP-compatible clients like Claude Desktop, Cursor, and Windsurf.
    6
    23 npm
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables AI assistants to discover and interact with GitHub repositories through standardized MCP tools, allowing exploration and retrieval of project information without direct API calls.
    -
  • F
    license
    C
    quality
    C
    maintenance
    Exposes GitHub repository data via MCP tools, a resource, and a prompt, enabling repo summaries, issue/PR listing, keyword search, and repo health review.
    4
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to interact with GitHub via MCP, managing repositories, issues, PRs, and analyzing repository health through tools like list_repositories, read_issues, create_issue, comment_on_pr, and analyze_repo_health.
    -