05
Build an MCP server with Go, deploy via Docker, and enhance LLMs with web scraping via curl.
Install & Use
Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:
Help me install this AI Skill: 05. It is used for: Build an MCP server with Go, deploy via Docker, and enhance LLMs with web scraping via curl. Full Skill content: https://321skill.com/skills/05/raw/index.md Read that page and install it.
The prompt includes a link to the full Skill content. You can also view the full content.
This skill addresses the limitation of LLMs being unable to directly access web content. In practical development, developers often need AI models to retrieve real-time web information or content from specific URLs. Traditional methods rely on APIs or manual copying, which are inefficient and difficult to integrate into automated workflows. Leveraging the MCP protocol, this skill enables LLMs to execute curl commands as if they were calling a tool, returning web content directly to the model. This facilitates use cases such as information retrieval, summarization, and competitor analysis.
Usage is straightforward: simply clone or download the project code and run the Docker container locally to start the MCP server. You can then use natural language instructions to have the LLM invoke the curl tool—for example, "Help me fetch the content from https://example.com and summarize the key points." The server automatically executes the curl command and returns the web content as text to the model, which then processes it further.
It is particularly suitable for development teams or individuals who need to equip LLMs with real-time information retrieval capabilities. Developers already using the MCP protocol (e.g., with Claude Desktop, Cursor, etc.) can quickly integrate this server without learning complex APIs. Additionally, the high performance of Go and the convenience of Docker deployment make it suitable for production environments or scenarios requiring frequent web scraping.
We recommend using this tool uniformly when AI models need to access web content. Note that it primarily relies on the external curl command; some websites may not return complete content due to anti-scraping measures or JavaScript rendering. It is advisable to supplement it with other tools (e.g., headless browsers). For frequent requests, adding a caching mechanism is recommended to reduce network overhead.
Key Features
Compared to a Python-based MCP curl server, this version is compiled in Go into a native binary, offering faster startup, lower memory usage, and a smaller Docker image (approx. 10 MB), making it suitable for resource-constrained container environments.
Limitations
Requires Go 1.23.4 or higher and depends on the mcp-go library. Currently, only the stdio transport protocol is supported (SSE is not supported). The curl tool must be installed on the system, and additional configuration is needed for Windows environments.
FAQ
How do I connect this MCP server in Claude Desktop?
Add the MCP server address to Claude Desktop's configuration file, set the transport type to stdio, and specify the startup command as either `docker run` or directly running the compiled binary.
What should I do if I encounter anti-scraping measures while fetching a webpage?
The current curl command does not include browser headers by default. It is recommended to modify the code to add a User-Agent parameter or switch to a scraping tool that supports JavaScript rendering.
Installation guide for AI assistants
If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:
Visit https://321skill.com/skills/05/raw/index.md to read the original Skill definition (Markdown format) for 05, and install it according to the instructions.
Raw Markdown URL for AI: /skills/05/raw/index.md