Basic information
About Creating an MCP Server in Go and Serving it with Docker
# Creating an MCP Server in Go and Serving it with Docker
Creating an MCP Server in Go and Serving it with Docker is a MCP server in the Cloud & Infrastructure category listed in the AddMCP.net directory, published by ollama-tlms-golang. Supported transport: stdio. Runtime: Shell. License: MIT. The repository has 11 GitHub stars. Source code is hosted on github.com. Related topics: docker, go, mcp, server.
Setup
{
"mcpServers": {
"05-make-your-mcp-server": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-curl",
"."
]
}
}
}
{
"mcpServers": {
"05-make-your-mcp-server": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-curl",
"."
]
}
}
}
{
"servers": {
"05-make-your-mcp-server": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-curl",
"."
]
}
}
}
Creating an MCP Server in Go and Serving it with Docker config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"05-make-your-mcp-server": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-curl",
"."
]
}
}
}
Creating an MCP Server in Go and Serving it with Docker tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Creating an MCP Server in Go and Serving it with Docker?
mcp-curl is a Model Context Protocol (MCP) server written in Go that exposes a single tool to fetch the content of a webpage using curl. It is designed to be packaged with Docker and used with an MCP client like mcphost to give LLMs the ability to retrieve and analyze web content.
How to use Creating an MCP Server in Go and Serving it with Docker?
Build the Docker image with docker build -t mcp-curl . from the provided Dockerfile. Then create an mcp.json file for mcphost that runs the Docker container interactively. Start mcphost with mcphost --config ./mcp.json --model ollama:qwen2.5-coder:14b to make the server available to the LLM.
Key features of Creating an MCP Server in Go and Serving it with Docker
- Written in Go using the
mcp-goSDK. - Exposes a single tool
use_curlthat takes a requiredurlparameter. - Communicates via standard input/output (stdio).
- Packaged in a Docker image that includes both the Go binary and
curl. - Designed for simplicity – easy to extend or modify.
Use cases of Creating an MCP Server in Go and Serving it with Docker
- Let an LLM fetch and summarize the content of a webpage.
- Allow an LLM to extract information from a URL for analysis.
- Provide a lightweight, containerized MCP server for local or remote use.
- Serve as a starting template for building custom MCP tools in Go.
Frequently asked questions
1 What dependencies are required to build and run mcp-curl?
Building requires Go 1.23.4 and Docker. Running requires Docker and an MCP client like mcphost (or any stdio‑based MCP client). The Docker image bundles curl from the curlimages/curl:8.6.0 image.
2 What transport does mcp-curl use?
mcp-curl uses standard input/output (stdio) as its transport layer, as set up by server.ServeStdio.
3 How do I configure mcphost to use the Docker container?
Create an mcp.json file with the command "docker" and arguments ["run", "--rm", "-i", "mcp-curl"]. Then run mcphost --config ./mcp.json --model <model>.
4 Can I modify mcp-curl to add more tools?
Yes. The README shows the minimal implementation, and the mcp-go library supports adding additional tools and handlers. You can extend main.go with new mcp.NewTool calls.
5 Where does my data live when using mcp-curl?
The server runs inside a Docker container and fetches web content on demand. Data is passed back to the MCP client via stdio and is not persistently stored by the server.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In