@pipeworx/mcp-rba 0.1.0 → 0.2.1
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 +1 -1
- package/README.md +124 -8
- package/bin/cli.js +17 -0
- package/package.json +15 -3
- package/server.json +1 -1
- package/src/index.ts +1174 -14
- package/src/server.ts +45 -0
- package/tsconfig.json +5 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,70 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @pipeworx/rba
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Reserve Bank of Australia statistics — cash rate target, AUD exchange rates,
|
|
4
|
+
and any of the 71 published statistical tables (interest rates, bond yields,
|
|
5
|
+
CPI, monetary aggregates, and more), scraped keyless from RBA's own CSV
|
|
6
|
+
endpoints.
|
|
4
7
|
|
|
5
|
-
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to
|
|
8
|
+
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1683+ live data sources.
|
|
6
9
|
|
|
7
10
|
## Tools
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
- `rba_cash_rate(recent?)` — the RBA's official cash rate target (AU's
|
|
13
|
+
monetary-policy rate) plus recent monthly history.
|
|
14
|
+
- `rba_exchange_rates(currency?, recent?)` — latest AUD exchange rates
|
|
15
|
+
against major currencies, or one pair's recent history.
|
|
16
|
+
- `rba_series(series?, table?, series_id?, recent?)` — any RBA statistical
|
|
17
|
+
series. **Preferred usage: pass `series` as a NAME or description** (e.g.
|
|
18
|
+
`"90-day bank bill rate"`, `"3-year government bond yield"`) and it
|
|
19
|
+
resolves the (table, series_id) pair by fuzzy-matching series
|
|
20
|
+
titles/descriptions — the interest-rate and bond-yield tables (F1, F1.1,
|
|
21
|
+
F2, F2.1, F16) are searched first, then the broader catalog if nothing
|
|
22
|
+
scores there. Returns `resolved_from`/`resolved_to` on a clean resolution,
|
|
23
|
+
or an `error: "ambiguous"` with `candidates` when the name doesn't
|
|
24
|
+
disambiguate on its own (never invents an id). Pass `table` + `series_id`
|
|
25
|
+
directly for the legacy exact-id path.
|
|
26
|
+
- `rba_list_series(query?, keyword?, table?)` — discovery/directory tool.
|
|
27
|
+
`query` searches series NAMES/descriptions directly (same engine
|
|
28
|
+
`rba_series` uses to resolve names) and returns ranked `(table,
|
|
29
|
+
series_id)` matches in one call. `keyword` searches table
|
|
30
|
+
titles/categories instead and returns every series in the matched
|
|
31
|
+
tables. `table` lists all series in one table. No arguments browses
|
|
32
|
+
every table by category.
|
|
33
|
+
|
|
34
|
+
## Auth
|
|
35
|
+
|
|
36
|
+
Keyless. RBA publishes every statistical table as CSV with no
|
|
37
|
+
authentication or rate limit documented.
|
|
38
|
+
|
|
39
|
+
## Data sources
|
|
40
|
+
|
|
41
|
+
- `https://www.rba.gov.au/statistics/tables/csv/<table>-data.csv` — one CSV
|
|
42
|
+
per table id (e.g. `f1.1`, `f2.1`, `g1`). Row layout is fixed: a title
|
|
43
|
+
line, then labelled header rows (`Title`, `Description`, `Frequency`,
|
|
44
|
+
`Type`, `Units`, `Source`, `Publication date`, `Series ID`), then data
|
|
45
|
+
rows keyed by date. Columns 1..N are series, matched by position across
|
|
46
|
+
the header rows.
|
|
47
|
+
- `https://www.rba.gov.au/statistics/tables/` — the index page `RBA_TABLES`
|
|
48
|
+
in `src/index.ts` was scraped from (2026-08-28). No official endpoint
|
|
49
|
+
lists every table + series in one call; regenerate that scrape if RBA
|
|
50
|
+
adds/renames a table (rare).
|
|
51
|
+
|
|
52
|
+
### Gotchas
|
|
53
|
+
|
|
54
|
+
- **Dates use two formats** across tables: `DD/MM/YYYY` (e.g. f1.1) and
|
|
55
|
+
`DD-Mon-YYYY` (e.g. f11.1 exchange rates) — both normalized to
|
|
56
|
+
`YYYY-MM-DD` by `toIso()`.
|
|
57
|
+
- **RBA republishes several series in both a daily and a monthly table**
|
|
58
|
+
with the same or near-identical name (e.g. "Cash Rate Target" in both
|
|
59
|
+
`f1` and `f1.1`; `"EOD 3-month BABs/NCDs"` in `f1` vs `"3-month
|
|
60
|
+
BABs/NCDs"` in `f1.1`). Name resolution collapses these via
|
|
61
|
+
`dedupeMatches()` and prefers the monthly/interpolated table — otherwise
|
|
62
|
+
every named query looks falsely ambiguous against its own daily twin.
|
|
63
|
+
- **Day-count finance shorthand ("90-day", "180-day") doesn't literally
|
|
64
|
+
appear in RBA's own series titles** — RBA calls them "1/3/6-month
|
|
65
|
+
BABs/NCDs". `expandDaySynonyms()` converts common day counts (30/90/180/365)
|
|
66
|
+
to their month equivalent before scoring, so "90-day bank bill rate"
|
|
67
|
+
still finds `FIRMMBAB90` ("3-month BABs/NCDs").
|
|
11
68
|
|
|
12
69
|
## Quick Start
|
|
13
70
|
|
|
@@ -23,7 +80,25 @@ Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
|
|
|
23
80
|
}
|
|
24
81
|
```
|
|
25
82
|
|
|
26
|
-
|
|
83
|
+
### What this endpoint actually serves
|
|
84
|
+
|
|
85
|
+
`tools/list` at `https://gateway.pipeworx.io/rba/mcp` returns the tools in the table
|
|
86
|
+
above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
|
|
87
|
+
`discover_tools`, `search_within`, `remember`/`recall` and the rest of the
|
|
88
|
+
gateway-wide set. So the tool count you see is larger than this table: a
|
|
89
|
+
single-pack endpoint currently lists roughly 30 shared tools alongside the
|
|
90
|
+
pack's own. The connection's `initialize` response states its exact scope, and
|
|
91
|
+
is the authoritative answer for a given day.
|
|
92
|
+
|
|
93
|
+
This is deliberate, not multiplexing by accident. The meta-tools are what let a
|
|
94
|
+
scoped connection answer a question this pack does not cover — via
|
|
95
|
+
`ask_pipeworx`, which routes across the whole catalog — without you adding a
|
|
96
|
+
second MCP server. There is currently no way to mount a pack endpoint without
|
|
97
|
+
them; if the extra schemas cost you more context than the routing is worth,
|
|
98
|
+
connect to the full gateway once rather than to several pack endpoints.
|
|
99
|
+
|
|
100
|
+
Or connect to the full Pipeworx gateway to get every pack's tools listed
|
|
101
|
+
directly, instead of just this one's:
|
|
27
102
|
|
|
28
103
|
```json
|
|
29
104
|
{
|
|
@@ -35,9 +110,50 @@ Or connect to the full Pipeworx gateway for access to all 884+ data sources:
|
|
|
35
110
|
}
|
|
36
111
|
```
|
|
37
112
|
|
|
113
|
+
Both URLs reach the same gateway and the same 1683+ data sources. The
|
|
114
|
+
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
|
|
115
|
+
reaches all of them from either one.
|
|
116
|
+
|
|
117
|
+
## No MCP client? Call it over HTTP
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
curl -X POST https://gateway.pipeworx.io/v1/tools/rba_cash_rate \
|
|
121
|
+
-H 'Content-Type: application/json' \
|
|
122
|
+
-d '{}'
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/rba_cash_rate`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
|
|
126
|
+
|
|
127
|
+
## Standalone (no gateway account)
|
|
128
|
+
|
|
129
|
+
This package also runs as a local stdio MCP server — no Pipeworx account, no
|
|
130
|
+
gateway round-trip:
|
|
131
|
+
|
|
132
|
+
```json
|
|
133
|
+
{
|
|
134
|
+
"mcpServers": {
|
|
135
|
+
"rba": {
|
|
136
|
+
"command": "npx",
|
|
137
|
+
"args": ["-y", "@pipeworx/mcp-rba"]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Or run it directly to confirm it starts:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
npx -y @pipeworx/mcp-rba
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
|
|
150
|
+
for **only** this pack's tools — none of the shared meta-tools the gateway
|
|
151
|
+
connection above adds. Same source, same tools, no ask_pipeworx routing.
|
|
152
|
+
|
|
38
153
|
## Using with ask_pipeworx
|
|
39
154
|
|
|
40
|
-
Instead of calling tools directly, you can ask questions in plain English
|
|
155
|
+
Instead of calling tools directly, you can ask questions in plain English —
|
|
156
|
+
this works on the pack endpoint above as well as on the full gateway:
|
|
41
157
|
|
|
42
158
|
```
|
|
43
159
|
ask_pipeworx({ question: "your question about Rba data" })
|
|
@@ -47,7 +163,7 @@ The gateway picks the right tool and fills the arguments automatically.
|
|
|
47
163
|
|
|
48
164
|
## More
|
|
49
165
|
|
|
50
|
-
- [
|
|
166
|
+
- [Docs and guides](https://pipeworx.io/docs)
|
|
51
167
|
- [pipeworx.io](https://pipeworx.io)
|
|
52
168
|
|
|
53
169
|
## License
|
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,20 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipeworx/mcp-rba",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "RBA MCP — Reserve Bank of Australia statistics (free, no auth).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"types": "src/index.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"mcp-rba": "bin/cli.js"
|
|
10
|
+
},
|
|
8
11
|
"keywords": ["mcp", "mcp-server", "model-context-protocol", "pipeworx", "rba"],
|
|
9
12
|
"license": "MIT",
|
|
10
13
|
"repository": {
|
|
11
14
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/pipeworx-io/mcp-rba"
|
|
15
|
+
"url": "git+https://github.com/pipeworx-io/mcp-rba.git"
|
|
13
16
|
},
|
|
14
17
|
"scripts": {
|
|
15
18
|
"typecheck": "tsc --noEmit"
|
|
16
19
|
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
22
|
+
"tsx": "^4.19.0"
|
|
23
|
+
},
|
|
17
24
|
"devDependencies": {
|
|
18
|
-
"typescript": "^5.
|
|
25
|
+
"typescript": "^5.9.3",
|
|
26
|
+
"@cloudflare/workers-types": "^4.20260405.1"
|
|
27
|
+
},
|
|
28
|
+
"pipeworx": {
|
|
29
|
+
"sourceHash": "v1-82d4dcb8092bff1e666c0487c404dbd335b6cb082501b241d48f3d472b7a5197",
|
|
30
|
+
"sourceCommit": "6fe8fb3e01138dfc4ebe7d5c246503aab9278d06"
|
|
19
31
|
}
|
|
20
32
|
}
|
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.pipeworx-io/rba",
|
|
4
4
|
"title": "Rba",
|
|
5
5
|
"description": "RBA MCP — Reserve Bank of Australia statistics (free, no auth).",
|
|
6
|
-
"version": "0.1
|
|
6
|
+
"version": "0.2.1",
|
|
7
7
|
"websiteUrl": "https://pipeworx.io/packs/rba",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/pipeworx-io/mcp-rba",
|