Skip to main content
Glama
maheshjagzap123

GitHub MCP Server

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 token

Related MCP server: GitHub MCP Server

Run

python server.py

Tools

Tool

Description

create_branch

Create a new branch from an existing one

push_file

Create or update a file (commit & push)

create_pull_request

Open a pull request

merge_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 repo scope

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Exposes GitHub REST API operations as AI-ready tools for managing repositories, tracking push history, and updating settings. It enables LLM agents to perform tasks like creating repositories, retrieving metadata, and monitoring branch activity through a standardized interface.
  • F
    license
    -
    quality
    C
    maintenance
    Enables to interact with GitHub repositories directly from Claude, supporting actions like viewing repos, checking status, committing and pushing changes, and managing pull requests.

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Git-backed platform for skills, tools, and context for AI agents

  • Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.

View all MCP Connectors

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