Bank of Canada Foreign Exchange — Claude Code MCP server: what it does
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.
no license 448 installs updated 2026-05-17
claude mcp add --transport http bank-of-canada-foreign-exchange https://bank-of-canada-foreign-exchange--bill-ying.run.toolsWhat Bank of Canada Foreign Exchange 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.
What it helps with
- 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 for the agent
- Get the USD/CAD rate for last Friday with
get_rate. - Use
get_rateto check what the Canadian dollar cost in US dollars at quarter end. - Look up the rate for the date in
report.csvviaget_rateand put it in the summary.
How to install Bank of Canada Foreign Exchange
Platform CLI: remote server
claude mcp add --transport http bank-of-canada-foreign-exchange https://bank-of-canada-foreign-exchange--bill-ying.run.toolsPlatform CLI: remote server
codex mcp add bank-of-canada-foreign-exchange --url https://bank-of-canada-foreign-exchange--bill-ying.run.toolsConfig file
{
"mcpServers": {
"bank-of-canada-foreign-exchange": {
"url": "https://bank-of-canada-foreign-exchange--bill-ying.run.tools"
}
}
}Config file
{
"servers": {
"bank-of-canada-foreign-exchange": {
"type": "http",
"url": "https://bank-of-canada-foreign-exchange--bill-ying.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http bank-of-canada-foreign-exchange https://bank-of-canada-foreign-exchange--bill-ying.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Bank of Canada Foreign Exchange
How do I install Bank of Canada Foreign Exchange in Claude Code?
Run claude mcp add --transport http bank-of-canada-foreign-exchange https://bank-of-canada-foreign-exchange--bill-ying.run.tools. The server then shows up in the session with the get_rate tool.
What does Bank of Canada Foreign Exchange do?
It returns the USD/CAD rate for a chosen date from the Bank of Canada Valet API, through its one tool get_rate.
Which currency pairs does it cover?
USD and CAD only. The tool has no other pairs.