# Bank of Canada Foreign Exchange

Bank of Canada Foreign Exchange — a remote MCP server with one tool that returns the official USD/CAD rate for a given date from the Bank of Canada Valet API.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 448 installs
- Author: bill-ying
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/bill-ying/bank-of-canada-foreign-exchange
- Updated: 2026-05-17
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/bank-of-canada-foreign-exchange

## What it does

The server exposes a single tool, `get_rate`. It hands back the US dollar rate against the Canadian dollar for a date you name. Figures come from the Bank of Canada Valet API, so your agent quotes an official number instead of guessing.

It speaks HTTP at `https://bank-of-canada-foreign-exchange--bill-ying.run.tools`. You drop that URL into your client config and nothing gets built or started on your machine. The source is TypeScript, written with Cloudflare Workers in mind.

One pair only: USD and CAD. Ask this server for euros and you walk away empty-handed. Since the date is an argument, past rates come back the same way today's do.

## Requirements
- Remote server: `https://bank-of-canada-foreign-exchange--bill-ying.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http bank-of-canada-foreign-exchange https://bank-of-canada-foreign-exchange--bill-ying.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add bank-of-canada-foreign-exchange --url https://bank-of-canada-foreign-exchange--bill-ying.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "bank-of-canada-foreign-exchange": {
            "url": "https://bank-of-canada-foreign-exchange--bill-ying.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "bank-of-canada-foreign-exchange": {
            "type": "http",
            "url": "https://bank-of-canada-foreign-exchange--bill-ying.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http bank-of-canada-foreign-exchange https://bank-of-canada-foreign-exchange--bill-ying.run.tools
```

## When to use it
- look up the official USD/CAD rate for a given day
- feed a Bank of Canada figure into a calculation instead of a model guess
- check a historical rate for an earlier period
- add a currency number to an agent report without manual searching

## Example prompts
- Get the USD/CAD rate for last Friday with `get_rate`.
- Use `get_rate` to check what the Canadian dollar cost in US dollars at quarter end.
- Look up the rate for the date in `report.csv` via `get_rate` and put it in the summary.

## Similar
- [Exchange Rate API](https://affpapa.org/en/nevibecode/mcp/exchange-rate-api.md) — MCP server · 273 installs
- [Central Bank Rates (AllRatesToday)](https://affpapa.org/en/nevibecode/mcp/central-bank-rates-allratestoday.md) — MCP server · ★ 1 repo stars
- [AllRatesToday exchange rates (hosted)](https://affpapa.org/en/nevibecode/mcp/allratestoday-exchange-rates-hosted.md) — MCP server · ★ 4 repo stars
- [BNR exchange rates](https://affpapa.org/en/nevibecode/mcp/bnr-exchange-rates.md) — MCP server · ★ 5 repo stars
- [exchange-mcp](https://affpapa.org/en/nevibecode/mcp/exchange-mcp.md) — MCP server · 9701 installs
- [exchange-rates-mcp-server](https://affpapa.org/en/nevibecode/mcp/exchange-rates-mcp-server.md) — MCP server · 1637 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
