Skip to main content
Glama

GitHub MCP Server

by renantrendt

GitHub MCP 服务器

用于与 GitHub 交互的模型上下文协议 (MCP) 服务器。此工具允许 AI 助手执行各种 GitHub 操作,包括存储库管理、文件操作、问题跟踪等。

特征

  • 存储库操作:创建存储库、分叉存储库
  • 文件操作:创建、更新和读取文件,在一次提交中推送多个文件
  • 问题管理:创建、更新、列出和评论问题
  • 拉取请求:创建拉取请求
  • 分支管理:创建分支
  • 搜索功能:搜索代码、存储库、问题和用户
  • 提交历史:列出提交

设置

先决条件

  • Node.js 18 或更高版本
  • 具有适当权限的 GitHub 个人访问令牌

安装

  1. 克隆此存储库
  2. 安装依赖项:
    npm install
  3. 构建项目:
    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

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

模型上下文协议服务器,使 AI 助手能够执行 GitHub 操作,包括存储库管理、文件操作、问题跟踪和拉取请求创建。

  1. 特征
    1. 设置
      1. 先决条件
      2. 安装
      3. 配置
    2. 用法
      1. 本地运行
      2. 使用 Smithery 进行部署
    3. 发展
      1. 建筑
      2. 代码检查
    4. 执照

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A server that allows AI assistants to browse and read files from specified GitHub repositories, providing access to repository contents via the Model Context Protocol.
        Last updated -
        3
        JavaScript
        MIT License
        • Apple
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that enables AI agents to retrieve and understand entire codebases at once, providing tools to analyze local workspaces or remote GitHub repositories.
        Last updated -
        9
        TypeScript
        MIT License
        • Linux
        • Apple
      • A
        security
        F
        license
        A
        quality
        A 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.
        Last updated -
        1
        JavaScript
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.
        Last updated -
        129
        Python

      View all related MCP servers

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

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