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

exchange-rate-mcp

v1.0.0

Published

๐Ÿ’ฑ Real-time Exchange Rate Tool for AI Agents (Built with Model Context Protocol)

Readme

Exchange Rate MCP Server

A real-time exchange rate tool built with the Model Context Protocol (MCP). This server allows AI agents (like Claude) to fetch accurate, up-to-date currency exchange rates.

๐Ÿ‡บ๐Ÿ‡ธ English Guide | ๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด ๊ฐ€์ด๋“œ


๐Ÿ‡บ๐Ÿ‡ธ English Guide

Features

  • Current exchange rates: Uses the reliable Frankfurter public API (based on European Central Bank data).
  • Fallback Support: Automatically falls back to a secondary open API (currency-api) for 150+ currencies not covered by the ECB.
  • No API Key Required: Fully open and public APIs. No signup or configuration needed!
  • MCP Integration: Designed to be integrated directly into MCP-compatible clients (e.g., Claude Desktop).

Supported Currencies & Update Frequency

This tool utilizes a dual-API approach to cover almost all global currencies:

โœ… Primary API (Frankfurter / ECB) The primary API provides exchange rates for 30 major currencies published by the European Central Bank (AUD, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, ILS, INR, ISK, JPY, KRW, MXN, MYR, NOK, NZD, PHP, PLN, RON, SEK, SGD, THB, TRY, USD, ZAR).

  • Update Frequency: Every working day around 16:00 CET. Highly accurate for daily rates.

โœ… Fallback API (Currency-API via JSDelivr) For any currency not in the list above (e.g., TWD (Taiwan), VND (Vietnam), RUB (Russia)), the server automatically falls back to an open CDN that tracks over 150+ global currencies.

  • Update Frequency: Updated daily.

If a currency is completely invalid or non-existent in both APIs, an error will be returned.

Installation

You can run this server using npx (Node.js is required). No manual downloading or building is necessary!

For Claude Desktop

  1. Open your Claude Desktop configuration file:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the following to your mcpServers configuration:

{
  "mcpServers": {
    "exchange-rate": {
      "command": "npx",
      "args": [
        "-y",
        "exchange-rate-mcp"
      ]
    }
  }
}
  1. Restart Claude Desktop. You should now see the get_exchange_rate tool available!

Local Development Setup

If you want to clone this repository and run it locally:

  1. Clone the repository and install dependencies:
git clone https://github.com/NotNull92/exchange-rate-mcp.git
cd exchange-rate-mcp
npm install
  1. Build and run:
npm run build
npm start

Available Tools

get_exchange_rate

Fetches the current exchange rate between two currencies. The output will indicate which data source (Frankfurter or Fallback) was used.

  • Parameters:
    • from (string, required): Source currency code (e.g., "USD").
    • to (string, required): Target currency code (e.g., "KRW").

๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด ๊ฐ€์ด๋“œ

์ฃผ์š” ๊ธฐ๋Šฅ

  • ์ •ํ™•ํ•œ ํ™˜์œจ ์ œ๊ณต: ์œ ๋Ÿฝ ์ค‘์•™์€ํ–‰(ECB) ๋ฐ์ดํ„ฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•˜๋Š” ์•ˆ์ •์ ์ธ ๋ฉ”์ธ ํผ๋ธ”๋ฆญ API (Frankfurter)๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
  • ํด๋ฐฑ(Fallback) ์ง€์›: ๋ฉ”์ธ API๊ฐ€ ์ง€์›ํ•˜์ง€ ์•Š๋Š” 150์—ฌ ๊ฐœ์˜ ์ „ ์„ธ๊ณ„ ํ†ตํ™”์— ๋Œ€ํ•ด์„œ๋Š” ์„œ๋ธŒ ์˜คํ”ˆ API(currency-api)๋กœ ์ž๋™ ์ „ํ™˜ํ•˜์—ฌ ์‘๋‹ตํ•ฉ๋‹ˆ๋‹ค.
  • API ํ‚ค ๋ถˆํ•„์š”: ์™„์ „ ๊ฐœ๋ฐฉํ˜• ํผ๋ธ”๋ฆญ API๋ฅผ ์‚ฌ์šฉํ•˜๋ฏ€๋กœ ๊ท€์ฐฎ์€ ๊ฐ€์ž…์ด๋‚˜ API ํ‚ค ์„ค์ •์ด ํ•„์š” ์—†์Šต๋‹ˆ๋‹ค!
  • MCP ์—ฐ๋™: Claude Desktop๊ณผ ๊ฐ™์€ MCP ํ˜ธํ™˜ AI ์—์ด์ „ํŠธ์— ์ฆ‰์‹œ ์—ฐ๋™ํ•˜์—ฌ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ง€์› ํ†ตํ™” ๋ฐ ์—…๋ฐ์ดํŠธ ์ฃผ๊ธฐ

์ด ๋„๊ตฌ๋Š” ์ „ ์„ธ๊ณ„ ๊ฑฐ์˜ ๋ชจ๋“  ํ†ตํ™”๋ฅผ ์ง€์›ํ•˜๊ธฐ ์œ„ํ•ด ๋‘ ๊ฐœ์˜ API๋ฅผ ๊ฒฐํ•ฉํ•˜์—ฌ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค:

โœ… ๋ฉ”์ธ API (Frankfurter / ์œ ๋Ÿฝ ์ค‘์•™์€ํ–‰ ๋ฐ์ดํ„ฐ) ์šฐ์„ ์ ์œผ๋กœ ์œ ๋Ÿฝ ์ค‘์•™์€ํ–‰์—์„œ ๊ณ ์‹œํ•˜๋Š” ์ฃผ์š” 30๊ฐœ๊ตญ์˜ ํ†ตํ™” ํ™˜์œจ์„ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค. (AUD, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, ILS, INR, ISK, JPY, KRW, MXN, MYR, NOK, NZD, PHP, PLN, RON, SEK, SGD, THB, TRY, USD, ZAR)

  • ์—…๋ฐ์ดํŠธ ์ฃผ๊ธฐ: ๋งค ์˜์—…์ผ 16:00 CET. ์ผ๋ณ„ ๊ธฐ์ค€ ํ™˜์œจ๋กœ ๋งค์šฐ ์ •ํ™•ํ•ฉ๋‹ˆ๋‹ค.

โœ… ์„œ๋ธŒ API (Currency-API JSDelivr ํด๋ฐฑ) ์œ„์˜ ์ฃผ์š” 30๊ฐœ๊ตญ ๋ชฉ๋ก์— ์—†๋Š” ํ†ตํ™” ์ฝ”๋“œ(์˜ˆ: ๋Œ€๋งŒ TWD, ๋ฒ ํŠธ๋‚จ VND, ๋Ÿฌ์‹œ์•„ RUB ๋“ฑ)๋ฅผ ์š”์ฒญํ•  ๊ฒฝ์šฐ, 150๊ฐœ ์ด์ƒ์˜ ์ „ ์„ธ๊ณ„ ํ†ตํ™”๋ฅผ ์ง€์›ํ•˜๋Š” ์„œ๋ธŒ ์˜คํ”ˆ API๋กœ ์ž๋™ ์ „ํ™˜(Fallback)๋˜์–ด ํ•ด๋‹น ํ™˜์œจ์„ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.

  • ์—…๋ฐ์ดํŠธ ์ฃผ๊ธฐ: ๋งค์ผ ์ฃผ๊ธฐ์ ์œผ๋กœ ์—…๋ฐ์ดํŠธ๋ฉ๋‹ˆ๋‹ค.

์กด์žฌํ•˜์ง€ ์•Š๊ฑฐ๋‚˜ ์–ด๋–ค API์—์„œ๋„ ์ œ๊ณตํ•˜์ง€ ์•Š๋Š” ์ž˜๋ชป๋œ ํ†ตํ™”๋ฅผ ์š”์ฒญํ•  ๊ฒฝ์šฐ์—๋งŒ ์—๋Ÿฌ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

์„ค์น˜ ๋ฐ ์—ฐ๋™ ๋ฐฉ๋ฒ•

Node.js ํ™˜๊ฒฝ์˜ npx ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์†์‰ฝ๊ฒŒ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ˆ˜๋™์œผ๋กœ ๋‹ค์šด๋กœ๋“œํ•˜๊ฑฐ๋‚˜ ๋นŒ๋“œํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค!

Claude Desktop ์—ฐ๋™ (์ถ”์ฒœ)

  1. Claude Desktop ์„ค์ • ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. mcpServers ํ•ญ๋ชฉ์— ๋‹ค์Œ ์„ค์ •์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค:

{
  "mcpServers": {
    "exchange-rate": {
      "command": "npx",
      "args": [
        "-y",
        "exchange-rate-mcp"
      ]
    }
  }
}
  1. Claude Desktop์„ ์™„์ „ํžˆ ์žฌ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค. ์ด์ œ get_exchange_rate ๋„๊ตฌ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค!

๋กœ์ปฌ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ตฌ์„ฑ

์ฝ”๋“œ๋ฅผ ์ง์ ‘ ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜ ๋กœ์ปฌ์—์„œ ๊ตฌ๋™ํ•ด๋ณด๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ:

  1. ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ํด๋ก ํ•˜๊ณ  ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค:
git clone https://github.com/NotNull92/exchange-rate-mcp.git
cd exchange-rate-mcp
npm install
  1. ๋นŒ๋“œํ•˜๊ณ  ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค:
npm run build
npm start

์ œ๊ณต๋˜๋Š” ๋„๊ตฌ(Tools)

get_exchange_rate

๋‘ ํ†ตํ™” ๊ฐ„์˜ ํ˜„์žฌ ํ™˜์œจ์„ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค. ๊ฒฐ๊ณผ ํ…์ŠคํŠธ์—๋Š” ์–ด๋–ค API(Frankfurter ๋˜๋Š” ํด๋ฐฑ)์—์„œ ๊ฐ€์ ธ์˜จ ๋ฐ์ดํ„ฐ์ธ์ง€ ํ‘œ๊ธฐ๋ฉ๋‹ˆ๋‹ค.

  • ํŒŒ๋ผ๋ฏธํ„ฐ (Parameters):
    • from (๋ฌธ์ž์—ด, ํ•„์ˆ˜): ๊ธฐ์ค€์ด ๋˜๋Š” ํ†ตํ™” ์ฝ”๋“œ (์˜ˆ: "USD")
    • to (๋ฌธ์ž์—ด, ํ•„์ˆ˜): ๋Œ€์ƒ์ด ๋˜๋Š” ํ†ตํ™” ์ฝ”๋“œ (์˜ˆ: "KRW")