Feedback

Exemplo de Servidor MCP — by renanpk

@renanpk Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
renanpk
Submitted by
Community
Quality
10

About Exemplo de Servidor MCP Server

# Exemplo de Servidor MCP

Exemplo de Servidor MCP is a MCP server in the Other category listed in the AddMCP.net directory, published by renanpk. Supported transport: stdio. Runtime: node. Source code is hosted on github.com. Related topics: mcp-server, nodejs, weather-api.

Setup

{
    "mcpServers": {
        "mcp-server-sample-main": {
            "command": "node",
            "args": [
                "build/main.js"
            ]
        }
    }
}

Exemplo de Servidor MCP — by renanpk config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mcp-server-sample-main": {
            "command": "node",
            "args": [
                "build/main.js"
            ]
        }
    }
}

Exemplo de Servidor MCP — by renanpk tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Exemplo de Servidor MCP?

Exemplo de Servidor MCP is an educational implementation of a Model Context Protocol server built with Node.js/TypeScript. It provides two weather information tools using the US National Weather Service (NWS) API, and is designed for learning MCP server development.

How to use Exemplo de Servidor MCP?

Clone the repository, run npm install, then npm run build. Execute the server with node build/main.js or link it as a binary via npm link and run weather. The server communicates over stdio and waits for MCP requests.

Key features of Exemplo de Servidor MCP

  • Two weather tools: get-alerts and get-forecast
  • Input validation using Zod
  • Integration with the US National Weather Service API
  • Communication via stdio using the MCP SDK
  • Layered architecture inspired by Domain-Driven Design

Use cases of Exemplo de Servidor MCP

  • Learning how to build an MCP server from scratch
  • Fetching active weather alerts for a US state
  • Obtaining weather forecasts for given geographic coordinates
  • Demonstrating layered architecture (domain, infrastructure, application, interface)
  • Practicing data validation and external API integration with MCP

Frequently asked questions

1 What tools does Exemplo de Servidor MCP provide?

It provides two tools: get-alerts (returns active weather alerts for a US state by two-letter code) and get-forecast (returns weather forecast for given latitude/longitude).

2 How do I install and run Exemplo de Servidor MCP?

Clone the repository, run npm install, then npm run build. Start the server with node build/main.js. Optionally, use npm link to run it as the weather command.

3 What dependencies does Exemplo de Servidor MCP require?

The server uses Node.js, the @modelcontextprotocol/sdk for MCP communication, and Zod for input validation. External API calls are made via the built-in fetch function.

4 What architecture does Exemplo de Servidor MCP follow?

It follows a Domain-Driven Design layered architecture with separate folders for domain models, infrastructure services (NWS API calls), application logic (WeatherService), interface controllers (tool registration and validation), and a main entry point.

5 How does Exemplo de Servidor MCP communicate?

It communicates over stdio (standard input/output) using the MCP protocol. The server listens for requests on stdin and writes responses to stdout.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬