Skip to main content
Glama
aboomar26

MCP LangChain Weather Agent

by aboomar26

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

  1. Install dependencies:

pip install -r requirements.txt
  1. Create a .env file in the project root:

OPENROUTER_API_KEY=your_api_key_here

Related MCP server: mcp-server

Usage

Start the MCP server (runs on http://127.0.0.1:8000):

python weatherserver.py

In a second terminal, run the agent client:

python client.py

The client connects to the weather MCP server, loads the weather tool, and asks the LLM about the weather.

Files

File

Description

weatherserver.py

MCP server with a weather tool (geocoding + Open-Meteo API)

client.py

LangGraph agent that uses the MCP weather tool

requirements.txt

Python dependencies

How it works

  1. User asks a question like "what's the weather in Tokyo?"

  2. The agent calls the weather MCP tool

  3. The server geocodes the city name and fetches current weather from Open-Meteo

  4. The agent returns the result to the user

Maintenance

ActivityStale
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    28
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    A 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.
  • A
    license
    Not graded
    quality
    C
    maintenance
    A 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

Latest Blog Posts

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/aboomar26/MCP_Waether'

If you have feedback or need assistance with the MCP directory API, please join our Discord server