MCP.so
ログイン
サーバー

GitHub MCP Server

@oghenetejiriorukpegmail

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

概要

What is GitHub MCP Server?

A Model Context Protocol (MCP) server implementation that provides tools for interacting with the GitHub API. It enables developers to perform GitHub operations—such as creating repositories, pushing content, and retrieving user information—directly through MCP-compatible clients.

How to use GitHub MCP Server?

Install the server using the provided Windows PowerShell script or manually by cloning the repository, installing dependencies (npm install), and building the TypeScript code (npm run build). Then add the server configuration to your MCP settings file (cline_mcp_settings.json), setting the GITHUB_TOKEN environment variable with a personal access token. Once configured, MCP clients can invoke the available tools.

Key features of GitHub MCP Server

  • Create new GitHub repositories
  • Push file content to repositories
  • Get GitHub user information
  • Proper error handling with TypeScript type safety
  • Automatic Windows installation script

Use cases of GitHub MCP Server

  • Automate repository creation from an AI assistant or script
  • Push documentation updates or new files to existing repos
  • Quickly look up user profiles programmatically
  • Integrate GitHub operations into MCP-based workflows

FAQ from GitHub MCP Server

What are the prerequisites for running GitHub MCP Server?

Node.js v18 or higher, npm v8 or higher, and a GitHub Personal Access Token with the repo scope. On Windows, PowerShell is required for the automatic installation script.

How do I install GitHub MCP Server?

You can run .\install.ps1 in a PowerShell terminal, which handles directory creation, dependency installation, and configuration. Alternatively, manually clone the repo into %APPDATA%\Roo-Code\MCP\github-mcp, run npm install and npm run build, then edit the MCP settings file.

How do I configure authentication?

Add the server entry to your MCP settings file and include an env object with "GITHUB_TOKEN": "your-github-token-here". The token must have the repo scope.

What tools does GitHub MCP Server provide?

Three tools: get_user (get user info by username), create_repo (create a new repository with name, description, and privacy flag), and push_to_repo (push content to a specified file path in a repository with a commit message).

タグ

「バージョン管理」の他のコンテンツ