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

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.


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...