Back to Home
PinXian53 icon

python-mcp-server

Verified Safe

by PinXian53

Overview

This project implements a Model Context Protocol (MCP) server providing weather information tools (alerts and forecasts) via Server-Sent Events (SSE), demonstrating how AI agents can interact with external services.

Installation

Run Command
python sse-mode/weather.py

Security Notes

The server uses `httpx` to make requests to a public NWS API. Input parameters for tools (state, latitude, longitude) are used in f-strings to construct URLs, which is generally safe for the types of input expected. There are no direct `eval` or `exec` calls, nor obvious arbitrary code execution vectors. Debug mode (`debug=True`) is enabled, which is common for development but should be disabled in production to prevent exposure of sensitive information.

Similar Servers

Stats

Interest Score30
Security Score8
Cost ClassLow
Avg Tokens750
Stars1
Forks0
Last Update2025-12-15

Tags

MCPAIToolsWeatherPython