Token导航 LogoToken导航

Agent Skill · 研究检索

github-mcp-server(GitHub MCP server 搜索)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

github-mcp-server 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 44,882。

总安装 885周安装 38GitHub Stars 4,425下载 310核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-mcp-server(GitHub MCP server 搜索)
来源仓库:https://github.com/github/gh-aw
仓库路径:skills/github-mcp-server
安装命令:
npx skills add https://github.com/github/gh-aw --skill github-mcp-server
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/github/gh-aw --skill github-mcp-server

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

作为 GitHub 功能的 MCP 协议服务端实现。提供标准化的工具调用接口。github-mcp-server 属于研究检索类 Skill,可作为该场景下的辅助能力补充。支持多种宿主环境无缝集成。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

便于构建统一的 AI 助手能力层。需配合客户端使用,单独无法运行。

来源仓库内路径:skills/github-mcp-server

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/github/gh-aw --skill github-mcp-server;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

github-mcp-server 怎么安装?

在终端执行 npx skills add https://github.com/github/gh-aw --skill github-mcp-server。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

github-mcp-server 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

github-mcp-server 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

github-mcp-server 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

github-mcp-server 用的人多吗?

公开数据是累计安装 885 次,近一周安装 38 次,下载 310 次,GitHub 4,425 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

github-mcp-server 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 来源仓库有 4,425 星,维护活跃度相对可查。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
github-mcp-server

GitHub MCP server 搜索 · 本页

8854,425接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

GitHub MCP Server Documentation

This file contains comprehensive documentation about the GitHub MCP (Model Context Protocol) server, including available tools and configuration options.

Note: This file is automatically generated and updated by the github-mcp-tools-report.md workflow. Manual edits may be overwritten.

Last Updated: [To be filled by workflow]

Overview

The GitHub MCP server provides AI agents with programmatic access to GitHub's API through the Model Context Protocol. It supports two modes of operation:

Local Mode (Docker-based)

  • Runs as a Docker container on the GitHub Actions runner
  • Uses GITHUB_PERSONAL_ACCESS_TOKEN environment variable for authentication
  • Configurable toolsets via GITHUB_TOOLSETS environment variable
  • Supports read-only mode via GITHUB_READ_ONLY environment variable

Remote Mode (Hosted)

  • Connects to hosted GitHub MCP server at https://api.githubcopilot.com/mcp/
  • Uses Bearer token authentication in HTTP headers
  • Supports read-only mode via X-MCP-Readonly header
  • No Docker container required

Configuration

Basic Configuration

Local Mode (Docker):

tools:
  github:
    mode: "local"
    toolsets: [default]  # or [repos, issues, pull_requests]

Remote Mode (Hosted):

tools:
  github:
    mode: "remote"
    toolsets: [default]  # or [repos, issues, pull_requests]

Read-Only Mode

To restrict the GitHub MCP server to read-only operations:

tools:
  github:
    mode: "remote"
    read-only: true
    toolsets: [repos, issues]

Custom Authentication

Use a custom GitHub token instead of the default:

tools:
  github:
    mode: "remote"
    github-token: "${{ secrets.CUSTOM_GITHUB_PAT }}"
    toolsets: [repos, issues]

Available Toolsets

The GitHub MCP server organizes tools into logical toolsets. You can enable specific toolsets, use [default] for the recommended defaults, or use [all] to enable everything.

:::note[Why Use Toolsets?] The allowed: pattern for listing individual GitHub tools is not recommended for new workflows. Individual tool names may change between GitHub MCP server versions, but toolsets provide a stable API. Always use toolsets: instead. See Migration from Allowed to Toolsets for guidance on updating existing workflows.:::

:::tip[Best Practice] Always use toolsets: for GitHub tools. Toolsets provide:

  • Stability: Tool names may change between MCP server versions, but toolsets remain stable
  • Better organization: Clear groupings of related functionality
  • Complete functionality: Get all related tools automatically
  • Reduced verbosity: Cleaner configuration
  • Future-proof: New tools are automatically included as they're added:::

Recommended Default Toolsets

The following toolsets are enabled by default when toolsets: is not specified:

  • context - User and environment context (strongly recommended)
  • repos - Repository management
  • issues - Issue management
  • pull_requests - Pull request operations

Note: The users toolset is not included by default and must be explicitly specified if needed.

All Available Toolsets

ToolsetDescriptionCommon Tools
contextUser and environment contextget_teams, get_team_members
reposRepository managementget_repository, get_file_contents, search_code, list_commits
issuesIssue managementissue_read, list_issues, create_issue, search_issues
pull_requestsPull request operationspull_request_read, list_pull_requests, create_pull_request
actionsGitHub Actions/CI/CDlist_workflows, list_workflow_runs, download_workflow_run_artifact
code_securityCode scanning and securitylist_code_scanning_alerts, get_code_scanning_alert
dependabotDependency managementDependabot alerts and updates
discussionsGitHub Discussionslist_discussions, create_discussion
experimentsExperimental featuresUnstable/preview APIs
gistsGist operationscreate_gist, list_gists
labelsLabel managementget_label, list_labels, create_label
notificationsNotificationslist_notifications, mark_notifications_read
orgsOrganization managementget_organization, list_organizations
projectsGitHub ProjectsProject board operations
secret_protectionSecret scanningSecret detection and management
security_advisoriesSecurity advisoriesAdvisory creation and management
stargazersRepository starsStar-related operations
usersUser profilesget_me, get_user, list_users
searchAdvanced searchSearch across repos, code, users

Available Tools by Toolset

This section maps individual tools to their respective toolsets to help with migration from allowed: to toolsets:.

Context Toolset

  • get_teams - List teams the user belongs to
  • get_team_members - List members of a specific team

Repos Toolset

  • get_repository - Get repository information
  • get_file_contents - Read file contents from repository
  • search_code - Search code across repositories
  • list_commits - List commits in a repository
  • get_commit - Get details of a specific commit
  • get_latest_release - Get the latest release
  • list_releases - List all releases

Issues Toolset

  • issue_read - Read issue details
  • list_issues - List issues in a repository
  • create_issue - Create a new issue
  • update_issue - Update an existing issue
  • search_issues - Search issues across repositories
  • add_reaction - Add reaction to an issue or comment
  • create_issue_comment - Add a comment to an issue

Pull Requests Toolset

  • pull_request_read - Read pull request details
  • list_pull_requests - List pull requests in a repository
  • get_pull_request - Get details of a specific pull request
  • create_pull_request - Create a new pull request
  • search_pull_requests - Search pull requests across repositories

Actions Toolset

  • list_workflows - List GitHub Actions workflows
  • list_workflow_runs - List workflow runs
  • get_workflow_run - Get details of a specific workflow run
  • download_workflow_run_artifact - Download workflow artifacts

Code Security Toolset

  • list_code_scanning_alerts - List code scanning alerts
  • get_code_scanning_alert - Get details of a specific alert
  • create_code_scanning_alert - Create a code scanning alert

Discussions Toolset

  • list_discussions - List discussions in a repository
  • create_discussion - Create a new discussion

Labels Toolset

  • get_label - Get label details
  • list_labels - List labels in a repository
  • create_label - Create a new label

Users Toolset

  • get_me - Get current authenticated user information
  • get_user - Get user profile information
  • list_users - List users

Notifications Toolset

  • list_notifications - List user notifications
  • mark_notifications_read - Mark notifications as read

Organizations Toolset

  • get_organization - Get organization details
  • list_organizations - List organizations

Gists Toolset

  • create_gist - Create a new gist
  • list_gists - List user's gists

Authentication Details

Remote Mode Authentication

The remote mode uses Bearer token authentication:

Headers:

  • Authorization: Bearer <token> - Required for authentication
  • X-MCP-Readonly: true - Optional, enables read-only mode

Token Source:

  • Default: ${{secrets.GH_AW_GITHUB_TOKEN}} or ${{secrets.GITHUB_TOKEN}}
  • Custom: Configure via github-token field

Local Mode Authentication

The local mode uses environment variables:

Environment Variables:

  • GITHUB_PERSONAL_ACCESS_TOKEN - Required for authentication
  • GITHUB_READ_ONLY=1 - Optional, enables read-only mode
  • GITHUB_TOOLSETS=<comma-separated-list> - Optional, specifies enabled toolsets

Best Practices

Toolset Selection

  1. Start with defaults: For most workflows, the recommended default toolsets provide sufficient functionality
  2. Enable specific toolsets: Only enable additional toolsets when you need their specific functionality
  3. Security consideration: Be mindful of write operations - consider using read-only mode when possible
  4. Performance: Using fewer toolsets reduces initialization time and memory usage

Token Permissions

Ensure your GitHub token has appropriate permissions for the toolsets you're enabling:

  • repos toolsets: Requires repository read/write permissions
  • issues toolsets: Requires issues read/write permissions
  • pull_requests toolsets: Requires pull requests read/write permissions
  • actions toolsets: Requires actions read/write permissions
  • discussions toolsets: Requires discussions read/write permissions

Remote vs Local Mode

Use Remote Mode when:

  • You want faster initialization (no Docker container to start)
  • You're running in a GitHub Actions environment with internet access
  • You want to use the latest version without specifying Docker image tags

Use Local Mode when:

  • You need a specific version of the MCP server
  • You want to use custom arguments
  • You're running in an environment without internet access
  • You want to test with a local build of the MCP server

Migration from Allowed to Toolsets

If you have existing workflows using the allowed: pattern, we recommend migrating to toolsets: for better maintainability and stability. Individual tool names may change between MCP server versions, but toolsets provide a stable API that won't break your workflows.

Migration Examples

Using allowed: (not recommended):

tools:
  github:
    allowed:
      - get_repository
      - get_file_contents
      - list_commits
      - list_issues
      - create_issue
      - update_issue

Using toolsets: (recommended):

tools:
  github:
    toolsets: [repos, issues]

Tool-to-Toolset Mapping

Use this table to identify which toolset contains the tools you need:

allowed: ToolsMigrate to toolsets:
get_meusers
get_teams, get_team_memberscontext
get_repository, get_file_contents, search_code, list_commitsrepos
issue_read, list_issues, create_issue, update_issue, search_issuesissues
pull_request_read, list_pull_requests, create_pull_requestpull_requests
list_workflows, list_workflow_runs, get_workflow_runactions
list_code_scanning_alerts, get_code_scanning_alertcode_security
list_discussions, create_discussiondiscussions
get_label, list_labels, create_labellabels
get_user, list_usersusers
Mixed repos/issues/PRs tools[default]
All tools[all]

Quick Migration Steps

  1. Identify tools in use: Review your current allowed: list
  2. Map to toolsets: Use the table above to find corresponding toolsets
  3. Replace configuration: Change allowed: to toolsets:
  4. Test: Run gh aw mcp inspect <workflow> to verify tools are available
  5. Compile: Run gh aw compile to update the lock file

Using Allowed Pattern with Custom MCP Servers

:::note[When to Use Allowed] The allowed: pattern is appropriate for:

  • Custom MCP servers (non-GitHub)
  • Gradual migration of existing workflows
  • Fine-grained restriction of specific tools within a toolset

For GitHub tools, always use toolsets: instead of allowed:.:::

The allowed: field can still be used to restrict tools for custom MCP servers:

mcp-servers:
  notion:
    container: "mcp/notion"
    allowed: ["search_pages", "get_page"]  # Fine for custom MCP servers

For GitHub tools, allowed: can be combined with toolsets: to further restrict access, but this pattern is not recommended for new workflows.

GitHub API Limitations

Not all GitHub data is accessible through the GitHub MCP server or the GitHub REST API. Be aware of these limitations when designing workflows to avoid silent failures or incomplete results at runtime.

Billing and Cost Data

❌ Not available via standard API permissions:

  • Detailed per-run cost data — GitHub Actions does not expose per-workflow-run billing costs through the REST API. There is no endpoint to retrieve the exact cost of a specific workflow run.
  • Actions billing summary — Billing endpoints (e.g., /orgs/{org}/settings/billing/actions) require admin:org scope, which is not granted by actions:read or the default GITHUB_TOKEN.

⚠️ When suggesting billing/cost workflows, always note:

Detailed GitHub Actions billing and cost data is not accessible through the standard GitHub API with actions:read permissions. Workflows that attempt to read per-run cost data or billing summaries will fail silently or return empty results unless an admin:org-scoped personal access token is explicitly configured.

✅ Alternatives for cost reporting:

  1. GitHub Actions usage reports — Download usage reports from the GitHub billing UI (Settings → Billing → Usage) or via the billing CSV export endpoint (requires admin:org scope with a PAT).
  2. Billing settings UI — Direct users to https://github.com/organizations/{org}/settings/billing or https://github.com/settings/billing for personal accounts to view cost data manually.
  3. Workflow run metadata — Use list_workflow_runs and get_workflow_run (available via actions toolset) to get run duration, status, and timing — but not dollar costs.
  4. Third-party cost tracking — Integrate with third-party CI cost tools that use pre-authorized API access.

Cross-Organization Data Access

❌ Not available without explicit authorization:

  • Workflows can only access data from repositories and organizations that the configured GitHub token has been granted access to.
  • Cross-organization repository reads require a PAT or GitHub App token with access to the target org — the default GITHUB_TOKEN is scoped to the current repository's organization only.
  • Organization membership and team data from *other* organizations is not accessible without explicit read:org permissions on those organizations.

Organization Membership and Private Data

❌ Requires additional scopes:

  • Organization member lists — Reading private organization membership requires read:org scope; the default GITHUB_TOKEN only exposes public membership.
  • Private repository contents — Only accessible if the token has explicit repository access.
  • Secret values — GitHub Secrets are write-only through the API; their values cannot be read back after creation.

Rate Limits

⚠️ Be aware of API rate limits:

  • The GitHub REST API enforces rate limits (typically 5,000 requests/hour for authenticated requests with a PAT, lower for GITHUB_TOKEN).
  • Workflows that perform bulk data collection (e.g., listing all workflow runs across many repositories) may hit rate limits. Design workflows to paginate carefully and avoid unnecessary requests.
  • GraphQL API has separate rate limits based on query complexity.

Troubleshooting

Common Issues

Issue: Tool not found or not available

  • Solution: Check if you're using allowed: to restrict tools. Consider using toolsets: instead to get all related tools.
  • Verify: Run gh aw mcp inspect <workflow-name> to see which tools are actually available.

Issue: Missing functionality after specifying toolset

  • Cause: Using a too-narrow toolset that doesn't include all needed tools
  • Solution: Either add additional toolsets (e.g., toolsets: [default, actions]) or use [all] for full access

Issue: Workflow using allowed: list is verbose and hard to maintain

  • Solution: Migrate to toolsets: configuration using the migration guide above

Best Practices for Debugging

  1. Start with [default] toolset: Most workflows work well with default toolsets
  2. Add specific toolsets as needed: Incrementally add toolsets like actions, discussions, etc.
  3. Use gh aw mcp inspect: Verify which tools are actually available
  4. Check tool-to-toolset mapping: Reference the tables above to find the right toolset

References

平台分布

Codex

34.1%
按下载量换算106

Claude

31.29%
按下载量换算97

Cursor

18.35%
按下载量换算57

Gemini CLI

8.48%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills