GitHub MCP Server
GitHub MCP 服务器
用于与 GitHub 交互的模型上下文协议 (MCP) 服务器。此工具允许 AI 助手执行各种 GitHub 操作,包括存储库管理、文件操作、问题跟踪等。
特征
存储库操作:创建存储库、分叉存储库
文件操作:创建、更新和读取文件,在一次提交中推送多个文件
问题管理:创建、更新、列出和评论问题
拉取请求:创建拉取请求
分支管理:创建分支
搜索功能:搜索代码、存储库、问题和用户
提交历史:列出提交
Related MCP server: GitHub MCP Server
设置
先决条件
Node.js 18 或更高版本
具有适当权限的 GitHub 个人访问令牌
安装
克隆此存储库
安装依赖项:
npm install构建项目:
npm run build
配置
此 MCP 服务器需要 GitHub 个人访问令牌 (Personal Access Token) 才能通过 GitHub API 进行身份验证。该令牌应作为环境变量提供:
GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here使用 Smithery 部署时,令牌是通过githubPersonalAccessToken配置选项配置的。
用法
本地运行
要在本地运行服务器:
GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here node dist/index.js使用 Smithery 进行部署
此存储库包含使用 Smithery 部署所需的配置文件:
Dockerfile:定义如何为 MCP 服务器构建 Docker 镜像smithery.yaml:配置 Smithery 如何启动 MCP 服务器
有关部署说明,请参阅Smithery 文档。
发展
建筑
npm run build代码检查
npm run lint执照
麻省理工学院
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
An MCP server that gives your AI access to the source code and docs of all public github repos
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with GitHub's API, allowing for repository creation and management with descriptions, topics, and website URLs through natural language commands.11-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.11 npmMIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLM agents to manage GitHub repositories, issues, pull requests, branches, files, and releases through a standardized interface.295 npm8Apache 2.0
- -licenseCqualityNot gradedmaintenanceA Model Context Protocol server with GitHub API integration that enables interaction with repositories, issues, pull requests, and file management through a standardized interface.1-