Skip to main content
Glama
Exchange Rate MCP Server

Exchange Rate MCP Server

by sin4ch

Exchange Rate MCP Server

A Model Context Protocol (MCP) server that provides currency conversion functionality using the ExchangeRate-API.

Features

  • Convert amounts between different currencies using real-time exchange rates

  • Support for about 161 currencies currently

  • Error handling for invalid currency codes, API errors, and network issues

Related MCP server: FX Currency MCP Server

Setup

Prerequisites

  • Python 3.12+

  • uv package manager

  • ExchangeRate-API key (free tier available)

Installation

  1. Clone this repository

  2. Install dependencies:

    uv sync
  3. Copy the .env.example file into your .env:

    cp .env.example .env
  4. Replace your_api_key in the .env with your actual API key.

    You can get your free API key from ExchangeRate-API

Configuration

Copy and paste this in the claude_desktop_config.json file:

{
  "mcpServers": {
    "exchange-rate-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/exchange-rate-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

Usage

Once configured, you can use the convert_currency tool in Claude to convert between currencies:

  • convert_currency(100, "USD", "EUR") - Convert 100 USD to EUR

  • convert_currency(50, "GBP", "JPY") - Convert 50 GBP to JPY

Troubleshooting

  • "uv: command not found": Make sure uv is installed and the full path is specified in the configuration

  • "Invalid API key": Check that your .env file contains a valid ExchangeRate-API key

Available Tools

1 tool
convert_currencyB

Convert an amount from one currency to another using current exchange rates.

Inputs: amount (required), base_curr (required), target_curr (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'convert_currency' follows a clear verb_noun pattern.

    Tool Count2/5

    A single tool for an exchange rate server feels thin and limited in scope. While it covers the core conversion functionality, it lacks supporting operations like fetching available currencies, historical rates, or batch conversions, which are typical for such domains.

    Completeness2/5

    The tool surface is severely incomplete for an exchange rate domain. It only provides currency conversion, missing essential features like listing supported currencies, retrieving exchange rate data, or handling historical queries, which are common in financial APIs.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides access to currency exchange rates and conversion tools using the Frankfurter API, including latest rates, historical data, and time series from sources like the European Central Bank.
      5
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time and historical foreign exchange rates for 31+ currencies, enabling currency conversion, historical rate lookups, and time series analysis using data from the Frankfurter API.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides real-time exchange rates for any currency pair using open.er-api.com, simplifying currency conversion with a single tool.
      59 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables real-time currency exchange rate lookup, conversion, historical rates, and currency catalog using the free Frankfurter API, no API key required.
      ISC