weather-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@weather-mcpWhat's the weather in London?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š¤ļø Weather MCP Server & Chatbot Interface for Cursor
A simple, complete Python project that implements a Model Context Protocol (MCP) Weather Server ready for Cursor IDE, paired with a Chatbot Web UI to test and converse with the weather agent.
š Features
š MCP Server (
weather_mcp_server.py): Built with FastMCP over stdio transport. Exposes weather tools to Cursor and other MCP clients.ā” Free Real-time Weather (
weather_service.py): Powered by Open-Meteo. No API keys needed. Works for any city globally.š¤ Weather Agent (
agent.py): Converts natural queries ("Weather in Tokyo", "5-day forecast for London", "Air quality in Paris") into tool invocations.š» Modern Chatbot UI (
static/&app.py): Dark-mode, glassmorphic web interface with visual weather cards, forecast tables, and tool execution badges.š Cursor Integration (
.cursor/mcp.json): Pre-configured JSON for Cursor settings.
Related MCP server: weather-mcp-server
š Project Structure
weather-mcp-chatbot/
āāā .cursor/
ā āāā mcp.json # Cursor MCP configuration
āāā weather_service.py # Free Open-Meteo weather & geocoding integration
āāā weather_mcp_server.py # MCP Server (stdio transport for Cursor)
āāā agent.py # Weather agent NLP & tool caller
āāā app.py # FastAPI web server & chat endpoint
āāā static/
ā āāā index.html # Chatbot UI
ā āāā style.css # Modern dark-mode styling
ā āāā app.js # Chatbot frontend logic
āāā test_mcp.py # Automated test suite
āāā requirements.txt # Python dependencies
āāā README.md # Documentation & quickstartš Quickstart
1. Install Dependencies
pip install -r requirements.txt2. Run the Web Chatbot UI
python app.pyOpen your browser and navigate to: http://127.0.0.1:8000
3. Run Automated Tests
python test_mcp.pyš How to Connect with Cursor
Cursor can connect directly to your Python MCP server to provide real-time weather data inside Cursor Chat / Composer.
Option A: Using .cursor/mcp.json (Recommended)
Open this project directory in Cursor:
File -> Open Folder -> weather-mcp-chatbotThe
.cursor/mcp.jsonfile inside the project is automatically detected by Cursor.
Option B: Add in Cursor Settings
In Cursor, open Settings (
Ctrl + ,orCmd + ,).Go to Features -> MCP Servers.
Click Add New MCP Server:
Name:
weatherType:
command(stdio)Command:
python C:\Users\admin\.gemini\antigravity\scratch\weather-mcp-chatbot\weather_mcp_server.py
Click Save and verify the green status indicator.
Using in Cursor Chat:
In Cursor Composer or Chat, you can now ask:
"What is the current weather in Tokyo?"
"Check the 5-day forecast for Berlin using @weather"
"What is the air quality in Paris?"
Cursor will call the MCP tools (get_current_weather, get_weather_forecast, get_air_quality) to fetch live data!
š ļø MCP Tools Exposed
Tool Name | Parameters | Description |
|
| Real-time temperature, condition, humidity, wind speed, pressure |
|
| Multi-day forecast with daily high/lows and rain probabilities |
|
| Air Quality Index (US & EU AQI), PM2.5, PM10, Ozone levels |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents like GitHub Copilot to retrieve real-time weather data for any city using the Open-Meteo API, no API key required.9
- AlicenseAqualityCmaintenanceProvides real-time weather and forecast data via MCP tools, enabling AI agents to query current weather and up to 3-day forecasts for any city.3MIT
- FlicenseNot gradedqualityBmaintenanceEnables querying current weather, 7-day forecast, UV index, and air quality for any city using the free Open-Meteo API, without requiring an API key.15
- AlicenseNot gradedqualityBmaintenanceProvides weather data including current conditions, forecasts, and summaries via Open-Meteo with no API key required, enabling natural language queries through an MCP interface.MIT
Related MCP Connectors
Air Quality MCP ā wraps air-quality-api.open-meteo.com (free, no auth)
OpenWeather MCP ā wraps the OpenWeatherMap API (openweathermap.org)
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nateksharma4698-oss/weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server