AgentHubAgentHub

GitHub

MCP ServerMCP Hub 中国

io.mcp-cn.modelcontextprotocol/server-github · vlatest

连接GitHub的MCP服务器,支持仓库管理、问题跟踪、代码搜索等功能

概览

GitHub 是一个MCP Server,收录自 MCP Hub 中国。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

代码管理版本控制开发工具GitHub

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "server-github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
      }
    }
  }
}

环境变量

GITHUB_PERSONAL_ACCESS_TOKEN必填secret

<YOUR_TOKEN>

相关资源

统一 Manifest

{
  "id": "io.mcp-cn.modelcontextprotocol/server-github",
  "type": "mcp-server",
  "version": "latest",
  "displayName": "GitHub",
  "description": "连接GitHub的MCP服务器,支持仓库管理、问题跟踪、代码搜索等功能",
  "author": {
    "name": "Anthropic, PBC"
  },
  "iconUrl": "https://github.com/github.png",
  "homepage": "https://mcp-cn.com/server/62",
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "@modelcontextprotocol/server-github",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "GITHUB_PERSONAL_ACCESS_TOKEN",
            "description": "<YOUR_TOKEN>",
            "isRequired": true,
            "isSecret": true
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [
    "use_count:104487",
    "代码管理",
    "版本控制",
    "开发工具",
    "GitHub"
  ],
  "provenance": {
    "origin": "mcp-cn",
    "originalId": "@modelcontextprotocol/server-github",
    "originalUrl": "https://mcp-cn.com/server/62",
    "isOfficial": false,
    "status": "active"
  }
}
GitHub — MCP Server 安装与配置 · AgentHub