DEV Community

Cover image for How I Automated GitHub Repos, Branches & PRs Using Claude AI and Docker Desktop MCP
Koti Vellanki
Koti Vellanki

Posted on

1 1

How I Automated GitHub Repos, Branches & PRs Using Claude AI and Docker Desktop MCP

🚀 Introduction

In this guide, I’ll walk you through how I used Docker Desktop, the MCP Toolkit extension, and Claude Desktop to connect to GitHub and automate tasks like:

  • Creating a repository
  • Adding multiple branches
  • Opening a pull request — all via simple prompts to Claude

We’ll set up everything step-by-step so you can follow this like a playbook and get the same results.


✅ Prerequisites

Before we begin, make sure you have the following installed:


🛠️ Step-by-Step Guide


🔹 Step 1: Open Docker Desktop and Navigate to Extensions

  • Launch Docker Desktop
  • Click on the "Add Extensions" tab

Image description


🔹 Step 2: Install MCP Toolkit Extension

  • Search for “MCP Toolkit”
  • Click Install
  • Wait until installation is complete and launch the extension

Image description


🔹 Step 3: Enable GitHub as MCP Server

  • Inside MCP Toolkit, Search for GitHub under MCP Servers and select the official MCP Server
  • Paste your GitHub Personal Access Token If you don't have the GitHub PAT ready go to Account Settings --> Developer Settings - Create Token and paste it in the github.personal_access_token

Image description

This enables Docker to act as an MCP Server that communicates securely with GitHub.


🔹 Step 4: Launch Claude Desktop and Configure MCP Client

  • Open Claude Desktop settings or config file
  • Copy the MCP Client config instructions shown in Docker MCP extension
  • Paste them into Claude’s config
  • Restart Claude Desktop

Image description

Now Claude is linked to the GitHub MCP server and ready to take commands.


🔹 Step 5: Create a GitHub Repository Using Claude

Open Claude’s interface and type:

create a repo called yt-demo-github-mcp in my github account
Enter fullscreen mode Exit fullscreen mode

✅ You’ll see a confirmation from Claude that the repository is created.


🔹 Step 6: Create Multiple Branches

Prompt:

can you create 3 branches dev, qe, prod and list all the available branches?

Enter fullscreen mode Exit fullscreen mode

✅ Claude will confirm branch creation.

Image description


🔹 Step 7: Open a Pull Request

Prompt:

can you create a file called tes.py with hello worls code in Python and raise Pull request from Dev to QE, QE to Prod and Prod to main?
Enter fullscreen mode Exit fullscreen mode

✅ Claude opens the PR instantly, no GitHub UI involved.

Image description


💡 What Else Can You Do?

The GitHub MCP Server supports over 48 different GitHub features — from repository settings to contributor roles, issues, PR reviews, and more.

👉 You can explore all supported features here:
📖 GitHub MCP Official Documentation


🔗 References


🎯 Wrapping Up

You just saw how easy it is to:

  • Set up Docker MCP and Claude Desktop
  • Connect to GitHub
  • Automate key GitHub tasks with natural language

This guide is part of my Docker Series, where I’ll continue sharing hands-on, real-world use cases to help you get the most out of Docker tools and extensions.


Feature flag article image

Create a feature flag in your IDE in 5 minutes with LaunchDarkly’s MCP server ⏰

How to create, evaluate, and modify flags from within your IDE or AI client using natural language with LaunchDarkly's new MCP server. Follow along with this tutorial for step by step instructions.

Read full post

Top comments (1)

Collapse
 
james_mcmorrough_31d509de profile image
James McMorrough

I'd love to ask, did you ever find out how to create this Docker MCP as an actual Docker MCP Bridge Server that exposes an HTTP endpoint rather than just STDIO? I'm new to Docker, but would really like to do that as I prefer using my models in a browser, and Visual Studio 2022 for my coding and having my models connected with http endpoint with a Github MCP Server would all me and my AI to contribute on the same codebase, conversing through GIthub...

ITRS image

See What Users Experience in The Browser — Anywhere, Anytime

Simulate logins, checkouts, and payments on SaaS, APIs, and internal apps. Catch issues early, baseline web performance, and stay ahead of incidents. Easily record user journeys right from your browser.

Start Free Trial

👋 Kindness is contagious

Discover fresh viewpoints in this insightful post, supported by our vibrant DEV Community. Every developer’s experience matters—add your thoughts and help us grow together.

A simple “thank you” can uplift the author and spark new discussions—leave yours below!

On DEV, knowledge-sharing connects us and drives innovation. Found this useful? A quick note of appreciation makes a real impact.

Okay