Cover image

A Model Context Protocol (MCP) server implementation for GitHub integration

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

GitHub MCP Server

A Model Context Protocol (MCP) server implementation for GitHub integration. This server provides tools for interacting with GitHub's API through the MCP protocol.

Features

  • Create GitHub repositories
  • Push content to repositories
  • Get user information
  • Proper error handling and TypeScript type safety
  • Automatic installation script

Prerequisites

  • Node.js (v18 or higher)
  • npm (v8 or higher)
  • PowerShell (for Windows installation)
  • GitHub Personal Access Token with repo scope

Installation

Windows

  1. Clone this repository:
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git
  1. Run the installation script:
.\install.ps1

The script will:

  • Create the necessary directories
  • Install dependencies
  • Build the TypeScript code
  • Configure the MCP settings

Manual Installation

  1. Create the MCP directory:
mkdir -p "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. Clone this repository into that directory:
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. Install dependencies:
cd "$env:APPDATA\Roo-Code\MCP\github-mcp"
npm install
  1. Build the TypeScript code:
npm run build
  1. Add the server configuration to your MCP settings file at: %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
{
  "mcpServers": {
    "github": {
      "command": "node",
      "args": [
        "%APPDATA%\Roo-Code\MCP\github-mcp\build\index.js"
      ],
      "env": {
        "GITHUB_TOKEN": "your-github-token-here"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

Available Tools

get_user

Get GitHub user information.

{
  "username": "octocat"
}

create_repo

Create a new GitHub repository.

{
  "repo_name": "my-new-repo",
  "description": "A new repository",
  "private": false
}

push_to_repo

Push content to a GitHub repository.

{
  "repo_name": "my-repo",
  "file_path": "docs/README.md",
  "content": "# My Project\nThis is a test file.",
  "message": "Add README file"
}

Development

  1. Clone the repository
  2. Install dependencies: npm install
  3. Make changes to src/index.ts
  4. Build: npm run build
  5. Test your changes

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT

相关推荐

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

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

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

  • momi
  • Provides initial medical assessments and advice.

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

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

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

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • justmywyw
  • Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.

  • KasarLabs
  • Build powerful and secure AI Agents powered by Starknet.

    Reviews

    1 (1)
    Avatar
    user_mAbyrwc2
    2025-04-16

    I've been using github-mcp for a while now, and it's become an essential tool in my workflow. The integration with GitHub is seamless, and the user interface is intuitive. Kudos to oghenetejiriorukpegmail for creating such a practical application. Highly recommended for all GitHub users! Check it out [here](https://github.com/oghenetejiriorukpegmail/github-mcp).