mcp-server-template-rust
Verified Safeby vicsante-aseniero
Overview
This server provides weather alerts and forecasts via the Model Context Protocol (MCP) using HTTP transport, serving as a template for building MCP servers in Rust.
Installation
cargo runEnvironment Variables
- RUST_LOG
Security Notes
The server uses `CorsLayer::permissive()` which allows requests from any origin, posing a significant security risk for production environments. There is no built-in authentication or rate limiting. These issues are explicitly noted in the project's `ANALYSIS.md` as areas for improvement. However, Rust's memory safety and type safety mitigate many common vulnerabilities, and there are no signs of 'eval', obfuscation, hardcoded secrets, or malicious patterns in the code.
Similar Servers
Weather-MCP-Server
Provides comprehensive weather information and tools via a Model Context Protocol (MCP) server using FastMCP and WeatherAPI.com.
WeatherMCP
A simple Model Context Protocol (MCP) server for fetching live weather alerts and forecasts from the U.S. National Weather Service (NWS) API.
mcp-weather-server
Provides real-time and forecast weather data, air quality information, and multi-city weather trend analysis via the Model Context Protocol (MCP), integrating with OpenWeather and OpenRouter APIs.
weather-mcp-server
Provide current weather information for cities via an MCP server.