LangChain Weather Agent
БесплатноНе проверенA weather MCP server that geocodes city names and fetches live weather from Open-Meteo, enabling a LangGraph agent to answer weather queries.
Описание
A weather MCP server that geocodes city names and fetches live weather from Open-Meteo, enabling a LangGraph agent to answer weather queries.
README
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.txt
- Create a
.envfile in the project root:
OPENROUTER_API_KEY=your_api_key_here
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
- User asks a question like "what's the weather in Tokyo?"
- The agent calls the
weatherMCP tool - The server geocodes the city name and fetches current weather from Open-Meteo
- The agent returns the result to the user
Установка LangChain Weather Agent
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/aboomar26/MCP_WaetherFAQ
LangChain Weather Agent MCP бесплатный?
Да, LangChain Weather Agent MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для LangChain Weather Agent?
Нет, LangChain Weather Agent работает без API-ключей и переменных окружения.
LangChain Weather Agent — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить LangChain Weather Agent в Claude Desktop, Claude Code или Cursor?
Открой LangChain Weather Agent на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare LangChain Weather Agent with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
