@urbankitstudio/mcp-atlas 0.2.1 → 0.2.2
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/README.md +61 -4
- package/dist/server.d.ts +12 -1
- package/dist/server.js +23 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# @urbankitstudio/mcp-atlas
|
|
2
2
|
|
|
3
|
+
[](https://glama.ai/mcp/servers/LEOyrh/mcp-atlas)
|
|
4
|
+
[](https://socket.dev/npm/package/@urbankitstudio/mcp-atlas)
|
|
5
|
+
|
|
3
6
|
Query the verified parcel ArcGIS REST endpoints of 171 counties across all 50 US states (174 layers) for owner, APN and address lookup via the Model Context Protocol (MCP).
|
|
4
7
|
|
|
5
8
|
An [MCP](https://modelcontextprotocol.io) server that gives AI assistants direct access to UrbanKit Studio's atlas of manually verified county parcel GIS services. Ask Claude or Cursor to find the ArcGIS REST endpoint for any covered county, get the exact owner-search query URL, and look up parcel data — without needing to know anything about ArcGIS REST API conventions.
|
|
@@ -52,9 +55,29 @@ Then use `mcp-atlas` as the command instead of `npx -y @urbankitstudio/mcp-atlas
|
|
|
52
55
|
|
|
53
56
|
## Tools
|
|
54
57
|
|
|
58
|
+
The four tools are one pipeline, and what separates them is how precisely you
|
|
59
|
+
can already name the county:
|
|
60
|
+
|
|
61
|
+
| You have | Use | You get |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| A state, or nothing | `list_counties` | Which counties are covered, and whether owner search works there. No URLs. |
|
|
64
|
+
| A vague, misspelled or FIPS reference | `find_county` | Every county that reference matches, named, each with its record |
|
|
65
|
+
| An exact state and county | `get_parcel_endpoint` | That one county's endpoint URL, layer, fields and sample query |
|
|
66
|
+
| A county and an owner's name | `build_owner_query` | A runnable URL that searches for that name |
|
|
67
|
+
|
|
68
|
+
`find_county` and `get_parcel_endpoint` return the same per-county record. They
|
|
69
|
+
differ in how you address the county: `find_county` accepts an uncertain
|
|
70
|
+
reference and may come back with several candidates, `get_parcel_endpoint`
|
|
71
|
+
takes an exact pair and answers about one. If you already know the county, skip
|
|
72
|
+
`find_county`.
|
|
73
|
+
|
|
74
|
+
This server never executes a query and returns no parcel records. It tells you
|
|
75
|
+
the URL to fetch; fetching it is yours to do.
|
|
76
|
+
|
|
55
77
|
### `list_counties`
|
|
56
78
|
|
|
57
|
-
|
|
79
|
+
Browse coverage. Answers "is this county covered?" and "what can I search
|
|
80
|
+
there?" — one line per county, with no endpoint URLs or field names.
|
|
58
81
|
|
|
59
82
|
| Parameter | Type | Required | Description |
|
|
60
83
|
|-----------|------|----------|-------------|
|
|
@@ -76,7 +99,11 @@ IL | DuPage | dupage-county | owner+APN
|
|
|
76
99
|
|
|
77
100
|
### `find_county`
|
|
78
101
|
|
|
79
|
-
|
|
102
|
+
Resolves a reference you cannot state exactly. Fuzzy-matches a partial or
|
|
103
|
+
misspelled name, a "County State" phrase, or a 5-digit FIPS code against every
|
|
104
|
+
covered county, and names each county it matched so an ambiguous reference
|
|
105
|
+
comes back as a list to choose from. Each match carries that county's record:
|
|
106
|
+
endpoint URLs, searchable field names, owner field, sample query, license.
|
|
80
107
|
|
|
81
108
|
| Parameter | Type | Required | Description |
|
|
82
109
|
|-----------|------|----------|-------------|
|
|
@@ -88,7 +115,10 @@ Fuzzy-matches a county by name or 5-digit FIPS code. Returns endpoint URLs, sear
|
|
|
88
115
|
|
|
89
116
|
### `get_parcel_endpoint`
|
|
90
117
|
|
|
91
|
-
|
|
118
|
+
The default lookup once the county is known. Returns the full ArcGIS REST URL,
|
|
119
|
+
layer index, searchable fields, owner field, a generic sample `?where=…&f=json`
|
|
120
|
+
query and the UrbanKit deep-link for one county. For a named owner, use
|
|
121
|
+
`build_owner_query` rather than editing the sample query by hand.
|
|
92
122
|
|
|
93
123
|
| Parameter | Type | Required | Description |
|
|
94
124
|
|-----------|------|----------|-------------|
|
|
@@ -101,7 +131,11 @@ Returns the full ArcGIS REST URL, layer index, searchable fields, owner field, a
|
|
|
101
131
|
|
|
102
132
|
### `build_owner_query`
|
|
103
133
|
|
|
104
|
-
|
|
134
|
+
The only tool that searches for a named owner. Fills a person or company name
|
|
135
|
+
into the county's verified owner/taxpayer field as
|
|
136
|
+
`UPPER(field) LIKE UPPER('%NAME%')`, a case-insensitive partial match, and
|
|
137
|
+
returns a URL you can fetch or open. A county that publishes no owner name is
|
|
138
|
+
refused here, with the reason, rather than handed a query that finds nothing.
|
|
105
139
|
|
|
106
140
|
| Parameter | Type | Required | Description |
|
|
107
141
|
|-----------|------|----------|-------------|
|
|
@@ -151,6 +185,29 @@ Atlas data is embedded in the package (no network calls at startup). The underly
|
|
|
151
185
|
|
|
152
186
|
---
|
|
153
187
|
|
|
188
|
+
## What Socket flags, and how much of it is ours
|
|
189
|
+
|
|
190
|
+
[Socket](https://socket.dev/npm/package/@urbankitstudio/mcp-atlas)'s supply-chain scanner
|
|
191
|
+
rates this package in the mid-70s. Clicking through shows a long alert list. Each alert,
|
|
192
|
+
checked rather than waved away:
|
|
193
|
+
|
|
194
|
+
| Alert | Whose | What it is |
|
|
195
|
+
|---|---|---|
|
|
196
|
+
| `usesEval` | Not ours | No `eval` or `new Function` anywhere in `src/`. It comes from a dependency. |
|
|
197
|
+
| `unmaintained` (21) | Not ours | Transitive dependencies last published 2017–2021. |
|
|
198
|
+
| `mixedLicense` | Not ours | A dependency published as `BSD-3-Clause AND ISC`. |
|
|
199
|
+
| `noTests` | Ours, by design | `files` ships `dist` only. The suite lives in `test/` and runs in CI. Shipping tests inside the tarball would be the defect. |
|
|
200
|
+
| `networkAccess`, `filesystemAccess`, `envVars`, `shellAccess` | Ours | An MCP server talks to a client over stdio and reads its own config. A server without these could not do the job. |
|
|
201
|
+
| `unpopularPackage`, `noV1` | Ours | Download count and a `0.x` version. Both resolve with time, neither is a code issue. |
|
|
202
|
+
|
|
203
|
+
Vulnerability and license both come back at **100**, quality at **99**. The number the
|
|
204
|
+
badge shows is the *supply-chain* sub-score, and its single largest deduction is download
|
|
205
|
+
count, a popularity measure wearing a security badge's clothes. Judge the list above, not
|
|
206
|
+
the digit.
|
|
207
|
+
|
|
208
|
+
The four access alerts are what let the server read its own config and talk to a client
|
|
209
|
+
over stdio, nothing more. It still never executes a query or returns a parcel record.
|
|
210
|
+
|
|
154
211
|
## License
|
|
155
212
|
|
|
156
213
|
MIT — © 2026 UrbanKit Studio
|
package/dist/server.d.ts
CHANGED
|
@@ -11,4 +11,15 @@
|
|
|
11
11
|
* get_parcel_endpoint – return the full REST service URL + ready sample query
|
|
12
12
|
* build_owner_query – construct exact ArcGIS REST query for an owner name
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* An ArcGIS `where` is SQL, and a single quote closes the string literal.
|
|
16
|
+
* encodeURIComponent does not help: `'` and `)` are both in its unreserved set, so
|
|
17
|
+
* `A') OR 1=1 --` passes through encoding intact and lands OUTSIDE the quotes as a
|
|
18
|
+
* live predicate against a county's server. Doubling the quote is the SQL-standard
|
|
19
|
+
* escape and keeps the whole input inside the literal where it belongs.
|
|
20
|
+
*
|
|
21
|
+
* Every caller that puts user text in a `where` goes through this, including the
|
|
22
|
+
* clause rendered for a human to copy: escaping only the URL would leave the same
|
|
23
|
+
* payload one paste away from running.
|
|
24
|
+
*/
|
|
25
|
+
export declare function escapeSqlLiteral(value: string): string;
|
package/dist/server.js
CHANGED
|
@@ -49,11 +49,25 @@ function ownerFieldFor(county, endpoint) {
|
|
|
49
49
|
function ownerFieldFrom(county, endpoint) {
|
|
50
50
|
return ownerFieldFor(county, endpoint).field;
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* An ArcGIS `where` is SQL, and a single quote closes the string literal.
|
|
54
|
+
* encodeURIComponent does not help: `'` and `)` are both in its unreserved set, so
|
|
55
|
+
* `A') OR 1=1 --` passes through encoding intact and lands OUTSIDE the quotes as a
|
|
56
|
+
* live predicate against a county's server. Doubling the quote is the SQL-standard
|
|
57
|
+
* escape and keeps the whole input inside the literal where it belongs.
|
|
58
|
+
*
|
|
59
|
+
* Every caller that puts user text in a `where` goes through this, including the
|
|
60
|
+
* clause rendered for a human to copy: escaping only the URL would leave the same
|
|
61
|
+
* payload one paste away from running.
|
|
62
|
+
*/
|
|
63
|
+
export function escapeSqlLiteral(value) {
|
|
64
|
+
return value.replace(/'/g, "''");
|
|
65
|
+
}
|
|
52
66
|
function buildArcgisOwnerQuery(county, endpoint, ownerQuery) {
|
|
53
67
|
const field = ownerFieldFrom(county, endpoint);
|
|
54
68
|
if (!field)
|
|
55
69
|
return "";
|
|
56
|
-
const where = `UPPER(${field}) LIKE UPPER('%25${encodeURIComponent(ownerQuery)}%25')`;
|
|
70
|
+
const where = `UPPER(${field}) LIKE UPPER('%25${encodeURIComponent(escapeSqlLiteral(ownerQuery))}%25')`;
|
|
57
71
|
const liveFields = endpoint.searchFields
|
|
58
72
|
.filter((sf) => sf.searchable)
|
|
59
73
|
.map((sf) => sf.name)
|
|
@@ -113,7 +127,7 @@ const server = new McpServer(
|
|
|
113
127
|
// ---------------------------------------------------------------------------
|
|
114
128
|
server.registerTool("list_counties", {
|
|
115
129
|
title: "List covered counties",
|
|
116
|
-
description: `
|
|
130
|
+
description: `Browse what the atlas covers. Answers "is this county covered?" and "what can I search there?" with one line per county: state, name, slug, and whether owner-name search is available or the county publishes parcel numbers only. Deliberately returns NO endpoint URLs or field names; call get_parcel_endpoint for one county's technical record. Filter with a state abbreviation ('IL') or name ('Illinois'), or omit state for all ~${atlas.totals.counties} counties.`,
|
|
117
131
|
inputSchema: {
|
|
118
132
|
state: z
|
|
119
133
|
.string()
|
|
@@ -181,8 +195,8 @@ server.registerTool("list_counties", {
|
|
|
181
195
|
// Tool: find_county
|
|
182
196
|
// ---------------------------------------------------------------------------
|
|
183
197
|
server.registerTool("find_county", {
|
|
184
|
-
title: "
|
|
185
|
-
description: "Fuzzy-matches
|
|
198
|
+
title: "Resolve an uncertain county reference",
|
|
199
|
+
description: "Use when you do NOT already know the exact state and county. Fuzzy-matches one free-text reference ('Kane', 'Cook County IL', a misspelling, or a 5-digit FIPS code) against every covered county and names each county it matched, so an ambiguous reference comes back as a list to choose from rather than a silent guess. Each match carries that county's technical record, the same record get_parcel_endpoint returns for one county. Call get_parcel_endpoint directly whenever you already hold an exact state and county; come here only to turn a vague, misspelled or coded reference into definite ones.",
|
|
186
200
|
inputSchema: {
|
|
187
201
|
query: z
|
|
188
202
|
.string()
|
|
@@ -257,8 +271,8 @@ server.registerTool("find_county", {
|
|
|
257
271
|
// Tool: get_parcel_endpoint
|
|
258
272
|
// ---------------------------------------------------------------------------
|
|
259
273
|
server.registerTool("get_parcel_endpoint", {
|
|
260
|
-
title: "Get
|
|
261
|
-
description: "
|
|
274
|
+
title: "Get one county's parcel endpoint record",
|
|
275
|
+
description: "The default lookup once the county is known. Takes an exact state and county and returns that county's ArcGIS REST service URL, layer index, searchable field names, verified owner/taxpayer field, a generic sample ?where=…&f=json query, and the UrbanKit deep-link. If the county name is uncertain, misspelled, or you hold only a FIPS code, call find_county first. To search for a named person or company, call build_owner_query rather than editing the sample query by hand.",
|
|
262
276
|
inputSchema: {
|
|
263
277
|
state: z
|
|
264
278
|
.string()
|
|
@@ -360,8 +374,8 @@ server.registerTool("get_parcel_endpoint", {
|
|
|
360
374
|
// Tool: build_owner_query
|
|
361
375
|
// ---------------------------------------------------------------------------
|
|
362
376
|
server.registerTool("build_owner_query", {
|
|
363
|
-
title: "Build
|
|
364
|
-
description: "
|
|
377
|
+
title: "Build an owner-name search URL for one county",
|
|
378
|
+
description: "The only tool that searches for a named owner. Fills a person or company name into that county's verified owner/taxpayer field as UPPER(field) LIKE UPPER('%NAME%'), a case-insensitive partial match, and returns a URL you can fetch or open in a browser. get_parcel_endpoint returns the endpoint and a generic sample query, not a name search, so come here for the name. This server does not execute the query and returns no parcel records: fetch the returned URL yourself. Counties that publish no owner name are refused here with that reason.",
|
|
365
379
|
inputSchema: {
|
|
366
380
|
state: z
|
|
367
381
|
.string()
|
|
@@ -417,7 +431,7 @@ server.registerTool("build_owner_query", {
|
|
|
417
431
|
continue;
|
|
418
432
|
}
|
|
419
433
|
const queryUrl = buildArcgisOwnerQuery(countyRecord, ep, owner_name);
|
|
420
|
-
const where = `UPPER(${ownerField}) LIKE UPPER('%${owner_name}%')`;
|
|
434
|
+
const where = `UPPER(${ownerField}) LIKE UPPER('%${escapeSqlLiteral(owner_name)}%')`;
|
|
421
435
|
results.push([
|
|
422
436
|
`County: ${countyRecord.county}, ${countyRecord.stateName}`,
|
|
423
437
|
`Owner field: ${ownerField}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@urbankitstudio/mcp-atlas",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Query the verified parcel ArcGIS REST endpoints of 171 counties across all 50 US states (174 layers) for owner, APN and address lookup via the Model Context Protocol (MCP).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|