Fetch Weather icon

Fetch Weather

Provides current city weather data through a minimalist Model Context Protocol (MCP) server, serving as an example for LLM-tool communication.

About

Explore a straightforward and operational implementation of a Model Context Protocol (MCP) server, built with the official SDK. This project exposes a `fetch-weather` tool, enabling users to retrieve real-time weather information for any given city. It serves as an excellent foundational example for grasping the MCP and understanding how Language Models (LLMs) interact with custom-built tools.

Key Features

  • Minimalist MCP Server
  • Fetch-weather tool with external API consumption (Open-Meteo)
  • Built using @modelcontextprotocol/sdk and zod
  • 0 GitHub stars

Use Cases

  • Integrating real-time weather data into AI applications
  • Developing custom tools for MCP servers
  • Learning about the Model Context Protocol and LLM-tool communication
Craft Better Prompts with AnyPrompt
Sponsored
Fetch Weather: Minimalist MCP Server for LLM Tool Communication