go-mcp-temperature-server

go-mcp-temperature-server

3.2

If you are the rightful owner of go-mcp-temperature-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project demonstrates how to build a simple MCP server in Go that provides temperature data for a given location.

The Temperature MCP Server Example is a project that illustrates the implementation of a Model Context Protocol (MCP) server using Go. It is designed to provide temperature data for specified locations by exposing a 'get_temperature' tool via MCP. The server acts as a proxy, forwarding requests to an underlying HTTP temperature service. The project is built using the 'mark3labs/mcp-go' library and is structured to facilitate educational purposes with well-documented code. The server is capable of handling requests for temperature data by accepting a 'location' parameter and returning the corresponding temperature information.

Features

  • Implements an MCP server using the 'mark3labs/mcp-go' library.
  • Registers a 'get_temperature' tool that accepts a 'location' parameter.
  • Proxies temperature requests to a local or remote HTTP service.
  • Well-documented code for educational purposes.

Tools

  1. get_temperature

    Get the temperature data at the specified location