Weather Service MCP Server
A Spring Boot-based weather service providing weather forecasts and alerts via MCP integration.
MCP-Server
Weather Service MCP Server
A Spring Boot-based weather service that provides weather forecasts and alerts through Model Context Protocol (MCP) integration. This service currently uses the U.S. National Weather Service API to fetch weather data.
Features
- Get detailed weather forecasts by latitude/longitude
- Retrieve weather alerts for US states
- MCP server integration for Cursor IDE
- Temperature, wind, and detailed forecast information
- Error handling for invalid locations
Prerequisites
- Java 21 or higher
- Maven 3.6 or higher
- Cursor IDE (for MCP integration)
Setup Instructions
-
Clone the Repository
git clone https://github.com/Ahmed-Naseer-01/MCP-Server.git cd Weather-server -
Set Java 21
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home -
Build the Project
./mvnw clean package -DskipTests -
Configure MCP Server Go to Cursor setting->MCP Tools->mcp.json(create this file) Create or update
~/.cursor/mcp.json:{ "mcpServers": { "spring-ai-mcp-weather": { "command": "java", "args": [ "-Dspring.ai.mcp.server.stdio=true", "-jar", "/path/to/your/Weather-server/target/Weather-server-0.0.1-SNAPSHOT.jar" ] } } }Replace
/path/to/yourwith your actual project path.
Limitations
- Currently only supports US locations through the National Weather Service API
- Alerts are only available for US states
- All temperatures are in Fahrenheit
Похожие серверы
MCP Weather Server
Provides real-time weather information and forecasts using the OpenWeatherMap API.
norikae-mcp
🚃 乗換案内MCP - 乗り換え検索 / Norikae MCP - Japanese train route search using Yahoo! Transit
OSINT MCP
Real-time OSINT intelligence platform for global security monitoring.
FRITZ!Box MCP Server
Control AVM FRITZ!Box routers - manage devices, WiFi, network settings, parental controls, and schedule time-delayed actions
Ecovacs Robot Control
Control and query the status of Ecovacs cleaning robots using the MCP protocol.
渠道洞察服务
Provides sales channel analysis, including distribution, dealer networks, and coverage, to help understand enterprise channel layouts.
Send247 Human Logistics
Human Logistics in the AI Layer
Currency And Oil
Zenrus MCP Server 是一个提供实时货币汇率和石油价格的服务器,支持多种计算功能,适用于金融分析和自动化工具集成。
Minesweeper MCP Server
An MCP server that allows client agents to play the game of Minesweeper.
root-mcp
MCP server for ROOT CERN files