io.github.arose26/bank-of-canada-mcp

السجل الرسمي المالية والمدفوعات

Bank of Canada economic data: exchange rates, policy rate, CPI, bond yields. No API key.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package bank-of-canada-mcp
Claude Code
claude mcp add bank-of-canada-mcp -- npx -y bank-of-canada-mcp@0.1.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "bank-of-canada-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "bank-of-canada-mcp@0.1.1"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. bank-of-canada-mcp
  2. Quick start
  3. Tools
  4. Example prompts
  5. Development
  6. Notes
  7. Roadmap
  8. License

bank-of-canada-mcp

An MCP server that gives Claude and other LLMs live access to Canadian economic data via the Bank of Canada's free Valet API — ~16,000 time series covering exchange rates, the policy interest rate, CPI, bond yields, commodity prices, and more.

FRED, the World Bank, and the IMF all have MCP servers. Canada didn't — now it does.

No API key required.

Quick start

Claude Code

claude mcp add bank-of-canada -- npx -y bank-of-canada-mcp

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "bank-of-canada": {
      "command": "npx",
      "args": ["-y", "bank-of-canada-mcp"]
    }
  }
}

The same npx invocation works in Cursor, Windsurf, and any other MCP client.

Tools

ToolWhat it does
search_seriesKeyword search across the full series catalogue — find the series name for anything ("overnight rate target", "CPI", "5-year bond")
get_observationsTime-series data for up to 5 series, by date range or N most recent
latest_fx_ratesToday's official daily exchange rates vs CAD
convert_currencyConvert between any two supported currencies using today's rates

Example prompts

  • "What's the Bank of Canada's current policy rate, and how has it moved this year?"
  • "Plot USD/CAD for the last 90 days."
  • "Convert 2,500 EUR to CAD at today's official rate."
  • "How does core CPI compare to headline CPI over the past two years?"

Development

npm install
npm test        # offline unit tests (vitest)
npm run build   # tsc → dist/

Architecture: src/valet.ts is a plain API client with pure, unit-tested logic (search, conversion math); src/index.ts is the MCP wiring. Errors from the Valet API (e.g. an unknown series name) are returned as MCP tool errors with the API's own message, so the model can self-correct by re-searching.

Notes

  • Rates are the Bank of Canada's indicative daily averages, published once per business day — not transactional quotes.
  • Data is © Bank of Canada, used under their terms. This project is not affiliated with or endorsed by the Bank of Canada.

Roadmap

  • Statistics Canada Web Data Service tools
  • Group browsing (lists/groups)
  • Streamable HTTP transport for remote deployment

License

MIT

الأسئلة الشائعة

ما هو io.github.arose26/bank-of-canada-mcp؟

Bank of Canada economic data: exchange rates, policy rate, CPI, bond yields. No API key.

كيف أثبّت io.github.arose26/bank-of-canada-mcp؟

يعمل على جهازك. في Claude Code: claude mcp add bank-of-canada-mcp -- npx -y bank-of-canada-mcp@0.1.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.arose26/bank-of-canada-mcp إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.arose26/bank-of-canada-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.arose26/bank-of-canada-mcp؟

ينشره arose26. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.