npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@braynexservices/nigeria-mcp-fx-rates

v0.2.6

Published

Nigeria FX Rates MCP — live Naira (NGN) exchange rates vs major currencies (USD/EUR/GBP) from a free, keyless source, as MCP tools.

Downloads

1,253

Readme

Nigeria FX Rates MCP

Live Naira (NGN) exchange rates vs major currencies, exposed to AI agents as MCP tools.

Status: 🌐 LIVE + free (no API key) Package: @braynexservices/nigeria-mcp-fx-rates v0.2.2 · depends on @braynexservices/nigeria-mcp-core Author: Samuel Orie (Founder) · Owner: Braynex Services Ltd · License: MIT © 2026 Braynex Services Ltd — MIT licensed (copyright retained; see repo-root NOTICE).


What it does

Returns the Naira's exchange rate against major currencies (USD, EUR, GBP). Rates are fetched live from open.er-api.com (free, keyless) and cached ~1h. Each rate means 1 {quote} = {rate} {base}, base = NGN (e.g. 1 USD = 1,366 NGN). Public market data — no PII, no key.

Tool

get_fx_rates

| Param | Required | Notes | |---|---|---| | base | — | base currency (only NGN is supported; defaults to NGN) | | quote | — | filter to one quote currency (e.g. USD); omit for USD + EUR + GBP |

Example:

// → get_fx_rates({ "quote": "USD" })
"1 USD = 1,365.90 NGN (official)"
// structuredContent.rates: [{ base:"NGN", quote:"USD", rate:1365.9, market:"official", source:"open-er-api", retrievedAt }]

// → get_fx_rates({})
"1 USD = 1,365.90 NGN" · "1 EUR = 1,562.07 NGN" · "1 GBP = 1,808.96 NGN"

market: "official" = the post-2023-float market/interbank (NAFEM) window. The parallel ("aboki") rate needs a different source and is not provided here (mock-only / future tier).

Configuration — FX_PROVIDER

| Value | Behaviour | |---|---| | mock (default) | Offline deterministic fixtures (NGN vs USD/EUR/GBP, official + parallel) — for dev/eval | | free | Live rates from open.er-api.com (keyless). Set this for real data. |

No API key required.

Run it

npm install && npm run build      # from repo root

npm run smoke      -w @braynexservices/nigeria-mcp-fx-rates   # offline (mock)
npm run smoke:live -w @braynexservices/nigeria-mcp-fx-rates   # live (real API)

FX_PROVIDER=free npm run start:stdio -w @braynexservices/nigeria-mcp-fx-rates   # serve over stdio, live

MCP Inspector (interactive GUI):

FX_PROVIDER=free npx @modelcontextprotocol/inspector node lanes/fx-rates/dist/stdio.js

Claude Desktop / Code — add to your MCP config (needs Node.js ≥ 20):

{
  "mcpServers": {
    "nigeria-fx-rates": {
      "command": "npx",
      "args": ["-y", "@braynexservices/nigeria-mcp-fx-rates"],
      "env": { "FX_PROVIDER": "free" }
    }
  }
}

Running from a clone instead: "command": "node", "args": ["/path/to/nigeria-mcp/lanes/fx-rates/dist/stdio.js"]. Then ask, e.g., "What's the dollar to naira rate right now?"

Limits & notes

  • Rates are cached ~1h (open.er-api refreshes ~daily) — cuts calls and respects the free tier. 15s fetch timeout with backoff-retry on transient failures (timeout, network, 429/5xx); falls back to an actionable error (or set FX_PROVIDER=mock).
  • NGN-base only: a non-NGN base returns no rows (this lane is Naira-centric).
  • Official window only via the free source; parallel/aboki = future tier.
  • Source: rates carry source: "open-er-api" and a fresh retrievedAt per call.

Verification

npm run verify (repo root) → build + all lane smokes + eval. This lane: offline smoke + smoke:live against the real API, independent code-review (USD self-rate verified), cached.