GitHub MCP Server logo

GitHub MCP Server

by WebsyteAI

A Model Context Protocol (MCP) server for GitHub that adds support for creating repositories in organizations. It allows users to manage GitHub repositories through the MCP protocol.

View on GitHub

Last updated: N/A

What is GitHub MCP Server?

This is a Model Context Protocol (MCP) server designed to interact with GitHub. It extends the standard MCP functionality to include features for creating and managing repositories, particularly within GitHub organizations.

How to use GitHub MCP Server?

To use this server, install it globally using npm (npm install -g @websyteai/github-mcp-server). Then, configure your MCP settings file (e.g., Cline) to include this server, specifying the command, arguments, environment variables (specifically GITHUB_PERSONAL_ACCESS_TOKEN), and other relevant settings. Ensure the provided GitHub personal access token has the necessary permissions.

Key features of GitHub MCP Server

  • Create repositories in personal accounts

  • Create repositories in organizations

  • Search repositories

  • Get file contents

  • Create or update files

  • Push multiple files in a single commit

Use cases of GitHub MCP Server

  • Automating repository creation for new projects

  • Managing code templates across multiple repositories

  • Programmatically updating configuration files in multiple repositories

  • Integrating GitHub repository management into CI/CD pipelines

FAQ from GitHub MCP Server

What is a GitHub Personal Access Token?

A GitHub Personal Access Token is a credential that allows you to access GitHub resources programmatically, without using your username and password directly.

What permissions are required for the GitHub Personal Access Token?

The token needs permissions to create repositories (repo scope) and manage content (contents scope).

How do I create a GitHub Personal Access Token?

You can create a token in your GitHub settings under Developer settings -> Personal access tokens.

What is MCP?

MCP stands for Model Context Protocol. It is a protocol for interacting with various services and tools in a standardized way.

Is this server open source?

The README specifies an MIT license, suggesting it is likely open source, but check the repository for the full license file.