# github-analysis

> MCP Server

This repository provides a tool for analyzing GitHub repositories using the Model Context Protocol and AI-powered insights from Ollama. It offers features like repository information analysis, commit history analysis, and

## Overview

- **Category:** Developer Tools
- **Language:** Python
- **Stars:** 1
- **Forks:** 0
- **Owner:** frangkli
- **GitHub:** https://github.com/frangkli/github-analysis
- **Created:** 2025-03-15T00:01:31+00:00
- **Updated:** 2025-03-26T06:11:07+00:00
- **Source:** https://model-context-protocol.com/servers/github-repository-analysis-ai-powered-insights

## Setup

## Setup

To get started with the GitHub Repository Analysis Tool, follow these steps:

1. **Clone the Repository**:
   ```bash
   git clone https://github.com/frangkli/github-analysis.git
   cd github-analysis
   ```

2. **Set Up Environment and Dependencies**:
   ```bash
   uv sync
   ```

3. **Activate Virtual Environment**:
   ```bash
   source .venv/bin/activate
   ```

4. **Install Ollama**: Ensure you have [Ollama](https://ollama.ai) installed with the `qwen2.5:7b` model for AI-powered insights.

5. **Set Up GitHub Personal Access Token**: For higher API rate limits, create a GitHub personal access token and set it as an environment variable:
   ```bash
   export GITHUB_TOKEN=your_token_here  # On Windows use `set GITHUB_TOKEN=your_token_here`
   ```

## Tools

## Available Tools

1. Repository Information Analysis (Fetch detailed information about GitHub repositories.)
2. Commit History Analysis (Analyze commit histories to identify patterns and insights.)
3. AI-Powered Insights (Utilize Ollama to generate intelligent responses and analyses based on repository data.)
4. Beautiful Command-Line Interface (Enjoy a user-friendly CLI for seamless interaction.)
5. MCP-Based Client-Server Architecture (Leverage a modular architecture for efficient data fetching and analysis.)
