Skip to main content

A Model Context Protocol (MCP) server for currency conversion using the Frankfurter API

Project description

Currency MCP Server

A Model Context Protocol (MCP) server for currency conversion using the reliable Frankfurter API.

Features

  • Real-time Exchange Rates: Get current exchange rates for 31+ currencies
  • Historical Data: Convert currencies using historical rates
  • MCP Integration: Seamlessly integrates with MCP-compatible AI tools
  • No API Keys Required: Free and reliable service
  • Async Support: Built with modern async Python

Installation

pip install currency-mcp

Quick Start

from currency_mcp_server import mcp

# The server is now ready to handle MCP requests
# Use with any MCP-compatible client

Available Tools

list_currencies

Lists all supported currencies with descriptions.

convert_currency

Converts amounts between currencies with support for:

  • Current exchange rates
  • Historical rates (with date parameter)
  • Input validation
  • Error handling

Development

# Clone the repository
git clone https://github.com/yourusername/currency-mcp.git
cd currency-mcp

# Install dependencies
uv sync

# Run tests
python tests/client.py

License

MIT License - see LICENSE file for details.

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_mcp-0.2.0.tar.gz (74.2 kB view details)

Uploaded Source

Built Distribution

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

currency_mcp-0.2.0-py3-none-any.whl (89.6 kB view details)

Uploaded Python 3

File details

Details for the file currency_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: currency_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 74.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for currency_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0def9395e69a408d922ebfbb26f250d3bb805862c6de80b039a80da02fc4acf8
MD5 d98b3dcd4292dbe72e4e960e06239d4d
BLAKE2b-256 7e512d26e509f25f479d34959a0ef793d2e32932818d6b5d6d89cd68ee272822

See more details on using hashes here.

File details

Details for the file currency_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: currency_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 89.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for currency_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbc11387ae0a3be8a04168686559c7d5c97aeccf1b492bfae027f2cab975771e
MD5 2faeaab58ef9ab773846d67fd1cad78f
BLAKE2b-256 02e6dbb390a2dc67cbbaf5a5771955b432a2f85adf8270b56155059eaa7a6276

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