github-mcp-server

Kishor129129/github-mcp-server

3.3

If you are the rightful owner of github-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The GitHub MCP Server is a Model Context Protocol server designed to integrate with GitHub for efficient issue triage and pull request summarization.

Tools
5
Resources
0
Prompts
0

GitHub MCP Server — Issue Triage + PR Summarizer

Model Context Protocol (MCP) server that connects to GitHub for lightweight triage and review support. It exposes tools to list repositories, search issues/PRs, label and close issues, and generate PR summaries using Gemini.

Why this is resume‑ready:

  • Shows practical LLM tooling with real developer workflow impact (GitHub + MCP)
  • Demonstrates API integration, prompt design, and safe automation
  • Works in Claude Desktop and MCP Inspector; easy to demo live

Features

  • list_repos: list repositories for the authenticated user (first page)
  • search_issues: GitHub search (issues and PRs) via q query
  • label_issue: add one or more labels to an issue
  • close_issue: close an issue by number
  • summarize_pr: summarize a PR (intent, risks, breaking changes, test plan) using Gemini

Requirements

  • Node.js 18+
  • GitHub Personal Access Token (fine‑grained or classic)
    • Scopes/permissions: Metadata: Read, Contents: Read, Issues: Read & Write, Pull requests: Read
  • Gemini API key (Google AI Studio)
  • Windows (tested) — works on macOS/Linux as well

Install

npm install
npm run build

Create a .env file:

GITHUB_TOKEN=your_github_pat
GEMINI_API_KEY=your_gemini_key
# Optional, defaults to gemini-2.0-flash
GEMINI_MODEL=gemini-2.0-flash

Run with MCP Inspector (optional)

npx @modelcontextprotocol/inspector
# In UI: STDIO → Command: node → Args: D:/Project_2/github-mcp-server/dist/index.js

Use with Claude Desktop

Add to %APPDATA%/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "github-triage-mcp": {
      "command": "node",
      "args": ["D:/Project_2/github-mcp-server/dist/index.js"],
      "transport": "stdio",
      "env": {
        "GITHUB_TOKEN": "YOUR_PAT",
        "GEMINI_API_KEY": "YOUR_GEMINI_KEY",
        "GEMINI_MODEL": "gemini-2.0-flash"
      }
    }
  }
}

Restart Claude Desktop and enable github-triage-mcp in the side panel.

Screenshots:

Claude: MCP server enabled

Claude: tool list

Inspector/Claude: list_repos result

Inspector/Claude: summarize_pr output

GitHub: issue labeled/closed

Example tool calls (Inspector or Claude)

// search_issues
{ "q": "repo:Kishor129129/datawise_ai is:issue is:open", "perPage": 10 }

// label_issue
{ "owner": "Kishor129129", "repo": "datawise_ai", "number": 123, "labels": ["triage"] }

// close_issue
{ "owner": "Kishor129129", "repo": "datawise_ai", "number": 124 }

// summarize_pr
{ "owner": "Kishor129129", "repo": "datawise_ai", "number": 1 }

Security

  • Do NOT commit .env or tokens.
  • Fine‑grained PAT recommended. Remove or rotate tokens after demos.

License

MIT