Skip to main content
Glama

mcp-github-insights

An MCP server that exposes GitHub repository insights as tools for AI assistants — repo health, commit activity, stale PRs, contributor stats, releases, and issue backlogs.

Point any MCP client (Claude Desktop, Cursor, VS Code, Claude Code) at it and ask things like:

  • "Give me an overview of sagar1708/mcp-github-insights"

  • "Which PRs have been stale for more than 2 weeks?"

  • "Who are the top contributors in the last 90 days?"

Tools

Tool

What it does

repo_overview

Stars, forks, license, topics, languages, last push

commit_activity

Commits per week, top authors, latest commit (default 30d)

stale_pull_requests

Open PRs older than N days, oldest first (default 14d)

contributor_stats

Top contributors by commit count (default 90d)

recent_releases

Latest releases, newest first

issue_backlog

Open issues grouped by label + oldest issues

Related MCP server: GitHub Analytics MCP

Quickstart

pip install -e .

Set a token for higher rate limits (optional — works without one at 60 req/hr):

export GITHUB_TOKEN=ghp_...

Run the server (stdio transport):

github-insights-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "github-insights": {
      "command": "github-insights-mcp",
      "env": { "GITHUB_TOKEN": "ghp_..." }
    }
  }
}

Cursor / VS Code

Same shape in your MCP settings:

{
  "mcpServers": {
    "github-insights": {
      "command": "github-insights-mcp",
      "env": { "GITHUB_TOKEN": "ghp_..." }
    }
  }
}

Development

pip install -e ".[test]"
pytest

Roadmap

  • PR review turnaround stats (median time to merge)

  • Code churn / hot files from commit patches

  • Team dashboards via scheduled digests

License

MIT

Available Tools

6 tools
commit_activityB

Commit activity for a repo over the last N days.

Returns total commits, commits bucketed per ISO week, top authors, and the latest commit.

Inputs: repo (required), owner (required), days. Returns: object

contributor_statsC

Top contributors by commit count over the last N days.

Inputs: repo (required), owner (required), days, top_n. Returns: object

issue_backlogC

Open issue backlog grouped by label, with the oldest issues surfaced.

Inputs: repo (required), owner (required). Returns: object

recent_releasesC

Most recent releases for a repo, newest first.

Inputs: repo (required), owner (required), limit. Returns: object

repo_overviewB

High-level overview of a GitHub repository.

Returns stars, forks, open issue count, license, topics, language breakdown, and how long ago it was last pushed to.

Inputs: repo (required), owner (required). Returns: object

stale_pull_requestsB

Open pull requests that have been waiting longer than N days.

Useful for spotting review bottlenecks. Sorted oldest first.

Inputs: repo (required), owner (required), days. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool targets a distinct analytical view (overview, commits, PRs, contributors, releases, issues). Minor overlap exists: commit_activity reports top authors while contributor_stats ranks contributors, and repo_overview includes issue counts while issue_backlog details issues, but descriptions clarify boundaries.

    Naming Consistency5/5

    All tools use consistent snake_case noun phrases with descriptive, predictable names. No mixing of conventions or vague verbs.

    Tool Count5/5

    6 tools is well-scoped for a read-only analytics server; each covers a distinct facet of repository insights without redundancy.

    Completeness4/5

    Covers core repository, commit, PR, contributor, release, and issue insights. Missing more general PR activity/review metrics and issue activity trends, but the surface is sufficient for common insight queries.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying and analysis of public GitHub repositories for statistics, contributor data, and commit history. It provides both a RESTful API and an MCP interface for seamless integration with AI agents.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      AI-powered GitHub repository analytics through MCP. Analyze repositories, track contributions, and get insights directly in your AI assistant.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to query GitHub repositories, issues, pull requests, CI status, and discover trending repos via natural language. Provides MCP tools, resources, and prompts for GitHub data access.
      14
      MIT
    • F
      license
      C
      quality
      D
      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
      -