@allratestoday/mcp-server 0.7.17 → 0.7.19

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 CHANGED
@@ -8,6 +8,8 @@ Website: https://allratestoday.com · Hosted endpoint (no install): https://allr
8
8
  [![MCP](https://img.shields.io/badge/Model%20Context%20Protocol-1.x-blue.svg)](https://modelcontextprotocol.io)
9
9
  [![TypeScript](https://img.shields.io/badge/TypeScript-3178C6.svg)](https://www.typescriptlang.org/)
10
10
 
11
+ [![AllRatesToday MCP server](https://mcprush.com/badge/allratestoday-mcp/card.svg)](https://mcprush.com/to/allratestoday-mcp?ref=badge)
12
+
11
13
  English | [简体中文](./README-zh-CN.md)
12
14
 
13
15
  **Give your AI assistant a live window into the foreign-exchange market. A Model Context Protocol server that lets Claude Code, Cursor, Claude Desktop, Windsurf, and any MCP-compatible client fetch real-time currency rates, historical series, and multi-currency lookups from the [AllRatesToday API](https://allratestoday.com).**
@@ -31,7 +33,7 @@ After installation, your assistant can answer questions like:
31
33
 
32
34
  ## ⚖️ Mid-market vs official central-bank rates
33
35
 
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.
36
+ 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 [130+ central banks and 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
37
 
36
38
  ## 🔑 Get your API key (free)
37
39
 
@@ -57,7 +59,7 @@ Install it with no configuration at all and it starts, connects, and answers:
57
59
  |---|---|---|
58
60
  | `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
61
  | `list_currencies` | ✅ | All 160+ supported ISO 4217 codes. |
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/). |
62
+ | `list_central_banks` | ✅ | Codes, names and latest publication date of all [130+ central banks and tax authorities](https://allratestoday.com/central-bank-rates-api/institutions/). |
61
63
  | `get_official_rates` | ✅ | Latest **official table** (or one pair) published by any of them. A dated table needs a paid-plan key. |
62
64
  | `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
65
  | `request_trial_key` | ✅ | Self-issues a 100-call, 7-day key with no account and adopts it for the session. |
@@ -374,7 +376,7 @@ All supported currencies with codes, names, and symbols. Cached upstream for 24
374
376
 
375
377
  ### `list_central_banks`
376
378
 
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
+ Every official source the server can quote — [120+ 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.
378
380
 
379
381
  **Input** — none.
380
382
 
@@ -579,6 +581,7 @@ Recent changes. Full history: [GitHub Releases](https://github.com/AllRates-Toda
579
581
  - [Status](https://allratestoday.com/status)
580
582
  - [Postman collection](https://allratestoday.com/postman/)
581
583
  - [ChatGPT app](https://chatgpt.com/plugins/plugin_asdk_app_6ae1e76098f48191a285ac3f5ab7a83b) — ask ChatGPT for live and official central bank rates
584
+ - [OpenAPI reference on Bump.sh](https://bump.sh/allratestoday/doc/allratestoday-api) — also on [SwaggerHub](https://app.swaggerhub.com/apis-docs/allratestoday/allratestoday-exchange-rate-central-bank-rates-api/2.2.0)
582
585
 
583
586
  ## 📜 License
584
587
 
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 (123 central banks + 5 tax authorities). Keyless. */
81
+ /** Every covered official source (130+ central banks and 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 (123 central banks + 5 tax authorities). Keyless. */
203
+ /** Every covered official source (130+ central banks and 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 — 123 central banks + 5 tax authorities we carry',
46
+ ' • list_central_banks — 130+ central banks and 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 — 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.",
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 — 130+ central banks and 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.17",
3
+ "version": "0.7.19",
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": [