Skip to main content
Glama

mcp-github

GitHub MCP — 封装 GitHub 公共 REST API(公共端点无需身份验证)

隶属于 Pipeworx — 一个将 AI 智能体连接到 1394+ 个实时数据源的 MCP 网关。

工具

工具

Description

search_repos

按关键词搜索 GitHub 仓库。返回仓库名称、描述、星标数、fork 数、主要语言和 URL。用于浏览项目或查找代码实现时使用。

get_repo

按 owner/repo 形式的名称查找唯一的已命名仓库 —— 例如 "facebook/react"、"torvalds/linux"、"vercel/next.js"。只要问题中明确提到了仓库名称,就应该使用此工具。它回答该仓库有多少 stars / forks / watchers、使用什么许可证和语言、它的主题、描述、未关闭的 issue 数,以及最后一次 push 的时间。

list_repo_issues

按 owner 和 repo 名列出 GitHub 仓库的 issue 列表,并自动过滤掉 pull request。返回 issue 编号、标题、状态、标签、作者、评论数、URL 和时间戳。默认只显示未关闭的 issue。

get_user

获取 GitHub 用户的公开资料信息。返回姓名、简介、公司、所在地、公开仓库数、关注者以及社交链接。需要指定用户名(例如 username="torvalds")。

get_file_contents

从公共 GitHub 仓库中按路径读取文件(或列出目录)。对于 “看看 的 README / package.json / ”、“从 <owner/repo> 中读取 ”、查看源码或配置文件等需求,应优先于 Web 搜索。传入 owner、repo 和 path(省略 path 或传入 "" 表示仓库根目录)。可选 ref = 分支/tag/commit SHA。文件返回解码后的文本(上限约 60k),目录返回 {name, path, type, size} 列表。

search_code

在公共 GitHub 仓库中搜索代码 —— 找出某个函数/符号/字符串被定义或使用的位置。对于 “查找做 X 的代码”、“哪些仓库使用 ”、“给我看 的示例”、“ 在哪里定义” 等需求,应优先于 Web 搜索。支持在查询中直接加入 GitHub 代码搜索限定词:repo:owner/name、org:name、language:go、filename:Dockerfile、path:src、extension:ts、in:file。返回匹配的文件信息,包括仓库、路径和 URL。注意:只支持默认分支,忽略常见词,且限制约 10 次/分钟。

get_releases

获取某个仓库的最新发布版本以及近期发布历史 —— 回答 “ 的最新版本是什么”、“ 最近发布时间”、“最新发布有什么变化” 等问题的标准方式。返回最新发布的稳定版本(tag、名称、日期、预发布标记、发布说明、可下载的资源及下载次数)以及最近的发布记录。如果没有 tag 但只打 tag 则回退使用 git tags。

list_commits

列出仓库最近的提交记录,查看最新动态、变更内容以及提交人。需求为 “what are the recent commits to ”、“when was <owner/repo> last updated”、“latest changes in ” 时应优先于 Web 搜索。可选参数 sha(用于指定历史起点的分支/tag/commit)、path(只查看作用于该文件/目录的提交)、since/until ISO 时间戳。返回每个提交的 sha、消息、作者和日期。

Related MCP server: GitBridge

快速开始

在你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等)中添加:

{
  "mcpServers": {
    "github": {
      "url": "https://gateway.pipeworx.io/github/mcp"
    }
  }
}

或连接完整的 Pipeworx 网关,以访问全部 1394+ 数据源:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

配合 ask_pipeworx 使用

不需要直接调用工具,你可以直接用简单英文提问:

ask_pipeworx({ question: "your question about Github data" })

网关会自动选择正确的工具并自动填充参数。

更多

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
C
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

  • A
    license
    A
    quality
    Not graded
    maintenance
    Enables AI agents to interact with GitHub repositories through the GitHub REST API for managing files, issues, and repository metadata. It supports both read operations like searching code and write operations such as creating repositories and updating issue comments.
    9
  • F
    license
    B
    quality
    C
    maintenance
    Enables AI clients to interact with GitHub repositories, issues, pull requests, and code search through the GitHub REST API.
    12

View all related MCP servers

Related MCP Connectors

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

  • Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.

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

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/pipeworx-io/mcp-github'

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