mcp-server-sample

gabrielfroes
41
Modelo de Servidor MCP baseado na documentação oficial

Overview

What is mcp-server-sample

mcp-server-sample is an educational project that demonstrates how to build an MCP server integrated with external APIs and data validation, implemented in Node.js/TypeScript.

How to Use

To use mcp-server-sample, clone the repository, install the necessary dependencies, and run the server. You can then access weather information by using the provided tools for alerts and forecasts.

Key Features

Key features include: 1) Active weather alerts retrieval for states using the 'get-alerts' tool; 2) Weather forecasts based on geographic coordinates using the 'get-forecast' tool; 3) Input validation with Zod; 4) Integration with the NWS API; 5) Communication via stdio using the MCP protocol.

Where to Use

mcp-server-sample can be used in educational settings, software development for weather applications, and as a reference for implementing MCP servers in various domains.

Use Cases

Use cases include building weather monitoring applications, integrating weather data into existing systems, and teaching concepts of server architecture and API integration.

Content