MCP Weather Application (Client-Server)
@RoystonDAlmeida
关于 MCP Weather Application (Client-Server)
This repository contains files for building an MCP server for weather tasks.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-weather-server-roystondalmeida": {
"command": "uv",
"args": [
"run",
"client.py",
"../weather/weather.py"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Weather Application (Client-Server)?
The MCP Weather Application is a client-server system built with the MCP framework. The server fetches weather data from the National Weather Service (NWS) API via two tools (get_alerts, get_forecast), while the client uses LangChain with the Groq API (Llama 3 model) to process natural language queries and invoke those tools as needed.
How to use MCP Weather Application (Client-Server)?
Detailed setup instructions, including dependency installation and API key configuration, are in each component’s README (weather/README.md, mcp-client/README.md). To run the client and automatically start the server, execute uv run client.py ../weather/weather.py from the mcp-client/ directory. The client connects to the server via stdio.
Key features of MCP Weather Application (Client-Server)
- Two MCP tools:
get_alertsandget_forecast - Fetches live data from the National Weather Service API
- Client uses LangChain and Groq for natural language understanding
- Full client-server architecture with stdio MCP transport
- Automatically selects and invokes the correct weather tool
Use cases of MCP Weather Application (Client-Server)
- Ask for current weather alerts for a given US state
- Request a detailed forecast for a specific latitude/longitude
- Use natural language to get weather information without coding
- Demonstrate MCP client-server interaction with an LLM orchestrator
FAQ from MCP Weather Application (Client-Server)
What tools does the server provide?
The server exposes two tools: get_alerts (for weather alerts by state) and get_forecast (for a forecast at given coordinates).
Which API does the server use?
It uses the National Weather Service (NWS) API to fetch weather alerts and forecasts.
What LLM powers the client’s natural language understanding?
The client uses Groq’s Llama 3 model via LangChain to interpret user queries and decide when to call a server tool.
How does
媒体与设计 分类下的更多 MCP 服务器
Image-Gen-Server
fengin一个能与Cursor集成的图片生成mcp server工具,实现调用即梦逆向接口
Figma MCP Server
thirdstrandstudioFigma MCP Server with full API functionality
Weather API MCP Server
TuanKiriA lightweight Model Context Protocol (MCP) server that enables AI assistants like Claude to retrieve and interpret real-time weather data. Discuss on Hacker News:
NS Travel Information MCP Server
r-huijtsA Model Context Protocol (MCP) server that provides access to NS (Dutch Railways) travel information through Claude AI. This server enables Claude to fetch real-time train travel information and disruptions using the official Dutch NS API.
百度地图 MCP Server
baidu-mapsBaidu Map MCP Server
评论