Connects to the AccuWeather API to pull live weather data into your Claude sessions. Built with Spring Boot and packaged as both a JAR and Docker container, it exposes MCP tools for location lookups and current conditions. You'll need an AccuWeather API key to run it. The implementation follows semantic versioning with conventional commits and includes Spotless formatting plus Checkstyle rules. Good fit if you're already working with AccuWeather data and want to query forecasts or conditions without leaving your AI workflow. The author notes future plans for caching based on API expiry headers and support for metric unit preferences.
export ACCUWEATHER_API_KEY=replace-with-your-api-key
application-local.yaml in src/main/resources/application.yaml with the following content:logging:
console:
enabled: true
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:
./gradlew build
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:
npx @modelcontextprotocol/inspector -e 'JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005' java -jar "build/libs/accuweather-mcp-local-snapshot.jar"
This was sourced from this blog.
{
"mcpServers": {
"accuweather-mcp": {
"command": "PATH_TO_JAVA",
"args": ["-jar", "ABSOLUTE_PATH_TO_REPO/build/libs/accuweather-mcp-local-snapshot.jar"],
"env": {
"ACCUWEATHER_API_KEY": "API_KEY"
}
}
}
}
If you are using SDKMAN, command should be ~/.sdkman/candidates/java/current/bin/java
This was sourced from the MCP docs.
Example user prompt:
Use the accuweather-mcp to look up the current weather in Manchester, UK.
This project uses the Jib Gradle plugin to build a Docker image.
./gradlew jibDockerBuild
The default image name is jonjam/accuweather-mcp.
To use the docker image with MCP Inspector, the command looks as follows:
npx @modelcontextprotocol/inspector docker run --rm -i --env "ACCUWEATHER_API_KEY=$ACCUWEATHER_API_KEY" jonjam/accuweather-mcp:latest
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.
ACCUWEATHER_API_KEY*secretAccuWeather API key
com.mcparmory/google-sheets
domdomegg/google-sheets-mcp
henilcalagiya/google-sheets-mcp
cct15/war-dashboard-data
moooonad/mcp-google-sheets-full
io.github.br0ski777/csv-to-json