[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Xe live exchange rates](https://spiral.ai/integrations/claude-code/xe-live-exchange-rates)

# How to Use Xe live exchange rates in Claude Code

Get current exchange rates for several currencies against one base. Use it for a currency comparison table when separate pair-by-pair conversions would add unnecessary work.

|  |  |
| --- | --- |
| Model | Xe live exchange rates |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Xe live exchange rates in Claude Code

- Use Xe live exchange rates to get EUR, GBP, CAD, and JPY against USD, then populate my project's comparison table with clearly labeled rate directions.
- Use Xe live exchange rates to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Xe live exchange rates and tell me what changed since last week.
- Check Xe live exchange rates and summarize what you find in three bullet points.
- Pull the newest data from Xe live exchange rates and give me the result as a table.

## How to set up Xe live exchange rates in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Xe live exchange rates**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "xe-com/exchange-rates/live_rates",
    "input": {
      "base": "<base>"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Xe live exchange rates on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Xe live exchange rates tools and prices

- [XE currency data · Live rates](https://spiral.ai/tools/alexandria/xe-com/exchange-rates/live_rates) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| base |  | — | Base currency code. Default USD. |
| quotes |  | — | Only these quote currencies, in this order. Each must be a code XE publishes. |

## What can you do with Xe live exchange rates in Claude Code?

Build a currency research view with recognizable currency labels and Xe exchange-rate context. Coding agents can turn the returned data into selectors, conversion examples, comparison tables, or historical charts in your project.

### Compare a multicountry travel budget

Identify CAD, EUR, and JPY by name and symbol, then compare their current USD equivalents and convert sample travel expenses.

### Explain exchange-rate changes in an invoice estimate

Where licensed, compare a EUR invoice's current USD equivalent with its value on the invoice date. Add the pair's history to show how the reference rate moved between those dates.

### Prepare a currency market briefing

Where licensed, identify the currencies in a USD, EUR, GBP, and JPY watchlist, explain their reference details, compare current and past rates, and illustrate the effect on a sample amount.

### Plan a store's currency display

Where licensed, use currency names and symbols to label a store's supported markets, compare current reference rates, and check converted sample amounts before implementation.

### Build a currency research application

Where licensed, combine a currency directory and profiles with amount conversion, current comparison tables, dated snapshots, and historical charts.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Xe live exchange rates in other agents

- [Amp](https://spiral.ai/integrations/amp/xe-live-exchange-rates)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/xe-live-exchange-rates)
- [Claude](https://spiral.ai/integrations/claude-desktop/xe-live-exchange-rates)
- [Cline](https://spiral.ai/integrations/cline/xe-live-exchange-rates)
- [Codex](https://spiral.ai/integrations/codex/xe-live-exchange-rates)
- [Cursor](https://spiral.ai/integrations/cursor/xe-live-exchange-rates)
- [Devin](https://spiral.ai/integrations/devin/xe-live-exchange-rates)
- [dots](https://spiral.ai/integrations/dots/xe-live-exchange-rates)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/xe-live-exchange-rates)
- [Gemini](https://spiral.ai/integrations/gemini/xe-live-exchange-rates)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/xe-live-exchange-rates)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/xe-live-exchange-rates)
- [goose](https://spiral.ai/integrations/goose/xe-live-exchange-rates)
- [Grok](https://spiral.ai/integrations/grok/xe-live-exchange-rates)
- [Grok Build](https://spiral.ai/integrations/grok-build/xe-live-exchange-rates)
- [Hermes](https://spiral.ai/integrations/hermes/xe-live-exchange-rates)
- [Instinct](https://spiral.ai/integrations/instinct/xe-live-exchange-rates)
- [Manus](https://spiral.ai/integrations/manus/xe-live-exchange-rates)
- [Muse](https://spiral.ai/integrations/muse/xe-live-exchange-rates)
- [Muse Code](https://spiral.ai/integrations/muse-code/xe-live-exchange-rates)
- [n8n](https://spiral.ai/integrations/n8n/xe-live-exchange-rates)
- [Notion](https://spiral.ai/integrations/notion/xe-live-exchange-rates)
- [OpenClaw](https://spiral.ai/integrations/openclaw/xe-live-exchange-rates)
- [opencode](https://spiral.ai/integrations/opencode/xe-live-exchange-rates)
- [Perplexity](https://spiral.ai/integrations/perplexity/xe-live-exchange-rates)
- [Raycast](https://spiral.ai/integrations/raycast/xe-live-exchange-rates)
- [VS Code](https://spiral.ai/integrations/vscode/xe-live-exchange-rates)
- [Windsurf](https://spiral.ai/integrations/windsurf/xe-live-exchange-rates)
- [Zapier](https://spiral.ai/integrations/zapier/xe-live-exchange-rates)

## More Claude Code guides

- [Xe historical exchange rates](https://spiral.ai/integrations/claude-code/xe-historical-exchange-rates)
- [Yahoo Finance company earnings](https://spiral.ai/integrations/claude-code/yahoo-finance-company-earnings)
- [Xe exchange rate history](https://spiral.ai/integrations/claude-code/xe-exchange-rate-history)
- [Yahoo Finance dividend history](https://spiral.ai/integrations/claude-code/yahoo-finance-dividend-history)
- [Xe currency profile](https://spiral.ai/integrations/claude-code/xe-currency-profile)
- [Yahoo Finance stock price history](https://spiral.ai/integrations/claude-code/yahoo-finance-stock-price-history)

## Questions about Xe live exchange rates in Claude Code

**Can Claude Code use Xe live exchange rates?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Xe live exchange rates like any built-in tool.

**How much does Xe live exchange rates cost in Claude Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use Xe live exchange rates in Claude Code?**

No. Spiral runs Xe live exchange rates on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Xe live exchange rates in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while Xe live exchange rates runs?**

Xe live exchange rates runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**How many currencies does Xe cover?**

Xe says its converter covers more than 170 currencies. That is source coverage, rather than a promise that every currency has the same historical depth.

**How fresh are Xe's current rates?**

Xe describes its converter rates as up to the minute. This describes the source display and does not establish a separate refresh guarantee for these endpoints.

**Will a transfer use the exchange rate shown by Xe?**

Xe's converter shows a mid-market reference rate. Its money-transfer send rate is different and includes a margin.

**How far back do Xe's currency charts go?**

Xe offers chart periods of up to 10 years using mid-market rates. Its historical tables provide a separate view organized around a base currency and a past date.

**What currency information is public on Xe?**

Xe publicly lists currency codes and names in its Currency Encyclopedia. Individual profiles include reference details such as the US dollar's symbol and its cent minor unit.

