MCP ExplorerExplorer

Qweatherapi Mcp

@dwdcthon 9 months ago
2 MIT
FreeCommunity
AI Systems
# qweatherapi_mcp qweatherapi_mcp provides real-time weather data and uses JWT (JSON Web Token) authentication.

Overview

What is Qweatherapi Mcp

qweatherapi_mcp is a weather service API built using Go language, which provides real-time weather data. It requires registration with QWeather and the creation of a project and API using JWT format for authentication.

Use cases

Use cases for qweatherapi_mcp include integrating weather data into applications for travel planning, event management, and any scenario where weather conditions impact decision-making.

How to use

To use qweatherapi_mcp, you need to register on the QWeather platform, create a project, and set up an API with the necessary JWT configuration. You can run the service in either SSE mode or stdio mode using the provided Go commands.

Key features

Key features of qweatherapi_mcp include real-time weather data retrieval and the ability to run in different modes (SSE and stdio). The service is designed primarily for validation purposes.

Where to use

qweatherapi_mcp can be used in various fields such as mobile applications, web applications, and any software that requires real-time weather information.

Content

和风天气 go mcp

需要注册和风天气,新建一个项目,新建一个api,使用jwt格式。配置如下

# 天气服务配置
WEATHER:
  # 参考 https://dev.qweather.com/docs/configuration/authentication/
  privateKey: |
    -----BEGIN PRIVATE KEY-----
    -----END PRIVATE KEY-----
  baseURL: "" # 参考 https://dev.qweather.com/docs/configuration/api-config/#api-host
  sub: "" # 项目ID在控制台-项目管理中查看
  kid: "" # 凭据ID,在控制台-项目管理中查看

运行

  • sse 模式 go run weather.go -t sse -p 端口 默认 8013
  • stdio 模式 go run weather.go

功能

  • 实时天气

其它接口懒得做了,主要为了验证

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers