go-mcp-temperature-server
0
The project is a simple MCP server built in Go that provides temperature data for specified locations by proxying requests to an external temperature service. It is designed for educational purposes, showing the implementation of MCP tooling and communication.
Temperature MCP Server Example
This project demonstrates how to build a simple MCP server in Go that provides temperature data for given locations.
Features
- Implements an MCP server using the mark3labs/mcp-go library.
- Registers a tool (
get_temperature
) that accepts alocation
parameter. - Proxies temperature requests to a local or remote HTTP service.
Usage
Prerequisites
- Go 1.18 or newer
- An HTTP temperature service running locally
Running the MCP Server
- Clone the repository or copy the source files to your Go workspace.
- Install dependencies.
- Build the MCP server.
- Ensure your HTTP temperature service is running on port 8080.
- Start the MCP server.