Back to Home
iZhenius icon

aigent-mcp-server

Verified Safe

by iZhenius

Overview

Provides weather forecast and alert tools via a Model Context Protocol (MCP) server, integrating with the National Weather Service API.

Installation

Run Command
java -cp build/libs/weather-stdio-server-0.1.0-all.jar io.modelcontextprotocol.sample.server.HttpMainKt --port 8080

Security Notes

The server's HTTP endpoint enables CORS for 'anyHost()', which is common for public APIs but should be noted. User-provided `latitude`, `longitude`, and `state` parameters are directly interpolated into API URLs; however, the Ktor HTTP client is expected to handle URL encoding for path segments, and input parsing (`doubleOrNull`, `jsonPrimitive?.content`) helps mitigate simple injection risks. No hardcoded secrets or 'eval' statements were found.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens600
Stars0
Forks0
Last Update2025-11-19

Tags

KotlinMCPWeather APITool ServerHTTP/STDIO