sin4ch

Exchange Rate MCP Server

Community sin4ch
Updated

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

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

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

MCP Server · Populars

MCP Server · New

    googleads

    Google Ads MCP Server

    MCP Server

    Community googleads
    StefanMaron

    AL MCP Server

    MCP Server

    Community StefanMaron
    vintasoftware

    Django AI Boost

    A MCP server for Django applications, inspired by Laravel Boost.

    Community vintasoftware
    idleprocesscc

    Co-Reading MCP

    A local co-reading MCP server for chunked books, reading progress, search, and margin annotations.

    Community idleprocesscc
    JasonJarvan

    Export-Zhihu-Collections

    将知乎收藏夹(公开和私密)批量导出为 Markdown 格式文件. 支持配置收藏夹列表并批量下载, 支持基于URL自动去重, 支持下载专栏和图片, 支持自定义保存路径, 支持调试和错误日志. **同时提供 MCP Server**,可被 AI Agent (如 Claude Code) 直接调用,为大模型提供保存知乎收藏夹的能力。

    Community JasonJarvan