Creating an MCP Server in Go and Serving it with Docker (part 2)
Overview
The MCP Server Project is a tutorial series focused on creating a Minecraft server using the Go programming language and deploying it with Docker.
To use the MCP Server Project, follow the instructions provided in the GitHub repository to set up your development environment, build the server, and run it using Docker.
- Step-by-step guide for building a Minecraft server in Go - Instructions for containerizing the server with Docker - Best practices for server management and deployment
- Setting up a custom Minecraft server for personal use.
- Learning Go programming through practical application.
- Experimenting with Docker for application deployment.
Add to your AI client
Use these steps to connect Creating an MCP Server in Go and Serving it with Docker (part 2) in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"07-make-your-mcp-server-ollama-tlms-golang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-07-make-your-mcp-server-ollama-tlms-golang"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"07-make-your-mcp-server-ollama-tlms-golang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-07-make-your-mcp-server-ollama-tlms-golang"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"07-make-your-mcp-server-ollama-tlms-golang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-07-make-your-mcp-server-ollama-tlms-golang"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"07-make-your-mcp-server-ollama-tlms-golang": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-07-make-your-mcp-server-ollama-tlms-golang"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"07-make-your-mcp-server-ollama-tlms-golang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-07-make-your-mcp-server-ollama-tlms-golang"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"07-make-your-mcp-server-ollama-tlms-golang": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-07-make-your-mcp-server-ollama-tlms-golang"
]
}
}
}FAQ
Can I run the server on my local machine?
Yes! The tutorial provides instructions for running the server locally.
Is Docker required to run the server?
While Docker is recommended for deployment, you can also run the server without it by following the local setup instructions.
What version of Go is needed?
The project is compatible with the latest stable version of Go.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":888,"uuid":"1088630d-520f-442e-a452-c0e146b4cb67","name":"07-make-your-mcp-server-","title":"Creating an MCP Server in Go and Serving it with Docker (part 2)","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/190933604?v=4","created_at":"2025-01-28T02:16:30.043Z","updated_at":"2025-02-23T07:12:47.139Z","status":"created","author_name":"ollama-tlms-golang","author_avatar_url":"https://avatars.githubusercontent.com/u/190933604?v=4","tags":"mcp,docker,go,server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/ollama-tlms-golang/07-make-your-mcp-server-","target":"_self","content":"# Creating an MCP Server in Go and Serving it with Docker (part 2)","summary":"$29","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]