OpenAI-MCP-WeatherStack
Verified Safeby omkarwazulkar
Overview
A full-stack AI agent that retrieves real-time weather information for a specified city using OpenAI's Agents SDK and a Python-based Model Context Protocol (MCP) server.
Installation
npx ts-node express_server.tsEnvironment Variables
- OPENAI_API_KEY
Security Notes
The project uses standard libraries and frameworks. The OpenAI API key is handled via environment variables, which is a good practice. The exposed MCP tool performs a simple HTTP GET request to wttr.in, limiting direct command injection risks in the tool itself. User queries are passed directly to the Agent SDK, which relies on the SDK's internal safety mechanisms for prompt injection and tool execution. Given it's primarily designed for local development, it is generally safe, but full confidence in security would require an audit of the @openai/agents SDK.
Similar Servers
mcp-weather
Serves weather information via the Model Context Protocol (MCP) as a tool for AI agents.
mcp-weather-server
Provides real-time and forecast weather data, air quality information, and multi-city weather trend analysis via the Model Context Protocol (MCP), integrating with OpenWeather and OpenRouter APIs.
mcpinabox
Builds a Model Context Protocol (MCP) server to expose weather data as tools for AI models like OpenAI's Responses API.
MCP_Remote_Server_Demo
This server acts as a weather agent, providing real-time weather alerts and forecasts by integrating with the National Weather Service (NWS) API.