What is mcp-curl?
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 mcp-curl?
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 mcp-curl
- Written in Go using the
mcp-go SDK.
- Exposes a single tool
use_curl that takes a required url parameter.
- 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 mcp-curl
- 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.
评论