Practice icon

Practice

Offers a Model Context Protocol server demonstrating a weather query tool.

Acerca de

This repository features a practical Model Context Protocol (MCP) server developed in TypeScript, designed to demonstrate core MCP functionalities. It includes a `fetch-weather` tool that leverages Open-Meteo to provide current weather information for any specified city. The server handles input validation using Zod and communicates via `stdio`, enabling seamless integration with MCP-compatible clients like Claude Desktop. It serves as an excellent starting point for developers looking to understand or build their own MCP tools.

Características Principales

  • Example MCP server implementation
  • Integrates a 'fetch-weather' tool for current city weather
  • Ensures input validation using Zod
  • Communicates via stdio for MCP client compatibility
  • Utilizes Open-Meteo API without requiring an API key
  • 1 GitHub stars

Casos de Uso

  • Learning and practicing Model Context Protocol development
  • Testing integration with Model Context Protocol clients
  • Developing custom AI/LLM tools that require external data through MCP
Advertisement

Advertisement