{
"mcpServers": {
"weather-mcp-server-java": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A simple weather MCP server implementation in Java
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 335 days ago. 1 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
🌱 Agricultural AI: Soil analysis, crop recommendations, weather forecasts. FREE TurboQuant.
Hierarchical markdown memory palace for AI agents — structured palace navigation via MCP tools.
Bounding box(bbox) GIS tool: coords conversion, EPSG, WKT, GeoJSON, H3, Overpass, POI, map viz
MCP server for DaData.ru — address validation, company lookup, geocoding. 31 tools.
MCP Security Weekly
Get CVE alerts and security updates for Weather Mcp Server Java and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A simple Model Context Protocol (MCP) server that provides weather information for any location.
Accompanying blog post: Building a simple MCP Server in Java.
The Model Context Protocol (MCP) is a standardized way for AI applications and agents to connect with data sources and tools. It allows AI models like Claude to interact with your local system, external services, and custom tools through a standardized interface.
This project relies on the following key components:
<dependencies>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
</dependencies>
The server uses STDIO transport mode and is typically started automatically by the client.
The first step is to clone the project:
git clone https://github.com/chrischiedo/weather-mcp-server-java.git
cd weather-mcp-server-java
To build the server jar, use:
./mvnw clean install -DskipTests
This will create a jar file in the target directory.
To run tests, use:
./mvnw test
Execute the jar file to start the MCP server:
java -jar target/weather-mcp-server-0.0.1-SNAPSHOT.jar
To integrate the MCP server with Claude Desktop, add the following configuration to your Claude Desktop config settings:
{
"mcpServers": {
"mcp-weather-server": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.stdio=true",
"-jar",
"/absolute/path/to/weather-mcp-server-0.0.1-SNAPSHOT.jar"
]
}
}
}
Note: On MacOS, the config settings file can be opened using:
vi ~/Library/Application\ Support/Claude/claude_desktop_config.json
Note: Remember to replace /absolute/path/to/ with the actual path to your built jar file.
Once connected, you can ask Claude to use the weather tool:
Note: The prompts above were issued on 4th May 2025.
This server implements the Model Context Protocol to provide a tool that fetches weather data from the wttr.in API. When Claude or another MCP client connects to this server, they can use the getWeatherDetailsByLocation tool to retrieve current weather conditions for any location.
You can extend this server by: