Practice Js icon

Practice Js

Provides weather information tools for AI assistants via a Model Context Protocol (MCP) server implementation in TypeScript.

关于

This project demonstrates how to create an MCP server that exposes weather-related tools to Large Language Models (LLMs). The server provides a `fetch-weather` tool that retrieves current weather data and forecasts for any city using the Open-Meteo API.

主要功能

  • MCP Protocol: Compatible with AI assistants that support the Model Context Protocol
  • TypeScript: Fully typed implementation for better development experience
  • Weather Tool: Fetch current weather conditions and forecasts for any city
  • Input Validation: Uses Zod for robust input/output validation
  • 0 GitHub stars

使用案例

  • Integrating real-world data retrieval capabilities into Large Language Models (LLMs).
  • Serving as an example or boilerplate for developing custom MCP servers with external API integrations.
  • Enabling AI assistants to access real-time weather information for any city.