
AccuWeather MCP
io.github.JonJam由 GitHub 账号 JonJam 发布v1.4.11更新于 Oct 24, 2026
MCP server providing weather tools with data sourced from AccuWeather.
概览
一个 MCP 服务器,为助手提供基于 AccuWeather 数据的天气工具,例如当前天气和预报。
- 可以做什么
- 提供数据来自 AccuWeather 的天气工具,让助手可以按需查询天气信息。README 中给出了查询某地当前天气的示例提示。清单中没有列出具体工具名称及其参数。
- 适用场景
- 当你想让助手在对话中使用 AccuWeather 数据回答天气问题时,值得添加。它是仅限桌面的本地服务器,适合在自己的机器上运行 Claude Desktop 或 Cursor 等 MCP 客户端的用户。
- 运行要求
- 以 Java 进程(jar 包或已发布的 Docker 镜像)通过 stdio 在本地运行。需要 AccuWeather API 密钥,通过环境变量 ACCUWEATHER_API_KEY 提供,并需要网络访问以连接 AccuWeather API。
安装
在 SourceWeft 中
- 打开 控制台中的 AccuWeather MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
accuweather-mcp
Setup
- Define the following environment variables in your system
- Define a
application-local.yamlinsrc/main/resources/application.yamlwith the following content:
- If using Cursor, add the following documentation sources:
- Spring AI documentation
- [Wiremock documentation][https://wiremock.org/docs/]
- [Lombok documentation][https://projectlombok.org/features/]
- PIT documentation
- gradle-pitest-plugin documentation
Run
- Run with
SPRING_PROFILES_ACTIVE=local ./gradlew bootRun
Testing
Note: 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 testing
Unit and integration tests use mockito and wiremock. To run the tests, use:
Mutation testing
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 overcom.jonjam.accuweathermcp.*(excluding DTOs and the bootstrap class).- Open
build/reports/pitest/index.htmlto review results. Surviving mutants indicate code that is executed by tests but where a fault would not be caught.
MCP Inspector
To test with MCP Inspector, run the following from the root of the repo:
This was sourced from this blog.
AI chat (Claude, Cursor)
- Add this configuration to the MCP settings:
If you are using SDKMAN, command should be ~/.sdkman/candidates/java/current/bin/java
This was sourced from the MCP docs.
Example user prompt:
Docker
This project uses the Jib Gradle plugin to build a Docker image.
- Build and load the image into your local Docker daemon:
The default image name is jonjam/accuweather-mcp.
To use the docker image with MCP Inspector, the command looks as follows:
Patterns and practies
More information about patterns and practises for this project can be found in AGENTS.md.
Git
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 calculation
Spotless
This 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.
Checkstyle
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.
MCP
- Tools Ensure to handle errors (i.e. validation) according to the specification
MCP Registry
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.
Future improvements
- Improve error handling in gateway classes based upon AccuWeather status codes
- Add in-memory caching for AccuWeather API calls that caches data according to expires header
- Add ability to specify desired metric (i.e. Celsius or Fahrenheit) in Tools
- End to end integration tests based on Spring AI Examples
来源:README.md,提交 84f01a1
工具
0版本历史
1- v1.4.11最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分