@pipeworx/mcp-dubai-land 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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "staged_at": "2026-09-23T19:37:39.465Z",
3
+ "publisher_blob": "da6994091dc9dcc6a7433084251ca4bbd58b4bed",
4
+ "publisher_commit": "1c417b2cfcdac06e2d9210e869265722ef013f20",
5
+ "note": "Written by scripts/publish-pack.sh as its LAST step. Its presence is the ONLY thing that lets stage-unpublished-packs.sh skip this pack. Deleting this dir is the correct way to force a rebuild."
6
+ }
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 ADDED
@@ -0,0 +1,200 @@
1
+ # @pipeworx/dubai-land
2
+
3
+ Dubai real-estate data from the Dubai Land Department — registered sale,
4
+ mortgage and gift transactions, Ejari rental contracts, official valuations,
5
+ development projects, land parcels, buildings, and the licensed broker and
6
+ developer registers.
7
+
8
+ Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1663+ live data sources.
9
+
10
+ ## Tools
11
+
12
+ - `dld_search_transactions(from_date, to_date, ...)` — property transactions
13
+ with transaction value, procedure, district, project, property type, room
14
+ count and nearest metro/mall/landmark. Answers "what did this kind of
15
+ property sell for in Dubai this month".
16
+ - `dld_search_rents(from_date, to_date, ...)` — Ejari-registered rental
17
+ contracts with contract and annualised amounts, start/end dates, district and
18
+ property size. Answers "what is the going rent".
19
+ - `dld_search_valuations(from_date, to_date, ...)` — official DLD valuations
20
+ with appraised total value, actual area and property sub-type.
21
+ - `dld_search_projects(from_date, to_date, date_type, ...)` — registered
22
+ development projects with developer, status, percent complete and dates.
23
+ - `dld_search_lands(...)` — registered land parcels with parcel/land number,
24
+ district, zone, land type, area and project.
25
+ - `dld_search_buildings(...)` — registered buildings with building number,
26
+ floors, rooms, unit counts, area, district and project.
27
+ - `dld_list_brokers(...)` — the licensed broker register: broker number and
28
+ name, licence dates, brokerage office and the office phone the register
29
+ publishes.
30
+ - `dld_list_developers(from_date, to_date, ...)` — the registered developer
31
+ list with licence source and dates.
32
+ - `dld_list_areas()` — the 437 Dubai area (district) names in English and
33
+ Arabic with their `AREA_ID` codes.
34
+
35
+ Every search tool takes `limit` (1-200, default 25), `offset`, and a `sort` of
36
+ the form `{COLUMN}_ASC` / `{COLUMN}_DESC` using any column name from the rows
37
+ (e.g. `TRANS_VALUE_DESC`). Each result carries `total`, the size of the whole
38
+ matching set, so `offset` can page through it.
39
+
40
+ ## Auth
41
+
42
+ Keyless. No account, no registration, no quota — this is the same backend the
43
+ department's own public "Real Estate Data" search pages call.
44
+
45
+ ## Data sources
46
+
47
+ - https://gateway.dubailand.gov.ae/open-data/transactions — sale, mortgage
48
+ and gift transactions.
49
+ - https://gateway.dubailand.gov.ae/open-data/rents — Ejari rental contracts.
50
+ - https://gateway.dubailand.gov.ae/open-data/valuations — official valuations.
51
+ - https://gateway.dubailand.gov.ae/open-data/projects — development projects.
52
+ - https://gateway.dubailand.gov.ae/open-data/lands — land parcels.
53
+ - https://gateway.dubailand.gov.ae/open-data/buildings — buildings.
54
+ - https://gateway.dubailand.gov.ae/open-data/brokers — licensed brokers.
55
+ - https://gateway.dubailand.gov.ae/open-data/developers — registered developers.
56
+ - https://gateway.dubailand.gov.ae/open-data/carea-lookup — area/district codes.
57
+
58
+ ### What the next person would otherwise rediscover
59
+
60
+ **Every declared parameter must be present in the body, even when unset.** An
61
+ omitted key is not a default — the gateway answers a 500 HTML error page. Each
62
+ tool here therefore sends its command's full `P_*` parameter set with `""` for
63
+ anything the caller left out. A body of `{}` returns
64
+ `responseCode 420 INVALID_REQUEST`, which is what makes the endpoint look
65
+ key-gated when it is not.
66
+
67
+ **Dates go out as `MM/DD/YYYY`.** Tools accept ISO `YYYY-MM-DD` and convert.
68
+
69
+ **Transactions, rents and valuations only cover the current calendar year.**
70
+ Measured 2026-09-07: the whole of 2026 returned 152,531 transactions, while
71
+ 2025 and 2024 returned an empty array with `responseCode 200` — no error, no
72
+ warning. Do not read an empty result for an older range as an outage.
73
+
74
+ **`projects` returns nothing without `date_type`.** Dates alone give an empty
75
+ 200; `date_type` plus dates gives rows. `buildings` and `lands` are the
76
+ opposite — they want no date range at all.
77
+
78
+ **The upstream `P_AREA_ID` filter does not work and is not exposed.** The
79
+ `AREA_ID` codes from `carea-lookup` (e.g. `A-292` for Al Barsha) return zero
80
+ rows on `transactions` and a 500 on `lands`, so the tools always send `""` for
81
+ it. Rows still carry `AREA_EN` / `AREA_AR`, so filter by district on the way
82
+ out. `zone_id` (`1` Deira, `2` Dubai) does work where the command declares it.
83
+
84
+ **Row noise.** Each row repeats a `TOTAL` column holding the size of the whole
85
+ matching set, plus an `RN` sequence number and a `DEFAULT_SORT` marker. `TOTAL`
86
+ is hoisted to the response's `total` and all three are stripped from the rows.
87
+ Bilingual columns come in `_EN` / `_AR` pairs; the Arabic twin is dropped unless
88
+ `include_arabic: true` (always kept for `dld_list_areas`, where it is the
89
+ point).
90
+
91
+ **`GENDER_EN` on broker rows is returned in Arabic** by the upstream
92
+ (`أنثى` / `ذكر`) despite the `_EN` suffix. The `gender` filter itself works:
93
+ `0` male, `1` female.
94
+
95
+ **No spoofed headers needed.** The gateway answers a plain request carrying our
96
+ own `User-Agent`; it does not check `Origin` or `Referer`.
97
+
98
+ ## Quick Start
99
+
100
+ Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
101
+
102
+ ```json
103
+ {
104
+ "mcpServers": {
105
+ "dubai-land": {
106
+ "url": "https://gateway.pipeworx.io/dubai-land/mcp"
107
+ }
108
+ }
109
+ }
110
+ ```
111
+
112
+ ### What this endpoint actually serves
113
+
114
+ `tools/list` at `https://gateway.pipeworx.io/dubai-land/mcp` returns the tools in the table
115
+ above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
116
+ `discover_tools`, `search_within`, `remember`/`recall` and the rest of the
117
+ gateway-wide set. So the tool count you see is larger than this table: a
118
+ single-pack endpoint currently lists roughly 30 shared tools alongside the
119
+ pack's own. The connection's `initialize` response states its exact scope, and
120
+ is the authoritative answer for a given day.
121
+
122
+ This is deliberate, not multiplexing by accident. The meta-tools are what let a
123
+ scoped connection answer a question this pack does not cover — via
124
+ `ask_pipeworx`, which routes across the whole catalog — without you adding a
125
+ second MCP server. There is currently no way to mount a pack endpoint without
126
+ them; if the extra schemas cost you more context than the routing is worth,
127
+ connect to the full gateway once rather than to several pack endpoints.
128
+
129
+ Or connect to the full Pipeworx gateway to get every pack's tools listed
130
+ directly, instead of just this one's:
131
+
132
+ ```json
133
+ {
134
+ "mcpServers": {
135
+ "pipeworx": {
136
+ "url": "https://gateway.pipeworx.io/mcp"
137
+ }
138
+ }
139
+ }
140
+ ```
141
+
142
+ Both URLs reach the same gateway and the same 1663+ data sources. The
143
+ only difference is which pack's tools are listed **directly**; `ask_pipeworx`
144
+ reaches all of them from either one.
145
+
146
+ ## No MCP client? Call it over HTTP
147
+
148
+ ```bash
149
+ curl -X POST https://gateway.pipeworx.io/v1/tools/dld_search_transactions \
150
+ -H 'Content-Type: application/json' \
151
+ -d '{"from_date":"2026-09-01","to_date":"2026-09-06","transaction_type":"1","limit":3,"sort":"TRANS_VALUE_DESC"}'
152
+ ```
153
+
154
+ No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/dld_search_transactions`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
155
+
156
+ ## Standalone (no gateway account)
157
+
158
+ This package also runs as a local stdio MCP server — no Pipeworx account, no
159
+ gateway round-trip:
160
+
161
+ ```json
162
+ {
163
+ "mcpServers": {
164
+ "dubai-land": {
165
+ "command": "npx",
166
+ "args": ["-y", "@pipeworx/mcp-dubai-land"]
167
+ }
168
+ }
169
+ }
170
+ ```
171
+
172
+ Or run it directly to confirm it starts:
173
+
174
+ ```bash
175
+ npx -y @pipeworx/mcp-dubai-land
176
+ ```
177
+
178
+ It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
179
+ for **only** this pack's tools — none of the shared meta-tools the gateway
180
+ connection above adds. Same source, same tools, no ask_pipeworx routing.
181
+
182
+ ## Using with ask_pipeworx
183
+
184
+ Instead of calling tools directly, you can ask questions in plain English —
185
+ this works on the pack endpoint above as well as on the full gateway:
186
+
187
+ ```
188
+ ask_pipeworx({ question: "your question about Dubai Land data" })
189
+ ```
190
+
191
+ The gateway picks the right tool and fills the arguments automatically.
192
+
193
+ ## More
194
+
195
+ - [Docs and guides](https://pipeworx.io/docs)
196
+ - [pipeworx.io](https://pipeworx.io)
197
+
198
+ ## License
199
+
200
+ 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 ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@pipeworx/mcp-dubai-land",
3
+ "version": "0.1.0",
4
+ "description": "Dubai Land Department (DLD) — Dubai real-estate open data.",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "types": "src/index.ts",
8
+ "bin": {
9
+ "mcp-dubai-land": "bin/cli.js"
10
+ },
11
+ "keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "dubai-land"],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/pipeworx-io/mcp-dubai-land.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
+ }
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/dubai-land",
4
+ "title": "Dubai Land",
5
+ "description": "Dubai Land Department (DLD) — Dubai real-estate open data.",
6
+ "version": "0.1.0",
7
+ "websiteUrl": "https://pipeworx.io/packs/dubai-land",
8
+ "repository": {
9
+ "url": "https://github.com/pipeworx-io/mcp-dubai-land",
10
+ "source": "github"
11
+ },
12
+ "remotes": [
13
+ {
14
+ "type": "streamable-http",
15
+ "url": "https://gateway.pipeworx.io/dubai-land/mcp"
16
+ }
17
+ ]
18
+ }