@pipeworx/mcp-dwd-climate 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mojibake Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,142 @@
1
- # Temporary Holding Version
1
+ # @pipeworx/dwd-climate
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Daily climate observations from Germany's national weather service, the Deutscher Wetterdienst (DWD) Climate Data Center: temperature, precipitation, sunshine, snow depth, wind, humidity, pressure and cloud cover for ~1,400 current and closed stations, with DWD quality flags, from each station's first record (some back to the 1800s) up to yesterday.
4
+
5
+ Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1769+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
6
+
7
+ ## Tools
8
+
9
+ - `dwd_stations(name? | lat+lon, active_only?, limit?)` — find stations by name (umlauts optional) or nearest to a coordinate; returns station id, federal state, elevation, coordinates and the first/last observation date.
10
+ - `dwd_daily(station_id, from?, to?)` — per-day observations for one station over a date range (max 1000 days per call, `next_from` when truncated), with units and quality levels.
11
+ - `dwd_latest(station_id)` — the most recent daily observation for one station, usually yesterday.
12
+
13
+ Every response carries `source`, `attribution` and `data_as_of` (the Last-Modified time of the upstream file that answered). A station number that does not exist, a name that matches nothing, or a range with no observations returns `found: false` with `data_as_of`, never an empty array. Upstream failures throw.
14
+
15
+ ## Auth
16
+
17
+ Keyless.
18
+
19
+ ## Data source
20
+
21
+ - Deutscher Wetterdienst (DWD) Climate Data Center — daily climate observations (KL) for German stations, in two archives: the daily-updated recent archive (roughly the last 500 days) and the quality-controlled historical archive (from each station's first record to the close of the last full year), plus DWD's station description list.
22
+
23
+ Each call reads only the one station's data it needs, live. Where a range spans both archives, the historical (quality-controlled) value wins for any day both cover; `archives_read` says which archive(s) answered.
24
+
25
+ ### Reuse terms
26
+
27
+ DWD Climate Data Center terms of use (status May 2024), quoted in full:
28
+
29
+ > The Creative Commons BY 4.0 - Licence "CC BY 4.0" apply. For detailed information see https://www.dwd.de/copyright
30
+
31
+ Attribution ("Source: Deutscher Wetterdienst") is included in every response.
32
+
33
+ ### Field notes
34
+
35
+ - Station ids are 5-digit zero-padded; the tools accept them with or without leading zeros.
36
+ - `-999` upstream = missing, returned as `null`. `QN_3` is the quality level for the wind columns (FX, FM), `QN_4` for everything else.
37
+ - `RSKF` (precipitation form) is a code: 0 none, 1 rain, 4 unknown form, 6 rain, 7 snow, 8 rain and snow, 9 missing.
38
+ - Many automatic stations report no sunshine duration (`SDK`); `null` there is upstream, not a parse failure.
39
+
40
+ ## Quick Start
41
+
42
+ Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
43
+
44
+ ```json
45
+ {
46
+ "mcpServers": {
47
+ "dwd-climate": {
48
+ "url": "https://gateway.pipeworx.io/dwd-climate/mcp"
49
+ }
50
+ }
51
+ }
52
+ ```
53
+
54
+ ### What this endpoint actually serves
55
+
56
+ `tools/list` at `https://gateway.pipeworx.io/dwd-climate/mcp` returns the tools in the table
57
+ above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
58
+ `discover_tools`, `search_within`, `remember`/`recall` and the rest of the
59
+ gateway-wide set. So the tool count you see is larger than this table: a
60
+ single-pack endpoint currently lists roughly 30 shared tools alongside the
61
+ pack's own. The connection's `initialize` response states its exact scope, and
62
+ is the authoritative answer for a given day.
63
+
64
+ This is deliberate, not multiplexing by accident. The meta-tools are what let a
65
+ scoped connection answer a question this pack does not cover — via
66
+ `ask_pipeworx`, which routes across the whole catalog — without you adding a
67
+ second MCP server. There is currently no way to mount a pack endpoint without
68
+ them; if the extra schemas cost you more context than the routing is worth,
69
+ connect to the full gateway once rather than to several pack endpoints.
70
+
71
+ Or connect to the full Pipeworx gateway to get every pack's tools listed
72
+ directly, instead of just this one's:
73
+
74
+ ```json
75
+ {
76
+ "mcpServers": {
77
+ "pipeworx": {
78
+ "url": "https://gateway.pipeworx.io/mcp"
79
+ }
80
+ }
81
+ }
82
+ ```
83
+
84
+ Both URLs reach the same gateway and the same 1769+ data sources. The
85
+ only difference is which pack's tools are listed **directly**; `ask_pipeworx`
86
+ reaches all of them from either one.
87
+
88
+ ## No MCP client? Call it over HTTP
89
+
90
+ ```bash
91
+ curl -X POST https://gateway.pipeworx.io/v1/tools/dwd_stations \
92
+ -H 'Content-Type: application/json' \
93
+ -d '{"name":"Dresden","limit":5}'
94
+ ```
95
+
96
+ No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/dwd_stations`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
97
+
98
+ ## Standalone (no gateway account)
99
+
100
+ This package also runs as a local stdio MCP server — no Pipeworx account, no
101
+ gateway round-trip:
102
+
103
+ ```json
104
+ {
105
+ "mcpServers": {
106
+ "dwd-climate": {
107
+ "command": "npx",
108
+ "args": ["-y", "@pipeworx/mcp-dwd-climate"]
109
+ }
110
+ }
111
+ }
112
+ ```
113
+
114
+ Or run it directly to confirm it starts:
115
+
116
+ ```bash
117
+ npx -y @pipeworx/mcp-dwd-climate
118
+ ```
119
+
120
+ It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
121
+ for **only** this pack's tools — none of the shared meta-tools the gateway
122
+ connection above adds. Same source, same tools, no ask_pipeworx routing.
123
+
124
+ ## Using with ask_pipeworx
125
+
126
+ Instead of calling tools directly, you can ask questions in plain English —
127
+ this works on the pack endpoint above as well as on the full gateway:
128
+
129
+ ```
130
+ ask_pipeworx({ question: "your question about Dwd Climate data" })
131
+ ```
132
+
133
+ The gateway picks the right tool and fills the arguments automatically.
134
+
135
+ ## More
136
+
137
+ - [Docs and guides](https://pipeworx.io/docs)
138
+ - [pipeworx.io](https://pipeworx.io)
139
+
140
+ ## License
141
+
142
+ MIT
package/bin/cli.js ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ //
3
+ // Entry point for `npx @pipeworx/mcp-<slug>`.
4
+ //
5
+ // Packs ship as raw TypeScript (no build step — see publish-pack.sh for why:
6
+ // tsx sidesteps every extensionless-import / bare-JSON-import edge case a
7
+ // per-pack tsc build would have to solve one pack at a time). This file
8
+ // registers tsx's ESM loader programmatically, then hands off to src/server.ts,
9
+ // which wraps the pack's {tools, callTool} export in a stdio MCP server.
10
+ //
11
+ // Copied verbatim into every published pack repo by scripts/publish-pack.sh —
12
+ // edit this file, not a per-pack copy.
13
+ import { register } from 'tsx/esm/api';
14
+
15
+ register();
16
+
17
+ await import('../src/server.ts');
package/package.json CHANGED
@@ -1,6 +1,32 @@
1
1
  {
2
2
  "name": "@pipeworx/mcp-dwd-climate",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "DWD Climate Data Center — daily station observations for Germany.",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "types": "src/index.ts",
8
+ "bin": {
9
+ "mcp-dwd-climate": "bin/cli.js"
10
+ },
11
+ "keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "dwd-climate"],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/pipeworx-io/mcp-dwd-climate.git"
16
+ },
17
+ "scripts": {
18
+ "typecheck": "tsc --noEmit"
19
+ },
20
+ "dependencies": {
21
+ "@modelcontextprotocol/sdk": "^1.30.0",
22
+ "tsx": "^4.19.0"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "^5.9.3",
26
+ "@cloudflare/workers-types": "^4.20260405.1"
27
+ },
28
+ "pipeworx": {
29
+ "sourceHash": "v1-6770beceeb8c3aa28f28cdcfb69104fa32862e1246847ca8ba21a64e76f68096",
30
+ "sourceCommit": "32aab95bb6e89ecc0f84597573d405a8a22cb609"
31
+ }
32
+ }
package/server.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.pipeworx-io/dwd-climate",
4
+ "title": "Dwd Climate",
5
+ "description": "DWD Climate Data Center — daily station observations for Germany.",
6
+ "version": "0.1.0",
7
+ "websiteUrl": "https://pipeworx.io/packs/dwd-climate",
8
+ "repository": {
9
+ "url": "https://github.com/pipeworx-io/mcp-dwd-climate",
10
+ "source": "github"
11
+ },
12
+ "remotes": [
13
+ {
14
+ "type": "streamable-http",
15
+ "url": "https://gateway.pipeworx.io/dwd-climate/mcp"
16
+ }
17
+ ]
18
+ }