Sponsored by Deepsite.site

🌦️ MCP Weather Scraper

Created By
EXPESRaza8 months ago
A lightweight prototype demonstrating how to integrate an LLM (via OpenAI) with a Model Context Protocol (MCP) server to extract real-time weather data by scraping and processing open web content using HTML parsing and caching.
Overview

What is MCP Weather Scraper?

MCP Weather Scraper is a lightweight prototype that integrates a Large Language Model (LLM) via OpenAI with a Model Context Protocol (MCP) server to extract real-time weather data by scraping and processing open web content using HTML parsing and caching.

How to use MCP Weather Scraper?

To use MCP Weather Scraper, clone the repository, set up a virtual environment, install the dependencies, and run the server. You can then make requests to the API to fetch weather data for specific locations.

Key features of MCP Weather Scraper?

  • MCP-compliant server with weather scraping via browser search
  • Integration with OpenAI LLM (e.g., gpt-3.5-turbo)
  • FastAPI server provides weather info as callable MCP tool
  • Automatic HTML parsing using selectolax for performance
  • LLM handles unstructured web content extraction into structured schema
  • Streamlit app frontend for user interaction
  • Response caching using functools.lru_cache

Use cases of MCP Weather Scraper?

  1. Fetching real-time weather data for various locations.
  2. Integrating weather data into applications that require up-to-date information.
  3. Demonstrating the capabilities of LLMs in processing and reasoning over unstructured web data.

FAQ from MCP Weather Scraper?

  • Can MCP Weather Scraper handle multiple locations at once?

Currently, it is designed to handle one location per request, but this can be extended.

  • Is there a limit to the number of requests I can make?

The limit depends on the OpenAI API usage policies and your account's quota.

  • How accurate is the weather data provided?

The accuracy depends on the sources being scraped and the parsing logic implemented.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
Serper MCP ServerA Serper MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
ChatWiseThe second fastest AI chatbot™
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server