Qweather
FreeNot checkedThis project is an MCP (Model Context Protocol) server for the QWeather API. It supports both standard API Key authentication and JWT-based authentication. / 本项
About
This project is an MCP (Model Context Protocol) server for the QWeather API. It supports both standard API Key authentication and JWT-based authentication. / 本项目是一个针对和风天气 API 的 MCP (Model Context Protocol) 服务器,支持标准的 API Key 认证以及 JWT 认证。
README
This project is an MCP (Model Context Protocol) server for the QWeather API. The API tools were generated from the provided openapi.yml file with the help from Gemini and supports both standard API Key authentication and JWT-based authentication for specific endpoints.
Features
- Flexible Authentication: Prioritizes JWT authentication if configured. Falls back to API Key if JWT is not available.
- Environment-based Configuration: All sensitive data and settings are managed via a
.envfile. - Deployment Ready: Includes configurations for easy deployment using both
uvandDocker.
English Instructions
Prerequisites
- Python 3.11+
uv(orpip) for package management- Docker and Docker Compose (for containerized deployment)
Configuration
Copy the example environment file:
cp .env.example .envEdit the
.envfile:QWEATHER_API_KEY: Your standard API key from the QWeather Console.- For JWT authentication (Recommend):
- Go to Authentication | QWeather Developers to understand how to get your credentials.
QWEATHER_JWT_SUB: Your Project ID (sub).QWEATHER_JWT_KID: Your Credential ID (kid).QWEATHER_JWT_PRIVATE_KEY_PATH: The path to your Ed25519 private key file (e.g.,./ed25519-private.pem). Make sure this file is present in the project directory.
Running with uv (Recommended for Development Environment)
Install dependencies by
uv sync:uv syncRun the server using the 'start' script:
uv run ./main.pyThe server will be available at
http://localhost:8000.
Running with Docker
- Build and run the container:
The server will be available atdocker-compose up --buildhttp://localhost:8000(or the port you specified indocker-compose.yml).
中文说明
项目简介
本项目是一个针对和风天气 API 的 MCP (Model Context Protocol) 服务器。它在 Gemini 的帮助下由项目中的 openapi.yml 文件生成而来,并支持标准的 API Key 认证以及针对特定接口的 JWT 认证。
功能特性
- 灵活的认证机制: 如果配置了 JWT,则优先使用 JWT 进行认证。如果 JWT 未配置,则自动回退到使用 API Key。
- 环境变量配置: 所有敏感数据和配置均通过
.env文件管理。 - 易于部署: 提供了使用
uv和Docker两种方式的部署配置。
环境准备
- Python 3.11+
uv(或pip) 用于包管理- Docker 和 Docker Compose (用于容器化部署)
配置步骤
复制环境变量文件范例:
cp .env.example .env编辑
.env文件:QWEATHER_API_KEY: 你在 和风天气控制台 获取的标准 API Key。- 对于 JWT 认证 (推荐使用):
- 请参考 身份认证 | 和风天气开发服务 来获取认证所需信息。
QWEATHER_JWT_SUB: 你的项目 ID (sub)。QWEATHER_JWT_KID: 你的凭据 ID (kid)。QWEATHER_JWT_PRIVATE_KEY_PATH: 你的 Ed25519 私钥文件路径 (例如./ed25519-private.pem)。请确保该文件存在于项目目录中。
使用 uv 运行 (推荐开发环境使用)
使用
uv sync安装依赖:uv sync使用 'start' 脚本运行服务器:
uv run ./main.py服务器将在
http://localhost:8000上可用。
使用 Docker 运行
- 构建并运行容器:
服务器将在docker-compose up --buildhttp://localhost:8000(或你在docker-compose.yml文件中指定的端口) 上可用。
Install Qweather in Claude Desktop, Claude Code & Cursor
unyly install qweatherInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add qweather -- uvx qweather-mcp-serverStep-by-step: how to install Qweather
FAQ
Is Qweather MCP free?
Yes, Qweather MCP is free — one-click install via Unyly at no cost.
Does Qweather need an API key?
No, Qweather runs without API keys or environment variables.
Is Qweather hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Qweather in Claude Desktop, Claude Code or Cursor?
Open Qweather on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Qweather with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
