GitHub MCP Server
Provides tools for managing GitHub repositories, including creating branches, pushing files, and managing pull requests.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub MCP Servercreate a branch feature/update-readme from main in owner/repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub MCP Server
A simple MCP server that exposes GitHub actions as tools: create branch, push file, open PR, and merge PR.
Setup
pip install -r requirements.txt
cp .env.example .env # then add your GitHub tokenRun
python server.pyTools
Tool | Description |
| Create a new branch from an existing one |
| Create or update a file (commit & push) |
| Open a pull request |
| Merge an open pull request by PR number |
Example Usage
# Create a branch
create_branch("owner/repo", "feature/my-branch", from_branch="main")
# Push a file
push_file("owner/repo", "feature/my-branch", "hello.txt", "Hello World!", "add hello.txt")
# Open a PR
create_pull_request("owner/repo", "My PR", head="feature/my-branch", base="main")
# Merge PR #1
merge_pull_request("owner/repo", 1)Requirements
Python 3.10+
GitHub Personal Access Token with
reposcope
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/maheshjagzap123/MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server