Skip to main content
Glama
README.md
# richmond-bc

City of Richmond, British Columbia, Canada: public GIS layers, and a pointer to where its business licences are published. This is Richmond, BC, not Richmond, Virginia (that is `arcgis-richmond`).

Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2075+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

Publisher: City of Richmond, BC (richmond.ca). Keyless, live calls only, no stored copy.

## Business licences: what exists

The City does not publish business licences as a searchable dataset. Checked 2026-12-01:

- `data-richmondbc.opendata.arcgis.com` answers 200 but is an unconfigured ArcGIS Hub shell (the page title is the generic "ArcGIS Hub"; its search API answers `private org id for data-richmondbc.opendata.arcgis.com is not accessible`, 401). The ArcGIS Hub index holds no Richmond, BC licence layer.
- richmond.ca publishes yearly PDF reports of newly issued licences (2020 to 2026) on its Business Licences page, and a Business Directory search form (`bdsearch.aspx`) that returns no rows to a scripted request and has no API.
- Other BC cities (Kelowna, Victoria, Squamish, Burnaby, Maple Ridge, Langley) do publish licence layers; Richmond does not.

`richmond_bc_business_licences` reads the licences page live and returns the current PDF links by year, the directory link and what each source contains. It does not parse the PDFs: they carry a home-business flag and residential addresses for home-based businesses, and reading 17,000-line PDFs per call is not a live-API job.

## Tools

| Tool | What it does |
|---|---|
| `richmond_bc_business_licences` | Where Richmond BC business licences are published (PDF links by year, directory link). |
| `richmond_bc_list_datasets` | The public GIS datasets below, with live record counts and field names. |
| `richmond_bc_query_dataset` | SQL-like query of one dataset by key; paged (default 50, max 500). |

## Datasets (City of Richmond ArcGIS Server, anonymous)

`housing_sites` (96), `low_end_market_rental`, `non_market_housing`, `co_op_housing`, `ev_chargers_current`, `ev_chargers_future`, `park_washrooms`, `cooling_drinking_fountains`, `cooling_community_centres`, `cooling_libraries`, `cooling_misters`, `neighbourhood_boundaries`. Chosen because they are the citizen-facing layers the City publishes without a login (housing, EV charging, parks, cooling). The server also lists utility layers (drainage, sanitary) and token-protected folders; those are left out.

## Personal data

Housing records carry `email` and `phone` for the listed provider or a named contact. Both fields are removed from every row and from the field lists. No licence rows are returned.

## Source terms

The City of Richmond has not published an open-data licence for these layers; they are reachable without credentials and queried live, never copied.

## Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

```json
{
  "mcpServers": {
    "richmond-bc": {
      "url": "https://gateway.pipeworx.io/richmond-bc/mcp"
    }
  }
}
```

### What this endpoint actually serves

`tools/list` at `https://gateway.pipeworx.io/richmond-bc/mcp` returns the tools in the table
above **plus five Pipeworx tools**: `ask_pipeworx`, `discover_tools`, `ask_pipeworx_grounded`, `company_register_search` and `company_facts`.
`ask_pipeworx` answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.

Add an option to the same URL:

- `https://gateway.pipeworx.io/richmond-bc/mcp?meta=1` lists this pack's tools plus **up to 48 shared Pipeworx tools** (48 when this README was
generated; a connection without an account lists fewer, and its own `tools/list` is the
exact answer on any given day).
- `https://gateway.pipeworx.io/richmond-bc/mcp?meta=0` lists this pack's tools alone.

Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:

```json
{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}
```

Both URLs reach the same gateway and the same 2075+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one (it is not listed on a `?meta=0` connection).

## No MCP client? Call it over HTTP

```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/richmond_bc_business_licences \
  -H 'Content-Type: application/json' \
  -d '{}'
```

No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/richmond_bc_business_licences`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.

## Run it from npm

`@pipeworx/mcp-richmond-bc` is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with `npx`, and it forwards every call to the same
`https://gateway.pipeworx.io/richmond-bc/mcp` endpoint shown above. It needs network access;
there is no offline mode.

```json
{
  "mcpServers": {
    "richmond-bc": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-richmond-bc"]
    }
  }
}
```

Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
`"env": { "PIPEWORX_API_KEY": "<your key>" }` to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.

It lists **only** this pack's tools by default. Set `PIPEWORX_META_TOOLS=1` to
also list `ask_pipeworx` and the other gateway-wide tools.

Behind an HTTPS proxy: Node's built-in `fetch` does not read `HTTPS_PROXY` by
default. Newer Node releases honour it when `NODE_USE_ENV_PROXY=1` is set; check
your Node version's documentation.

## Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:

```
ask_pipeworx({ question: "your question about Richmond Bc data" })
```

The gateway picks the right tool and fills the arguments automatically.

## More

- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)

## License

MIT