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
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).
mcp_server_test
This server provides a weather forecasting tool that fetches current and hourly weather data for specified geographical coordinates.
nyt_mcp
This server provides a Model Context Protocol (MCP) interface for searching New York Times articles, intended for integration with MCP clients like Claude Desktop, potentially for saving results to spreadsheets.