prk-mcp-weather-matcher
Verified Safeby rkumarus040599
Overview
This project demonstrates converting a function to an MCP server, integrating it with an MCP client like Claude Code Desktop to fetch weather information.
Installation
mcp dev main.pySecurity Notes
The code properly sanitizes user input (location) using `strip()`, `replace()`, and `urllib.parse.quote()` before constructing the URL for the external API call, significantly reducing URL injection risks. No 'eval' or similar dangerous patterns were found. The use of `urllib.request` is standard. No hardcoded secrets were identified in the provided code.
Similar Servers
weather-mcp-server
This server provides a tool for Large Language Models (LLMs) to query real-time weather information for specified locations using the AMap API.
MCP-Server-Building
This project provides a lightweight Python MCP server for Claude Desktop to retrieve weather alerts and forecasts from the National Weather Service API.
weather
This server provides weather information by integrating with an external LLM (like Claude) as a tool within the Model Context Protocol (MCP).
Weather_MCP_Server
Provides current weather, forecast, and severe weather alerts for supported cities to Claude Desktop via the Model Context Protocol (MCP).