MCP server providing weather tools with data sourced from AccuWeather.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
application-local.yaml in src/main/resources/application.yaml with the following content:SPRING_PROFILES_ACTIVE=local ./gradlew bootRunNote: If you enable the Java debugger, it will produce output to standard out which will trigger errors in the stdio MCP protocol.
Unit and integration tests use mockito and wiremock. To run the tests, use:
This project uses PIT mutation testing via the gradle-pitest-plugin to verify that tests detect injected faults, complementing JaCoCo line coverage.
./gradlew pitest β run mutation tests over com.jonjam.accuweathermcp.* (excluding DTOs and the bootstrap class).build/reports/pitest/index.html to review results. Surviving mutants indicate code that is executed by tests but where a fault would not be caught.To test with MCP Inspector, run the following from the root of the repo:
This was sourced from this blog.
If you are using SDKMAN, command should be ~/.sdkman/candidates/java/current/bin/java
This was sourced from the MCP docs.
Example user prompt:
This project uses the Jib Gradle plugin to build a Docker image.
The default image name is jonjam/accuweather-mcp.
To use the docker image with MCP Inspector, the command looks as follows:
More information about patterns and practises for this project can be found in AGENTS.md.
This project uses semantic-release to automate versioning, changelog generation, and publishing.
Important: Commit messages that are intended to trigger a release must be prefixed according to the Conventional Commits standard. For example:
feat: add new forecast endpointfix: correct hourly forecast time calculationThis project uses the Spotless Gradle plugin to enforce a consistent Java style.
./gradlew spotlessApply β format sources and fix style issues../gradlew spotlessCheck β verify formatting without changing files.Static analysis and broader code-quality checks are handled by Checkstyle using a Google-style-based configuration (with formatting delegated to Spotless):
./gradlew checkstyleMain β run Checkstyle over main sources../gradlew checkstyleTest β run Checkstyle over test sources.This server is published to the MCP Registry.
When using an MCP client that supports the registry (e.g. Cursor, Claude Desktop), you can add io.github.jonjam/accuweather-mcp from the registry and configure your AccuWeather API key as the ACCUWEATHER_API_KEY environment variable.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/accuweather-mcp)<a href="https://allmcps.com/mcp/accuweather-mcp"><img src="https://allmcps.com/api/badge/accuweather-mcp?style=directory" alt="AccuWeather MCP on AllMCPs" /></a>