python-mcp-server
Verified Safeby 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
python sse-mode/weather.pySecurity 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
fastchat-mcp
A Python client for integrating Language Models with Model Context Protocol (MCP) servers, allowing natural language interaction with external tools, resources, and prompts.
mcp-server-ch5
This server demonstrates a basic Model Context Protocol (MCP) server exposing simple utility tools (greeting, arithmetic, server info) over standard I/O (stdio).
test-mcp-server
This server acts as an expense tracker, allowing users to add, list, and summarize personal financial expenses using a local SQLite database.
mcp-server
Provides a command-line interface (CLI) based server built with a Python SDK, likely for a custom 'mcp' protocol or service.