The GitHub MCP Server allows you to manage GitHub repositories through natural language commands.
Create repositories: Auto-generate repository names from descriptions, add topics/tags, set website URLs, and initialize with README files.
Update repositories: Modify descriptions, tags/topics, and website URLs for existing repositories.
Natural language support: Understands various command patterns like creating or updating repositories with specific attributes.
Seamless integration: Works directly with GitHub's API using a personal access token.
Provides tools for interacting with GitHub's API, allowing users to create repositories with auto-generated names from descriptions, add topics/tags to repositories, set repository homepages, and initialize repositories with README files.
GitHub MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with GitHub's API. Currently supports creating repositories with descriptions, topics, and website URLs.
Features
Create GitHub repositories with auto-generated names from descriptions
Add topics/tags to repositories
Set repository homepages
Auto-initialize repositories with README files
Installation
Clone the repository
Install dependencies:
Build the server:
Configuration
The server requires a GitHub personal access token with repository creation permissions. Add the following to your MCP settings file:
Available Tools
create_repo
Create or update GitHub repositories using natural language commands.
Command Format
The tool accepts natural language commands for different operations:
Creating repositories:
or
Updating repository description:
or
Updating repository tags:
or
Updating repository website:
or
Example Usage
Creating a new repository:
This will:
Create a repository named "my-machine-learning-image-classifier"
Set the description as "my machine learning image classifier"
Add "python", "tensorflow", and "computer-vision" as repository topics
Set the website to "https://example.com/docs"
Initialize with a README file
Updating repository description:
Updating repository tags:
Updating repository website:
The tool understands various natural language patterns and keywords:
Create/make/new for creating repositories
Update/change/set/modify for updating repositories
"description to/as" for updating descriptions
"tags/topics to/as" for updating tags
"website/homepage/url to/as" for updating websites
Development
To modify or extend the server:
Make changes to
src/index.tsRebuild the server:
License
MIT