๐ 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:
- Docker Desktop
- Claude Desktop
- A GitHub Personal Access Token (PAT) with
repo
anduser
access - Internet connectivity
๐ ๏ธ Step-by-Step Guide
๐น Step 1: Open Docker Desktop and Navigate to Extensions
- Launch Docker Desktop
- Click on the "Add Extensions" tab
๐น Step 2: Install MCP Toolkit Extension
- Search for โMCP Toolkitโ
- Click Install
- Wait until installation is complete and launch the extension
๐น 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
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
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
โ 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?
โ Claude will confirm branch creation.
๐น 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?
โ Claude opens the PR instantly, no GitHub UI involved.
๐ก 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
- ๐ณ Docker Desktop
- ๐ Docker MCP Toolkit Extension
- ๐ GitHub MCP Documentation
- ๐ค Claude Desktop
- ๐ Create a GitHub PAT
๐ฏ 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)
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...