GitHub MCP 服务器

GitHub MCP 服务器

一个支持 GitHub 集成的 Model Context Protocol (MCP) 服务器,提供仓库管理、文件操作和提交处理等功能。

快速入门

  1. 安装:运行 npm install @modelcontextprotocol/server-github
  2. 配置:在 cline_mcp_settings.json 中添加以下内容: { "mcpServers": { "github": { "command": "node", "args": ["/path/to/github-mcp-server/dist/index.js"], "env": { "GITHUB_TOKEN_1": "your-github-token", "GITHUB_OWNER_1": "your-github-username" } } } }
  3. 构建:执行 npm installnpm run build
  4. 使用:通过 MCP 工具与 GitHub 仓库交互,支持账户管理、仓库创建、文件同步等。