Provides current city weather data through a minimalist Model Context Protocol (MCP) server, serving as an example for LLM-tool communication.
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.
主要功能
01Minimalist MCP Server
02Fetch-weather tool with external API consumption (Open-Meteo)
03Built using @modelcontextprotocol/sdk and zod
040 GitHub stars
使用案例
01Integrating real-time weather data into AI applications
02Developing custom tools for MCP servers
03Learning about the Model Context Protocol and LLM-tool communication