Skip to content

theNetworkChuck/docker-mcp-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Docker MCP Tutorial - Build AI Tools with Docker

NetworkChuck Docker MCP

Learn how to build and deploy MCP (Model Context Protocol) servers using Docker! This repository contains everything from the NetworkChuck Docker MCP video tutorial, including complete examples, templates, and step-by-step guides.

๐ŸŽฅ Watch the Tutorial

Watch the full video tutorial on YouTube โ†’

โšก Quick Start (5 Minutes)

Get your first MCP server running in under 5 minutes:

# 1. Install Docker Desktop (if not already installed)
# Visit: https://docs.docker.com/desktop/

# 2. Enable Docker MCP Toolkit
# Settings โ†’ Beta Features โ†’ Enable "Docker MCP Toolkit"

# 3. Clone this repository
git clone https://github.com/networkchuck/docker-mcp-tutorial.git
cd docker-mcp-tutorial

# 4. Build the dice roller example
cd examples/dice-roller
docker build -t dice-mcp-server .

# 5. Follow the Quick Start Guide
# See: quick-start/setup-guide.md

๐Ÿ“š What's Included

๐ŸŽฒ Complete Working Example

  • Dice Roller - Fun D&D dice rolling MCP server with all files ready to run

๐Ÿ› ๏ธ MCP Builder Prompt

NetworkChuck's custom prompt that generates complete MCP servers from simple descriptions. Just describe what you want, and it creates everything!

๐Ÿ“– Comprehensive Documentation

  • Step-by-step installation guides (Mac, Windows, Linux)
  • How to build custom MCP servers
  • Docker MCP Gateway deep dive
  • Troubleshooting common issues

๐Ÿ”— All Resources & Links

Every tool, link, and resource mentioned in the video, organized and ready to use.

๐Ÿ—‚๏ธ Repository Structure

docker-mcp-tutorial/
โ”œโ”€โ”€ examples/                    # Complete working MCP server
โ”‚   โ””โ”€โ”€ dice-roller/            # D&D dice rolling server
โ”œโ”€โ”€ mcp-builder-prompt/         # AI prompt to generate MCP servers
โ”œโ”€โ”€ quick-start/               # Get running in 5 minutes
โ”œโ”€โ”€ docs/                      # Detailed documentation
โ”‚   โ”œโ”€โ”€ installation.md       # Platform-specific setup
โ”‚   โ”œโ”€โ”€ custom-servers.md     # Build your own servers
โ”‚   โ”œโ”€โ”€ docker-gateway.md     # Gateway architecture
โ”‚   โ””โ”€โ”€ troubleshooting.md    # Common issues & fixes
โ””โ”€โ”€ resources/                 # Links and additional resources

๐ŸŽฏ What You'll Learn

  1. MCP Fundamentals - Understand the Model Context Protocol
  2. Docker Integration - Run MCP servers in containers
  3. Build Custom Servers - Create your own AI tools
  4. API Integration - Connect to external services
  5. Security & Secrets - Manage API keys safely
  6. Remote Access - Expose servers over network
  7. n8n Integration - Automation workflows with MCP

๐Ÿšฆ Prerequisites

  • Docker Desktop installed and running
  • Claude Desktop or another MCP-compatible client
  • Basic command line knowledge
  • Coffee โ˜• (highly recommended)

๐Ÿ“‹ Installation Overview

1. Install Docker Desktop

2. Configure MCP Client

  • Set up Claude Desktop, Cursor, or LM Studio
  • Configure MCP gateway connection

3. Build & Deploy

  • Build Docker containers for MCP servers
  • Register servers in catalog
  • Start using with your AI!

Detailed platform-specific instructions in docs/installation.md

๐Ÿ”จ Building Your First MCP Server

Using the MCP Builder Prompt

  1. Open the prompt template: mcp-builder-prompt/mcp-builder-prompt.md
  2. Describe your desired functionality
  3. Feed to Claude or your preferred AI
  4. Get complete, working MCP server code!

Example: Weather MCP Server

"I want to build a weather MCP server that can:
- Get current weather for any city
- Get 5-day forecast
- Convert between Celsius and Fahrenheit
Use the OpenWeather API"

The AI will generate all files needed: Dockerfile, Python server, configuration, and installation instructions!

๐ŸŽฎ Example Server Included

๐ŸŽฒ Dice Roller

Perfect for D&D and tabletop gaming:

  • Roll any dice notation (2d6+3, 1d20, etc.)
  • D&D stat generation
  • Advantage/disadvantage rolls
  • Skill checks against DC

Note: The video also demonstrates building Toggl Timer and Kali Linux MCP servers. Use the MCP Builder Prompt to create these or any other server you can imagine!

๐Ÿ”ง Docker MCP Gateway

The Docker MCP Gateway is the magic that makes this all work:

  • Centralized Management - One connection, multiple servers
  • Secret Management - Secure API key storage
  • Transport Options - Local (stdio) or Network (SSE)
  • Dynamic Containers - Servers run on-demand

Learn more in docs/docker-gateway.md

๐ŸŒ Remote Access & n8n Integration

Run your MCP servers over the network:

# Start gateway with network transport
docker mcp gateway run --transport sse

# Access from n8n or remote clients
http://YOUR_IP:8811

Perfect for automation workflows and remote AI operations!

๐Ÿ› Troubleshooting

Common Issues

Tools not appearing in Claude?

  • Restart Claude Desktop
  • Check catalog and registry files
  • Verify Docker image built successfully

Authentication errors?

  • Verify secrets: docker mcp secret list
  • Check environment variable names

Container not running?

  • Check logs: docker logs [container-name]
  • Verify Dockerfile syntax

Full troubleshooting guide in docs/troubleshooting.md

๐Ÿ“š Resources & Links

Official Documentation

APIs Used in Examples

Related NetworkChuck Content

๐Ÿค Contributing

Found a bug? Have an improvement? Contributions are welcome!

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

๐Ÿ“„ License

MIT License - See LICENSE file for details

๐Ÿ™ Acknowledgments

  • Docker for sponsoring and creating the MCP Toolkit
  • Anthropic for the Model Context Protocol
  • The amazing NetworkChuck community

โ˜• Support

If this helped you, consider:

  • โญ Starring this repository
  • ๐Ÿ”” Subscribing to NetworkChuck on YouTube
  • โ˜• Buying NetworkChuck a coffee

Remember: The world of AI tools is evolving rapidly. This is your chance to be part of the revolution. Don't waste it!

"Hack YouTube ethically, of course." - NetworkChuck

About

Complete tutorial materials for building MCP servers with Docker - from NetworkChuck's video

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published