Exemplo de Servidor MCP
@renanpk
About Exemplo de Servidor MCP
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-sample-main": {
"command": "node",
"args": [
"build/main.js"
]
}
}
}Tools
No tools detected
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
FAQ from Exemplo de Servidor MCP
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).
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.
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.
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.
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.
Frequently asked questions
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).
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.
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.
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.
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.
Basic information
More Other MCP servers
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
ICSS
chokcoco不止于 CSS
Website
FunnyWolfAdversary simulation and Red teaming platform with AI
Awesome Mlops
visengerA curated list of references for MLOps
Comments