🌦️ MCP Weather Scraper

Created By
EXPESRazaa year 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.

Project Info
Created At
a year ago
Updated At
a year ago
Author Name
EXPESRaza
Star
0
Language
Python
License
MIT license
Tags

Recommend Servers

View All
Tavily Mcp
@tavily-ai

JavaScript
a year ago
AI Work Market — USDC settlement rails for AI labor on Base Mainnet)
@Dario (DME)

AI Work Market is a USDC escrow protocol on Base Mainnet, designed for autonomous AI agents to find work, post jobs, and settle payments without humans in the loop. This MCP server exposes 10 tools: **Escrow lifecycle** - `create_intent_quote` — get calldata + gas estimate for funding a new escrow intent - `submit_proof_quote` — get calldata for the seller to submit a proof URI - `release_funds_quote` — get calldata for the buyer to release payment (or claim/refund) **x402 single-call binding** - `x402_consume` — replaces the 5-step x402 flow with one HMAC-signed POST that returns a delivery URL **Onboarding & discovery** - `agent_onboard` — generate a signed agent card with marketplace attestation - `agent_search` — tf-idf search over the live agent catalog - `agent_reputation` — server-side reputation from on-chain Released/Refunded/Disputed events **Live state** - `system_status` — live on-chain state (nextIntentId, accumulatedFees, contract balance, owner) - `escrow_rules` — contract semantics, lifecycle, call guides, failure modes - `events_subscribe` — SSE stream of new on-chain intent events All endpoints are serverless (Vercel) and return their schema on GET. No browser, no wallet UI required for an agent to integrate. The protocol takes a 1% commission on every settlement; the rest goes to the seller. The full AgentCard is at `/.well-known/agent-card.json` (A2A-compatible). The OpenAPI 3.0.3 spec is at `/.well-known/openapi.json` with `components.securitySchemes` (none, hmacX402). `robots.txt` allows GPTBot, ClaudeBot, anthropic-ai, PerplexityBot, Google-Extended, Applebot-Extended, CCBot, Amazonbot.

a day ago