MCP LangChain Weather Agent
Click on "Deploy 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., "@MCP LangChain Weather Agentwhat's the weather in Tokyo?"
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.
MCP LangChain Weather Agent
A simple weather MCP server connected to a LangGraph agent. The agent calls the weather tool to fetch live weather for any city.
Setup
Install dependencies:
pip install -r requirements.txtCreate a
.envfile in the project root:
OPENROUTER_API_KEY=your_api_key_hereRelated MCP server: mcp-server
Usage
Start the MCP server (runs on http://127.0.0.1:8000):
python weatherserver.pyIn a second terminal, run the agent client:
python client.pyThe client connects to the weather MCP server, loads the weather tool, and asks the LLM about the weather.
Files
File | Description |
| MCP server with a |
| LangGraph agent that uses the MCP weather tool |
| Python dependencies |
How it works
User asks a question like "what's the weather in Tokyo?"
The agent calls the
weatherMCP toolThe server geocodes the city name and fetches current weather from Open-Meteo
The agent returns the result to the user
Related MCP Connectors
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA MCP server for querying real-time weather information for any city worldwide using the free Open-Meteo API, supporting CLI and integration with AI clients like Claude and Cursor.15 npmMIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides weather and web search tools, orchestrated by a LangGraph agent with OpenAI for natural language interaction.8-
- FlicenseNot gradedqualityDmaintenanceA proof-of-concept MCP server that provides weather information using the Open-Meteo API, with tools for greeting, getting weather by coordinates, and by location name.-
- AlicenseNot gradedqualityCmaintenanceA no-API-key-required MCP server that wraps Open-Meteo APIs to provide geocoding and weather forecast data, enabling city lookups and multi-day forecasts through tools, resources, and prompts.MIT