Skip to main content
Glama
rog0x

mcp-github-tools

by rog0x

mcp-github-tools

一个基于 MCP(模型上下文协议)的服务器,为 AI 智能体提供 GitHub 分析与项目管理工具。分析仓库、总结拉取请求、分类处理 issue、生成发布说明,并追踪贡献者活动——全部通过标准化的工具接口完成。

工具

github_repo_analyzer

分析一个 GitHub 仓库,获得包括星标数、Fork 数、未关闭的 issue、语言构成、主要贡献者以及每周提交活动趋势在内的全面概览。

github_pr_summarizer

总结一个拉取请求,包含差异统计、按类别划分的文件变更、审查状态(已批准、请求更改、待审查者)以及近期评论摘录。

github_issue_triage

分析仓库中未关闭的 issue。根据标签和关键词(bug、feature、docs、security 等)自动对 issue 进行分类,基于参与度和存在时长建议优先级,通过文本相似度识别可能重复的 issue,并标记停滞的 issue。

github_release_notes

根据两个引用(标签、分支或 SHA)之间的提交生成发布说明。使用约定式提交(Conventional Commits)模式对提交进行分类,并同时生成 Markdown 和结构化 JSON 输出。

github_contributor_stats

在可配置的时间窗口内获取贡献者统计:提交、已开启/已合并的 PR、代码审查,以及识别首次贡献者。

Related MCP server: GitHub MCP Server

要求

  • Node.js 18 或更高版本

  • 无需身份验证即可访问公共仓库

  • 可选的 GitHub 个人访问令牌,可获得更高的速率限制(5,000 次请求/小时 vs 60 次)

安装

git clone https://github.com/rog0x/mcp-github-tools.git
cd mcp-github-tools
npm install
npm run build

配置

Claude Desktop

将以下内容添加到你的 Claude Desktop 配置文件中:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "github-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-github-tools/dist/index.js"]
    }
  }
}

Claude Code

使用 CLI 添加该服务器:

claude mcp add github-tools node D:/products/mcp-servers/mcp-github-tools/dist/index.js

或者将其添加到你的 .claude/settings.json 中:

{
  "mcpServers": {
    "github-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-github-tools/dist/index.js"]
    }
  }
}

使用示例

连接后,AI 智能体即可自动使用这些工具。以下是一些示例提示词:

  • "分析仓库 facebook/react"

  • "总结 vercel/next.js 中的 PR #1234"

  • "对 microsoft/vscode 中未关闭的 issue 进行分类处理"

  • "生成 rust-lang/rust 从 1.75.0 到 1.76.0 的发布说明"

  • "显示 nodejs/node 过去 30 天的贡献者统计"

GitHub 令牌

所有工具都接受一个可选的 token 参数,用于经过身份验证的请求。没有令牌时,GitHub API 每小时允许 60 次请求。使用令牌后,限制会提高到每小时 5,000 次请求。

你可以在 github.com/settings/tokens 创建个人访问令牌。访问公共仓库不需要特殊权限范围。

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…

  • Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rog0x/mcp-github-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server