MCP Curl Server logo

MCP Curl Server

by ollama-tlms-golang

This project demonstrates how to create a Model Context Protocol (MCP) server in Go and package it with Docker. The server provides a tool to fetch webpage content using curl, enabling LLMs to access and analyze online information.

View on GitHub

Last updated: N/A

What is MCP Curl Server?

This is an MCP server implemented in Go that exposes a 'use_curl' tool. This tool allows an LLM to fetch the content of a webpage by providing its URL.

How to use MCP Curl Server?

  1. Build the Docker image using docker build -t mcp-curl .. 2. Configure mcphost with a mcp.json file to point to the Docker image. 3. Run mcphost with the configuration and your chosen LLM model: mcphost --config ./mcp.json --model ollama:qwen2.5-coder:14b. 4. Interact with the LLM and use the /tools command to see available tools. 5. Invoke the use_curl tool with a URL to fetch webpage content.

Key features of MCP Curl Server

  • Implements a simple MCP server in Go

  • Provides a 'use_curl' tool for fetching webpage content

  • Uses Docker for easy deployment

  • Integrates with mcphost for LLM interaction

Use cases of MCP Curl Server

  • Allowing LLMs to access and summarize online articles

  • Enabling LLMs to retrieve data from web APIs

  • Providing LLMs with real-time information from websites

  • Building generative AI applications that leverage web content

FAQ from MCP Curl Server

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for LLMs to interact with external tools and services.

Why use Go for the MCP server?

Go is a performant and efficient language suitable for building network services like MCP servers.

Why use Docker?

Docker provides a consistent and portable environment for deploying the MCP server.

What is mcphost?

mcphost is a tool that allows you to connect LLMs with MCP servers.

Can I add more tools to the server?

Yes, you can extend the server by adding more tools and handlers in the main.go file.