@allratestoday/mcp-server 0.7.16 → 0.7.17
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 +4 -5
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ After installation, your assistant can answer questions like:
|
|
|
31
31
|
|
|
32
32
|
## ⚖️ Mid-market vs official central-bank rates
|
|
33
33
|
|
|
34
|
-
With a key, `get_exchange_rate`, `get_historical_rates` and `get_rates_authenticated` return a **mid-market rate**, refreshed every ~60 seconds — the right number for price display, conversion, and anything that should track the market. It is *not* the official rate a tax authority or auditor may require. For those, call **`get_official_rates`**: the latest table published by any of [
|
|
34
|
+
With a key, `get_exchange_rate`, `get_historical_rates` and `get_rates_authenticated` return a **mid-market rate**, refreshed every ~60 seconds — the right number for price display, conversion, and anything that should track the market. It is *not* the official rate a tax authority or auditor may require. For those, call **`get_official_rates`**: the latest table published by any of [123 central banks and 5 tax authorities](https://allratestoday.com/central-bank-rates-api/institutions/) (ECB, Fed, HMRC, US Treasury, Swiss BAZG, …), fixed once published and carrying the institution's own `rate_date`, no key needed. `list_central_banks` gives the codes. Dated official tables (a past `date`) need an API key on a **paid plan** — a free key gets `403 Historical central bank rates require a paid plan`. Mid-market history (`get_historical_rates`, and `time` on `get_rates_authenticated`) is paid-plan too — free and trial keys get `403`. See the [central bank REST API](https://allratestoday.com/docs/#central-bank) and [per-bank npm SDKs](https://allratestoday.com/central-bank-rates-api/). The two can diverge by several percent, so pick by use case, not convenience.
|
|
35
35
|
|
|
36
36
|
## 🔑 Get your API key (free)
|
|
37
37
|
|
|
@@ -57,7 +57,7 @@ Install it with no configuration at all and it starts, connects, and answers:
|
|
|
57
57
|
|---|---|---|
|
|
58
58
|
| `get_exchange_rate` | ✅ | An **official central-bank rate**: the ECB reference table first, else the central bank that issues the target or source currency (USD/GBP → Bank of England, USD/INR → Reserve Bank of India). The response carries `bank`, `rate_date`, `derived` and a note saying so, so the assistant never passes it off as a live quote. Only pairs one bank publishes, or their inverses (flagged `derived: true`), work keyless; other crosses are refused with a pointer to the key. |
|
|
59
59
|
| `list_currencies` | ✅ | All 160+ supported ISO 4217 codes. |
|
|
60
|
-
| `list_central_banks` | ✅ | Codes, names and latest publication date of all [
|
|
60
|
+
| `list_central_banks` | ✅ | Codes, names and latest publication date of all [123 central banks and 5 tax authorities](https://allratestoday.com/central-bank-rates-api/institutions/). |
|
|
61
61
|
| `get_official_rates` | ✅ | Latest **official table** (or one pair) published by any of them. A dated table needs a paid-plan key. |
|
|
62
62
|
| `get_reference_rate` | ✅ | The **Daily Reference Rate**: one never-revised table per business day, fixed at 16:00 London. A past date needs a paid-plan key. |
|
|
63
63
|
| `request_trial_key` | ✅ | Self-issues a 100-call, 7-day key with no account and adopts it for the session. |
|
|
@@ -129,8 +129,7 @@ Each client reads MCP servers from a different config file. Pick yours below.
|
|
|
129
129
|
The fastest path uses the built-in CLI:
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
|
-
claude mcp add allratestoday -- npx -y @allratestoday/mcp-server
|
|
133
|
-
claude mcp env allratestoday ALLRATES_API_KEY=art_live_xxxxx
|
|
132
|
+
claude mcp add allratestoday -e ALLRATES_API_KEY=art_live_xxxxx -- npx -y @allratestoday/mcp-server
|
|
134
133
|
```
|
|
135
134
|
|
|
136
135
|
Restart Claude Code. Verify by asking it: *"What's the current USD to EUR rate?"*
|
|
@@ -375,7 +374,7 @@ All supported currencies with codes, names, and symbols. Cached upstream for 24
|
|
|
375
374
|
|
|
376
375
|
### `list_central_banks`
|
|
377
376
|
|
|
378
|
-
Every official source the server can quote — [
|
|
377
|
+
Every official source the server can quote — [123 central banks](https://allratestoday.com/central-bank-rates-api/institutions/) plus HMRC, the US Treasury, Swiss BAZG, India's CBIC and Peru's SUNAT — with the `code` that `get_official_rates` takes as `bank`, the institution's name, its latest publication date, `age_days`, its publication `cadence` and a `stale` flag when it is behind its own schedule. Keyless.
|
|
379
378
|
|
|
380
379
|
**Input** — none.
|
|
381
380
|
|
package/dist/client.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare class AllRatesTodayClient {
|
|
|
78
78
|
target: string;
|
|
79
79
|
time: string;
|
|
80
80
|
}[]>;
|
|
81
|
-
/** Every covered official source (
|
|
81
|
+
/** Every covered official source (123 central banks + 5 tax authorities). Keyless. */
|
|
82
82
|
listCentralBanks(): Promise<{
|
|
83
83
|
sources: {
|
|
84
84
|
code: string;
|
package/dist/client.js
CHANGED
|
@@ -200,7 +200,7 @@ export class AllRatesTodayClient {
|
|
|
200
200
|
: new NeedsKeyError('Multi-target rates'));
|
|
201
201
|
return this.request('/v1/rates', params);
|
|
202
202
|
}
|
|
203
|
-
/** Every covered official source (
|
|
203
|
+
/** Every covered official source (123 central banks + 5 tax authorities). Keyless. */
|
|
204
204
|
listCentralBanks() {
|
|
205
205
|
return this.request(this.keyless ? '/open/central-banks' : '/v1/central-banks', {});
|
|
206
206
|
}
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ async function main() {
|
|
|
43
43
|
' Available now, no key needed:',
|
|
44
44
|
' • get_exchange_rate — official central-bank rate (ECB, else the issuing bank)',
|
|
45
45
|
' • list_currencies — all supported currency codes',
|
|
46
|
-
' • list_central_banks —
|
|
46
|
+
' • list_central_banks — 123 central banks + 5 tax authorities we carry',
|
|
47
47
|
' • get_official_rates — latest official table (or one pair) from any of them',
|
|
48
48
|
' • get_reference_rate — Daily Reference Rate, one fixed table per business day (16:00 London)',
|
|
49
49
|
' • request_trial_key — self-issue a 100-call, 7-day key without an account',
|
|
@@ -176,7 +176,7 @@ async function main() {
|
|
|
176
176
|
});
|
|
177
177
|
server.registerTool('list_central_banks', {
|
|
178
178
|
title: 'List covered central banks & tax authorities',
|
|
179
|
-
description: "Call this FIRST when you need a bank code, or for 'which central banks do you cover?' / 'do you have rates from X?'. Returns every covered source —
|
|
179
|
+
description: "Call this FIRST when you need a bank code, or for 'which central banks do you cover?' / 'do you have rates from X?'. Returns every covered source — 123 central banks plus 5 tax authorities (HMRC, US Treasury, Swiss BAZG, India CBIC, Peru SUNAT) — with `code` (what get_official_rates takes as `bank`), name, latest publication date and whether it is behind schedule. No API key needed.",
|
|
180
180
|
inputSchema: {},
|
|
181
181
|
outputSchema: {
|
|
182
182
|
sources: z.array(z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/mcp-server",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.17",
|
|
4
4
|
"mcpName": "io.github.cahthuranag/mcp-server",
|
|
5
5
|
"description": "MCP server for AllRatesToday — let AI coding tools (Claude Code, Cursor, Claude Desktop) fetch real-time and historical currency exchange rates.",
|
|
6
6
|
"keywords": [
|