| name | pp-exchangerate-api | |||||||
|---|---|---|---|---|---|---|---|---|
| description | Every ExchangeRate-API endpoint, plus a local rate history, watchlists, drift alerts, and an MCP server no one else... Trigger phrases: `convert USD to EUR`, `what's the exchange rate for`, `check my FX quota`, `sync exchange rates`, `what was USD/EUR last week`, `use exchangerate-api`, `run exchangerate-api`. | |||||||
| author | Vinny Pasceri | |||||||
| license | Apache-2.0 | |||||||
| argument-hint | <command> [args] | install cli|mcp | |||||||
| allowed-tools | Read Bash | |||||||
| metadata |
|
This skill drives the exchangerate-api-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer:
npx -y @mvanhorn/printing-press-library install exchangerate-api --cli-only
- Verify:
exchangerate-api-pp-cli --version - Ensure
$GOPATH/bin(or$HOME/go/bin) is on$PATH.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
go install github.com/mvanhorn/printing-press-library/library/payments/exchangerate-api/cmd/exchangerate-api-pp-cli@latestIf --version reports "command not found" after install, the install step did not put the binary on $PATH. Do not proceed with skill commands until verification succeeds.
Reach for exchangerate-api-pp-cli whenever an agent or script needs live FX rates, multi-target conversions, or persistent historical context. It's the right pick over a one-off HTTP call when the agent will run more than once on the same data, when quota matters (1500/mo Free tier), or when the workflow benefits from a watchlist, drift report, or cross-rate matrix that requires local state. Use the MCP server (mcp serve) when wiring FX context into Claude Desktop, Cursor, or Windsurf.
Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
These capabilities aren't available in any other tool for this API.
-
history-cache— Reconstruct historical FX rates from your priorlatestsyncs — free tier gets time travel without/historyquota.Use when the user asks for past rates and the API key is on the Free or Standard tier where
/historyreturns plan-upgrade-required.exchangerate-api-pp-cli history-cache USD EUR --since 30d --json
-
watch check— Define currency pairs with movement thresholds; one command reports which crossed since the last check.Use as a periodic monitor (cron/agent loop) instead of polling a paid alerting service.
exchangerate-api-pp-cli watch check --json
-
drift— Diff the latest snapshot against any prior point and report the biggest movers as ranked output.Use to surface unusual FX moves the user cares about without writing a custom analysis.
exchangerate-api-pp-cli drift --base USD --since 24h --top 10 --json
-
pair --as-of— Look up the rate from local snapshots at any historical timestamp — free tier time travel.Use when reconstructing the rate that was live at a specific moment without needing the paid
/historyendpoint.exchangerate-api-pp-cli rates pair USD EUR --as-of 1h --json
-
quota burn— Fit a trend overquota_snapshotsand project when your quota will exhaust before refresh day.Use before deploying anything that will hammer the API — the projection tells you if you'll survive the month.
exchangerate-api-pp-cli quota burn --json
-
matrix— Show full cross-rate matrix for any set of currencies from a singlelatestcall — N² rates, 1 quota tick.Use when comparing many pairs at once; saves quota and runs offline after one sync.
exchangerate-api-pp-cli matrix USD,EUR,GBP,JPY --base USD --json
-
convert-batch— Pipe a list of amounts to a single command; converts all of them with one rate fetch.Use when processing many amounts (orders, transactions) without burning the quota linearly.
exchangerate-api-pp-cli convert-batch --from USD --to EUR --input /dev/null --json
-
plan-check— Probe each tier-gated endpoint with a single low-cost request; reports which tier your key supports.Use right after
doctorto know which commands will work withoutplan-upgrade-required.exchangerate-api-pp-cli plan-check --json
-
log show— Everyconvertcall is logged; query the log by base, target, time window for recurring conversion analysis.Use to remind an agent what FX work was done recently without re-querying the API.
exchangerate-api-pp-cli log show --since 7d --json
-
mcp serve— Every user-facing command is exposed as an MCP tool with read-only annotations on safe queries.Use when wiring Claude/Cursor/Windsurf to FX context — no competing MCP for this API today.
exchangerate-api-pp-cli mcp serve
The API key is read from EXCHANGERATE_API_KEY — never pass it as a positional.
codes — Supported currency codes
exchangerate-api-pp-cli codes— List all 161 supported currency codes
quota — Your API quota usage
exchangerate-api-pp-cli quota— Check remaining requests in the current quota periodexchangerate-api-pp-cli quota burn— Project quota exhaustion from quota_snapshots history
rates — Live exchange rates and conversions
exchangerate-api-pp-cli rates latest <base_code>— Get all exchange rates from a base currencyexchangerate-api-pp-cli rates pair <base_code> <target_code>— Get conversion rate between two currenciesexchangerate-api-pp-cli rates pair-amount <base_code> <target_code> <amount>— Convert a specific amount between two currenciesexchangerate-api-pp-cli rates enriched <base_code> <target_code>— Pair conversion with locale, flag, and currency display metadata (Business/Volume tier)exchangerate-api-pp-cli rates history <base_code> <year> <month> <day>— Historical exchange rates for a specific date (Pro/Business/Volume tier)
When you know what you want to do but not which command does it, ask the CLI directly:
exchangerate-api-pp-cli which "<capability in your own words>"which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.
exchangerate-api-pp-cli convert 1000 USD EUR --json --select conversion_resultReturns just the converted number for downstream piping.
exchangerate-api-pp-cli sync-rates --base USD && exchangerate-api-pp-cli drift --base USD --since 24h --top 10 --jsonCaptures today's rates and surfaces the largest movers vs the prior snapshot.
exchangerate-api-pp-cli quota burn --json --select projected_exhaustion,requests_remainingProjects when the monthly quota will run out, given recent usage.
exchangerate-api-pp-cli matrix USD,EUR,GBP,JPY,CHF,CAD --base USD --csvFull N×N matrix from one API call; pipes cleanly into spreadsheets.
exchangerate-api-pp-cli watch add USD EUR --threshold 1.0 && exchangerate-api-pp-cli watch check --jsonStores a threshold; subsequent watch check calls flag any pair that crossed.
Set EXCHANGERATE_API_KEY from your ExchangeRate-API dashboard (https://app.exchangerate-api.com/). All commands route through https://v6.exchangerate-api.com/v6/{key}/.... The open command uses the keyless https://open.er-api.com/v6/latest/{base} endpoint and requires the 'Rates By Exchange Rate API' attribution if you redistribute its output.
Run exchangerate-api-pp-cli doctor to verify setup.
Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.
-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —
--selectkeeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:exchangerate-api-pp-cli codes --agent --select supported_codes
-
Previewable —
--dry-runshows the request without sending -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
-
Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests
Commands that read from the local store or the API wrap output in a provenance envelope:
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set — piped/agent consumers and explicit-format runs get pure JSON on stdout.
When you (or the agent) notice something off about this CLI, record it:
exchangerate-api-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
exchangerate-api-pp-cli feedback --stdin < notes.txt
exchangerate-api-pp-cli feedback list --json --limit 10
Entries are stored locally at ~/.exchangerate-api-pp-cli/feedback.jsonl. They are never POSTed unless EXCHANGERATE_API_FEEDBACK_ENDPOINT is set AND either --send is passed or EXCHANGERATE_API_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.
Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
| Sink | Effect |
|---|---|
stdout |
Default; write to stdout only |
file:<path> |
Atomically write output to <path> (tmp + rename) |
webhook:<url> |
POST the output body to the URL (application/json or application/x-ndjson when --compact) |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
exchangerate-api-pp-cli profile save briefing --json
exchangerate-api-pp-cli --profile briefing codes
exchangerate-api-pp-cli profile list --json
exchangerate-api-pp-cli profile show briefing
exchangerate-api-pp-cli profile delete briefing --yes
Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
Parse $ARGUMENTS:
- Empty,
help, or--help→ showexchangerate-api-pp-cli --helpoutput - Starts with
install→ ends withmcp→ MCP installation; otherwise → see Prerequisites above - Anything else → Direct Use (execute as CLI command with
--agent)
Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
claude mcp add exchangerate-api-pp-mcp -- exchangerate-api-pp-mcpVerify: claude mcp list
- Check if installed:
which exchangerate-api-pp-cliIf not found, offer to install (see Prerequisites at the top of this skill). - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the
--agentflag:exchangerate-api-pp-cli <command> [subcommand] [args] --agent
- If ambiguous, drill into subcommand help:
exchangerate-api-pp-cli <command> --help.