1. Conduid
  2. Maps
  3. Weather MCP Server Java
MCP server · Maps

Weather MCP Server Java

MCP server for kotlin

Unclaimed maps
34Low

Scored 11 days ago · breakdown

About Weather MCP Server Java

Weather MCP Server Java is an MCP server in the Maps category: mCP server for kotlin.

Install

From source
git clone https://github.com/chrischiedo/weather-mcp-server-java

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Weather MCP Server Java

Powered by Claude · Grounded in docs

I know everything about Weather MCP Server Java. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Weather Server - Java implementation

A simple Model Context Protocol (MCP) server that provides weather information for any location.

Accompanying blog post: Building a simple MCP Server in Java.

What is MCP?

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.

Project Features

  • Get current weather information for any location
  • Compatible with Claude Desktop and other MCP clients
  • Uses the free wttr.in weather API (no API key required)

Project Requirements

  • Java 17 or later
  • Maven 3.6 or later
  • Spring Boot 3.3.x or later
  • Claude for Desktop for AI assistant integration (used as an MCP Client)

Dependencies

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>

Building and Running

The server uses STDIO transport mode and is typically started automatically by the client.

Clone the repository

The first step is to clone the project:

git clone https://github.com/chrischiedo/weather-mcp-server-java.git
cd weather-mcp-server-java

Build the project

To build the server jar, use:

./mvnw clean install -DskipTests

This will create a jar file in the target directory.

Run tests

To run tests, use:

./mvnw test

Usage

Running the server

Execute the jar file to start the MCP server:

java -jar target/weather-mcp-server-0.0.1-SNAPSHOT.jar

Claude Desktop Integration

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.

Example prompts for Claude Desktop

Once connected, you can ask Claude to use the weather tool:

Note: The prompts above were issued on 4th May 2025.

How it works

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.

Extending the server

You can extend this server by:

  1. Adding more weather-related tools (forecasts, alerts, historical data, etc.)
  2. Implementing other MCP capabilities like resources or prompts
  3. Using a different weather API with more features (for example, wunderground)

License

This project is open source and available under the MIT License.

Further Resources

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Weather MCP Server Java

How do I install Weather MCP Server Java?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Weather MCP Server Java safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Weather MCP Server Java still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.