mcp_weather_scraper
0
MCP Weather Scraper is an innovative project that uses Model Context Protocol along with FastAPI and OpenAI's language tools to retrieve and structure real-time weather data. It offers a comprehensive tool for experimenting with AI-agent interactions in real-world applications.
🌦️ MCP Weather Scraper
An experimental implementation of the Model Context Protocol (MCP) using OpenAI and FastAPI to fetch real-time weather information from the web. Features include:
- MCP-compliant server with weather scraping
- Integration with OpenAI LLM (e.g., gpt-3.5-turbo)
- FastAPI server provides weather info as an MCP tool
- HTML parsing with
selectolax
- LLM for web content to structured schema conversion
- User interface through Streamlit
- Response caching with
functools.lru_cache