Cover image
Try Now
2025-03-16

用于与GitHub交互的模型上下文协议(MCP)服务器

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

GitHub MCP Server

A Model Context Protocol (MCP) server for interacting with GitHub. This tool allows AI assistants to perform various GitHub operations including repository management, file operations, issue tracking, and more.

Features

  • Repository Operations: Create repositories, fork repositories
  • File Operations: Create, update, and read files, push multiple files in a single commit
  • Issue Management: Create, update, list, and comment on issues
  • Pull Requests: Create pull requests
  • Branch Management: Create branches
  • Search Capabilities: Search code, repositories, issues, and users
  • Commit History: List commits

Setup

Prerequisites

  • Node.js 18 or higher
  • A GitHub Personal Access Token with appropriate permissions

Installation

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Build the project:
    npm run build
    

Configuration

This MCP server requires a GitHub Personal Access Token to authenticate with the GitHub API. The token should be provided as an environment variable:

GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here

When deploying with Smithery, the token is configured through the githubPersonalAccessToken configuration option.

Usage

Running Locally

To run the server locally:

GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here node dist/index.js

Deploying with Smithery

This repository includes the necessary configuration files for deploying with Smithery:

  • Dockerfile: Defines how to build the Docker image for the MCP server
  • smithery.yaml: Configures how Smithery should start the MCP server

Refer to the Smithery documentation for deployment instructions.

Development

Building

npm run build

Linting

npm run lint

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    5 (1)
    Avatar
    user_o7oklrDJ
    2025-04-17

    I'm a huge fan of mcp-github! This tool, created by renantrendt, provides seamless integration with GitHub, making it incredibly easy to manage my repositories. The intuitive interface and powerful features save me a lot of time, and I highly recommend it to any developer looking to streamline their workflow. Check it out at https://github.com/renantrendt/mcp-github!