Introduction¶
In DeepSeek Harness (DSH) or other tool-calling Agents, when a model answers “will it rain today” or “what’s the PM2.5 level” based on training data, it often lacks real-time locations and values. Connecting to commercial weather APIs yourself requires applying for keys and maintaining SDKs. Below is a community plugin dsh-plugin-weather (maintained by whaoran1018-cmd) that pulls current conditions and forecasts from Open-Meteo, without requiring an API key, registration, or a dedicated SDK; the same logic can be exposed via a DSH plugin, an MCP server, or a command-line interface, making it reusable in environments like Cursor, Claude Code, and Codex.
What Is This¶
dsh-plugin-weather is classified as a “networked tool” in the DSH community catalog. The current package version is 0.4.1, licensed under MIT, and requires Node.js ≥ 20 to run.
The plugin registers two callable tools with the Agent, which the model can choose based on natural-language intent:
| Tool | Returns |
|---|---|
get_weather |
Current weather and air quality; by default includes a 3-day outlook (days: 0 returns only the current conditions) |
get_weather_forecast |
1–16 days of daily forecasts; optional hourly breakdown (next 48 hours, or 24 hours for a specified date) |
The data source is primarily Open-Meteo; when the provider config is auto, it falls back to wttr.in if Open-Meteo fails; setting it to open-meteo disables the fallback.
Each call typically returns two parts: a localized human-readable summary (with level descriptions) and complete JSON, making it easy for the model to reference precise values.
Core Features¶
Current Conditions & Air Quality¶
Current condition fields include: temperature, feels-like temperature, humidity, dew point, UV index and level (Low / Moderate / High / Very high / Extreme), sunrise/sunset/daylight duration in the local time zone, 16-point compass wind name and direction/speed/gusts, precipitation and snow/rain amounts, cloud cover, pressure, WMO weather description, as well as PM2.5, PM10, O₃, NO₂, SO₂, CO, US AQI and European AQI with their respective categories.
Multi-Day Forecasts & Trends¶
Each daily row includes: date and weekday, weather, low/high temperatures and feels-like, precipitation probability and amount, maximum UV and level, prevailing wind direction, sunrise and sunset. Multi-day results can include trend lines (temperature ranges, the wettest day, UV peaks, etc.).
Multilingual Summaries¶
Summaries can be localized (weather descriptions, 16-point wind names, UV and AQI levels, weekdays, labels, and error messages, etc.). The plugin config language defaults to en; the environment variable WEATHER_LANG can be used for MCP/CLI (e.g., zh). The README language table still lists codes like zh, ko even in the truncated portion; for the complete list, see the Languages section of the repository.
Multiple Integration Surfaces¶
The same core logic is registered through different layers depending on the runtime:
| Integration | Entry point | Use case |
|---|---|---|
| DSH plugin | cordis.patch.yml + lib/index.js |
DeepSeek Harness |
| MCP (stdio) | bin/mcp-server.mjs |
Claude Code, Codex CLI, Cursor, Windsurf, Gemini CLI, Cline, Zed, etc. |
| One-shot CLI | bin/cli.mjs (command name dsh-weather) |
Agents that can execute shell commands, CI, cron |
| Tool schemas | bin/schemas.mjs, schema/*.json |
OpenAI / Anthropic function calling, etc. |
Installation & Activation¶
Install in DSH (Recommended)¶
Install the bundle via the plugin manager, which writes to dsh.profile.bundles and activates it; if the tools don’t appear immediately, reload or restart DSH once.
plugin_manager { "action": "install_bundle", "target": "github:whaoran1018-cmd/dsh-plugin-weather" }
You can also describe the installation in an Agent conversation, or use the DSH Plugins page (for the community catalog with no official affiliation to DeepSeek / High-Flyer, see the SkillHub plugin page).
Manually Attach to an Existing Profile¶
Under ~/.dsh/profiles/<profile>, use a package manager to link a local or published package, and add "dsh-plugin-weather" to the dsh.profile.bundles field in that profile’s package.json. The package includes cordis.patch.yml, and the Loader will automatically insert the plugin entry.
Copy Without a Package Manager¶
Place the directory at ~/.dsh/profiles/<profile>/plugins/dsh-plugin-weather, and add the following to the profile’s cordis.patch.yml:
- insert:
- id: weather
name: 'dsh-plugin-weather'
Note: do not place it under a directory starting with .; DSH’s watcher ignores **/.*.
Global npm & MCP / CLI (Not DSH-Specific)¶
If you only need the command line or MCP, you can install globally (from the README):
npm i -g github:whaoran1018-cmd/dsh-plugin-weather
Example project-level MCP configuration for Cursor and others (replace the path with your local absolute path):
{
"mcpServers": {
"dsh-weather": { "command": "node", "args": ["/absolute/path/to/dsh-plugin-weather/bin/mcp-server.mjs"] }
}
}
Example environment variable for Chinese summaries:
"env": { "WEATHER_LANG": "zh" }
Configuration¶
You can configure these in the plugin settings UI or in the config field of the corresponding entry in the profile’s cordis.patch.yml:
| Key | Default | Meaning |
|---|---|---|
defaultLocation |
"" |
Used when no location is passed; if empty, inferred from the public IP |
language |
en |
Summary language |
units |
metric |
metric or imperial |
includeAirQuality |
true |
Whether to include the air quality block |
cacheTtlSeconds |
300 |
Local cache TTL in seconds for identical requests; 0 disables |
requestTimeoutMs |
15000 |
Per-request upstream timeout |
provider |
auto |
auto or open-meteo (see above) |
The MCP/CLI and other surfaces can also be configured uniformly via environment variables: WEATHER_DEFAULT_LOCATION, WEATHER_LANG, WEATHER_UNITS, WEATHER_PROVIDER, and WEATHER_TOOL_PREFIX (adds a prefix to MCP tool names).
Typical Usage¶
Ask Directly in DSH¶
Just use natural language, for example:
- 「上海现在天气怎么样」/ “What’s the weather in Shanghai?”
- 「上海未来 7 天会不会下雨」/ “Is it going to rain this week in New York?”
- 「雅加达空气好不好」/ “Air quality in Jakarta”
- 「明天几点日出」/ “What time is sunrise tomorrow?”
- Hourly forecast for a specific date: “Hourly forecast for Oct 7” (the model can pass
date: "2026-10-07") - Coordinates: “UV index at 31.23,121.47”
Tool Parameter Highlights¶
| Parameter | Applies to | Description |
|---|---|---|
location |
Both | City name in Chinese or English, or "lat,lon"; otherwise uses defaultLocation, then the public IP |
latitude / longitude |
Both | Explicit coordinates, take precedence over location |
units |
Both | metric or imperial |
includeAirQuality |
Both | Defaults to following the plugin configuration |
days |
Both | 0–16; get_weather defaults to 3, get_weather_forecast defaults to 5 |
includeHourly |
Forecast | Up to 48 hourly entries starting from the current time |
date |
Forecast | YYYY-MM-DD, returns 24 hourly entries for that day; automatically expands to the 16-day window if needed |
Command-Line Examples¶
Suitable for writing in AGENTS.md / system prompts, letting the Agent use commands instead of guessing:
dsh-weather 上海 --days 7
dsh-weather "New York" --units imperial --json | jq '.current.uvIndex'
dsh-weather --lat -6.21 --lon 106.85 --date 2026-10-07 --json
Use Cases & Notes¶
Who it’s for: Developers who need to query global current conditions, 1–16 day forecasts, UV, sunrise/sunset, and PM2.5/AQI within DSH or any MCP/shell Agent, and don’t want to maintain weather API keys.
Permissions & Security: The plugin accesses the network and executes logic with the permissions of the current DSH process; before installing, you should review the GitHub source code and the MIT license yourself to confirm it complies with your environment policies. Network requests go to Open-Meteo (and wttr.in as a fallback in auto mode).
Ecosystem note: DSH emphasizes “everything is a plugin”; the SkillHub catalog page is a community collection, not DeepSeek’s official app store.
Conclusion¶
dsh-plugin-weather covers current conditions, forecasts, and air quality with two Agent tools, with data from Open-Meteo, no key required, and can extend to runtimes like Cursor and Claude Code via MCP and the dsh-weather CLI. Catalog and documentation:
- Community catalog: https://www.skillhub.cn/plugins/whaoran1018-cmd/dsh-plugin-weather
- Source code and README: https://github.com/whaoran1018-cmd/dsh-plugin-weather