GitHub Repository Health MCP
This MCP server provides read-only GitHub repository health insights using live GitHub API data.
Fetch repository metadata: stars, forks, language, branch, and issue count.
List open issues, excluding pull requests, with an optional limit.
Retrieve recent commits with authors and dates.
Get recent GitHub Actions workflow runs and their conclusions.
Expose live health snapshot and open issues resources.
Provide prompts for daily health reports and triaging open issues.
Provides tools for retrieving GitHub repository metadata, open issues, and recent commits to assess repository health.
Provides tools for retrieving recent GitHub Actions workflow runs, including their statuses and conclusions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub Repository Health MCP How healthy is the modelcontextprotocol/python-sdk repo right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub Repository Health MCP
A real-time GitHub repository health assistant built with the Model Context Protocol, LangChain 1.x, and Groq.
The agent can summarize repository activity, open issues, recent commits, and GitHub Actions workflow health using live GitHub API data.
Project Structure
MCP-Project1/
├── src/
│ └── github_repo_health/
│ ├── __init__.py # Package metadata
│ ├── config.py # Environment-backed settings
│ ├── github_api.py # GitHub REST client and data shaping
│ ├── mcp_server.py # MCP tools, resources, and prompts
│ └── agent.py # LangChain + Groq application client
├── tests/
│ └── test_github_api.py # Fast unit tests for API helpers
├── .env.example # Configuration template
├── pyproject.toml # Dependencies and console entry points
├── uv.lock # Reproducible dependency lockfile
└── README.mdThe separation keeps responsibilities small:
github_api.pyknows how to call GitHub.mcp_server.pyexposes GitHub capabilities through MCP.agent.pydecides whether to use MCP or call Groq directly.tests/verifies pure helper behavior without network calls.
Related MCP server: GitHub Health Monitor MCP
MCP Capabilities
Tools
Tool | Purpose |
| Repository metadata, stars, forks, language, branch, and issue count. |
| Current open issues, excluding pull requests. |
| Recent commit messages, authors, dates, and links. |
| Recent GitHub Actions statuses and conclusions. |
Resources
Resource | Purpose |
| Live health snapshot combining repository metadata, issues, and workflows. |
| Current open issues as JSON. |
Prompts
Prompt | Purpose |
| Produces a repository health report with risks and recommended actions. |
| Groups and prioritizes current open issues. |
The first version is read-only. It does not create, modify, close, or label GitHub issues.
Setup
Install dependencies:
uv syncCreate local configuration:
Copy-Item .env.example .envSet these values in .env:
GROQ_API_KEY=your-groq-api-key
GROQ_MODEL=openai/gpt-oss-120b
GITHUB_OWNER=chetangpande-ai
GITHUB_REPO=GitHubReposHealth-MCP
GITHUB_TOKEN=your-github-tokenGITHUB_TOKEN is optional for public repositories but recommended for a higher GitHub API rate limit. Never commit .env.
Run The Agent
The installed console command starts the LangChain agent:
uv run github-health-agent "Is this repository healthy?"
uv run github-health-agent "What are the most important open issues?"
uv run github-health-agent "Did the latest workflow pass?"
uv run github-health-agent "Prepare a release-readiness report."You can also run it as a module:
uv run python -m github_repo_health.agent "Summarize recent activity."To run only the MCP server for an MCP host such as Claude Desktop:
uv run github-health-mcpThe MCP server is normally started automatically by the LangChain client over stdio.
The current repository target is configured through GITHUB_OWNER and GITHUB_REPO; change those values to analyze a different repository without changing the code.
Agent Flow
For a repository question:
agent.pyidentifies the request as GitHub-related.It starts
github_repo_health.mcp_serverover stdio.The MCP adapter discovers tools and reads the health resource.
The client loads
daily_health_reportortriage_open_issues.Groq decides which live GitHub tools to call.
github_api.pycalls GitHub and returns shaped data.Groq summarizes the results into the final answer.
For unrelated questions, the agent calls Groq directly without starting the MCP server.
Logs
Logs go to stderr and the final answer goes to stdout. GitHub requests show entries such as:
Starting MCP server: github_repo_health.mcp_server
Invoking MCP server: list tools
Invoking MCP server: read resource github://repository/owner/repo/health
Invoking MCP server: get prompt daily_health_report
Invoking LLM: Groq model=openai/gpt-oss-120b
Invoking MCP tool: get_workflow_runs input=...
MCP tool returned: get_workflow_runs
LLM response receivedDirect questions show Invoking LLM directly instead.
Tests
Run the fast local tests:
uv run python -m unittest discover -s tests -vThe tests do not call GitHub or Groq, so they are safe to run without API keys.
Available Tools
4 toolsget_open_issuesA
Get open issues, excluding pull requests, for a GitHub repository.
Inputs: repo (required), owner (required), limit. Returns: result
get_recent_commitsA
Get recent commits and their authors for a GitHub repository.
Inputs: repo (required), owner (required), limit. Returns: result
get_repository_infoC
Get current metadata and activity counters for a GitHub repository.
Inputs: repo (required), owner (required). Returns: result
get_workflow_runsB
Get recent GitHub Actions workflow runs and their conclusions.
Inputs: repo (required), owner (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct aspect of repository health: metadata, issues, commits, and workflow runs. There is no overlap or ambiguity between them.
All four tools follow a consistent get_<resource>_<detail> pattern with snake_case naming. The naming is predictable and easy to extend.
Four tools is well-scoped for a read-only repository health MCP. Each tool covers a meaningful health signal without unnecessary redundancy.
The core health indicators—repo stats, issues, commits, and CI status—are covered. Pull request activity and contributor trends are notable omissions, but the current surface is sufficient for basic health assessments.
Maintenance
Related MCP Connectors
Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and security.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
GitHub repo search, stats, language breakdown and comparison as agent tools.
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Large Language Models to analyze GitHub repositories in real-time, providing tools for retrieving repository information, analyzing issues, accessing documentation, and visualizing activity.-
- AlicenseCqualityDmaintenanceMonitors and analyzes GitHub repository health by detecting stale branches, old pull requests, unresponsive issues, and security alerts. Integrates with MCP-compatible AI assistants and automation tools.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to analyze GitHub repositories with tools for health scoring, contributor analysis, issue tracking, code search, and more.MIT
- FlicenseCqualityDmaintenanceExposes GitHub repository data via MCP tools, a resource, and a prompt, enabling repo summaries, issue/PR listing, keyword search, and repo health review.4-