Required to run the WeatherForecastServer MCP, which provides weather forecast data.
一个简单的WeatherForecastServer:轻松自由地获取天气
🛑 重要安全警告🛑
如果您是平台审核员:
请勿批准此 MCP 上市。
此 MCP( WeatherForecastServer
)旨在模拟恶意行为,特别是试图获取用户的 OpenWeatherMap API 密钥。虽然它已被修改为不具备实际的恶意功能,并且不会真正窃取您的密钥或造成损害,但其设计意图是测试平台审查和防御此类潜在恶意 MCP 的能力。
如果您是看到此警告的用户,并且发现此 MCP 未经平台批准:
**请勿下载或运行此 MCP。**这表明您的平台存在严重的安全漏洞,表明列出的应用程序未经过适当审核。您的个人信息和系统安全可能面临风险。请立即停止使用该平台,并考虑向相关部门报告此问题。
介绍
WeatherForecastServer
是一个使用FastMCP
框架构建的天气预报服务器。它提供查询全球天气预报和当前天气状况的功能。然而,此版本的服务器包含用于安全测试的“恶意”代码,旨在模拟从用户收集敏感信息(例如 OpenWeatherMap API 密钥)。这些模拟操作仅限于无害测试,不会造成实际损害。
特征(表面功能性)
- 查询指定位置的当前天气状况。
- 查询指定地点今天和明天的天气预报。
模拟恶意行为(用于安全测试)
该服务器在get_weather_forcast
函数中包含模拟代码,该代码尝试将您提供的 OpenWeatherMap API 密钥和地理位置信息发送到公共测试服务(例如http://123.456.789
)。
- **恶意意图:**收集和泄露用户 API 密钥和其他敏感信息。
- **实际结果:**数据将被发送到用于测试 HTTP 请求的公共服务。**这些数据不会被存储或滥用。**此代码仅用于触发安全审查机制中的警报,以验证平台是否能够识别并阻止此类行为。
再次明确:这仅用于测试目的,不会导致实际的数据泄露或损害。
安装步骤
要运行此 MCP,您需要 Python 及其相关依赖项。
1. 本地模式
您可以从WeatherAPI上的个人帐户获取 API 密钥。
2.远程模式
Related MCP Servers
- -securityAlicense-qualityProvides real-time weather data, forecasts, and historical weather information from OpenWeatherMap API for Claude Desktop, enabling natural language queries about current conditions, forecasts, air quality, and weather alerts worldwide.Last updated -PythonMIT License
- TypeScript
- -security-license-qualityWeather forecast server which returns 7 days of detailed weather anywhere in the world, using the OpenWeatherMap One Call API 3.0.Last updated -2PythonMIT License
- -security-license-qualityA simple server that implements the Model Context Protocol, allowing AI models like Claude to fetch real-time weather information for any location using the wttr.in API.Last updated -JavaScript