- Home
- MCP servers
- GitHub
GitHub
- javascript
0
GitHub Stars
javascript
Language
6 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"mcp-mirror-shibdad_github-mcp-server": {
"command": "/bin/sh",
"args": [
"-c",
"/path/to/github-mcp-server/start.sh"
],
"env": {
"GITHUB_TOKEN": "YOUR_GITHUB_TOKEN"
}
}
}
}You can connect Claude Desktop to GitHub and run common git operations through natural prompts. This MCP server lets you clone repos, check status, manage commits and pushes, and explore repositories directly from your conversations, making code collaboration smoother and faster.
How to use
After you connect the MCP server, you can ask Claude to clone repositories, check git status, list your GitHub repos, fetch repository details, commit changes, push to GitHub, and create new repositories. Use clear natural language prompts to perform actions, for example: clone a repo to a specific folder, check the status of a local project, or create a new repository with a chosen name.
How to install
Prerequisites: ensure you have Node.js 16 or newer, Git command-line tools, Claude Desktop installed, and a GitHub Personal Access Token for API access.
# 1. Clone the MCP server repository
git clone https://github.com/shibdad/github-mcp-server.git
cd github-mcp-server
# 2. Install dependencies
npm install
# 3. Make the startup script executable
chmod +x start.sh index.js
# 4. Put your GitHub token for API access (private repos)
echo "your-github-token" > .github_token
Configuration and running
Use the following MCP configuration to connect Claude Desktop to the GitHub MCP Server. This config runs a local script that starts the MCP server via a shell command.
{
"mcpServers": {
"github": {
"command": "/bin/sh",
"args": ["-c", "/path/to/github-mcp-server/start.sh"]
}
}
}
Available tools
git-clone
Clones a repository from GitHub to your local workspace using a natural-language request.
git-status
Returns the current status of tracked files in your local repository, including untracked changes.
github-list-repos
Lists your GitHub repositories, allowing quick selection for further actions.
github-repo-info
Fetches detailed information about a specified GitHub repository.
git-commit
Registers changes in your local repository with a descriptive commit message.
git-push
Pushes committed changes from your local repository to GitHub.
github-create-repo
Creates a new repository on GitHub with your chosen name and settings.