Skip to main content

A Model Context Protocol (MCP) server for fetching historical currency exchange rates using the Frankfurter API.

Project description

Currency History MCP

A Model Context Protocol (MCP) server that provides historical currency exchange rates and currency conversion. Powered by the Frankfurter API, which is free and open-source.

Features

  • Get Historical Rates: Fetch exchange rates for a specific date (e.g., "2023-01-01").
  • Convert Currency: Convert amounts between currencies using historical rates.

Installation & Usage (with uv)

You can run this MCP server directly using uv without manually installing it everywhere:

# Run directly
uvx currency-history-mcp

Or install it as a tool:

uv tool install currency-history-mcp

Manual Installation

pip install currency-history-mcp

Running the Server

# If installed via pip
currency-history-mcp

# Or connect via an MCP client inspector
npx @modelcontextprotocol/inspector uvx currency-history-mcp

Tools

  1. get_historical_rate

    • date: YYYY-MM-DD
    • base: Base currency (default USD)
    • symbols: Target currencies (default CNY, EUR, JPY, GBP)
  2. convert_historical_amount

    • amount: Amount to convert
    • from_curr: Source currency
    • to_curr: Target currency
    • date: YYYY-MM-DD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

currency_history_mcp-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

currency_history_mcp-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file currency_history_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: currency_history_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for currency_history_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96ac0c6131ee6c811d7818004b1ffb00282e3fd4e339069c4d3ff8d9fcda5337
MD5 5d108dbe3efa4f85fd6622600598533e
BLAKE2b-256 cb5bba281a597c06bcfe1cd83b00284268691cf38ef1c5c17427019e9752459c

See more details on using hashes here.

File details

Details for the file currency_history_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for currency_history_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b741f4ce4a5a359c62f2009d0aa04e644c14320db5b410af351f7f68ac03282
MD5 761d88b91d070b960f88423703eb2ec3
BLAKE2b-256 12e78c5009f7b8053c653dda36763b19bbacd0de62c6c8e655bd7fd428be9e04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page