Back to Home
acamit icon

ModelContextProtocolDemo

Verified Safe

by acamit

Overview

This server provides weather alerts and forecasts by integrating with the National Weather Service (NWS) API, acting as a tool for an MCP agent.

Installation

Run Command
python Server/weather.py

Security Notes

The server makes external HTTP requests to a known public API (api.weather.gov) using `httpx`. No 'eval' or other highly dangerous patterns are present. Arguments to `mcp.tool()` functions are directly used in f-strings for URL construction, which could be a minor theoretical risk if a malicious MCP host were to inject arbitrary strings. However, for the NWS API context, this risk is minimal and unlikely to lead to severe vulnerabilities beyond malformed requests. No hardcoded secrets or sensitive credentials were found. Logging is appropriately configured to `sys.stderr`.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens400
Stars0
Forks0
Last Update2025-11-27

Tags

WeatherAPI IntegrationMCPPythonForecast