currencyapi-net

currencyapi-net

4.0

CurrencyAPI.net MCP server provides real-time currency conversion and historical data for over 152 currencies, including both fiat and cryptocurrencies.

CurrencyAPI.net MCP server is a comprehensive service designed to offer real-time and historical currency data for a wide range of currencies, including both fiat and cryptocurrencies. It provides live exchange rates updated at different intervals depending on the subscription plan, and supports a vast array of currencies. The service also offers historical data access dating back to the year 2000, making it a valuable tool for financial analysis and decision-making. With user-friendly documentation and a variety of tools, CurrencyAPI.net ensures that users can easily convert currencies, retrieve live rates, and access historical data. The service is secured with a unique API key for each user, ensuring data privacy and security.

Features

  • Live Exchange Rates: Updated every 60 seconds for the MEGA plan, every 10 minutes for the ULTRA plan, and hourly for the PRO and FREE plans.
  • Comprehensive Currency Support: Includes 152 world currencies and popular cryptocurrencies like Bitcoin, Litecoin, Ethereum, and more.
  • Historical Data: Access historical currency rates dating back to the year 2000.
  • Easy Conversion: Convert currencies instantly with the convert tool.
  • User-Friendly Documentation: Comprehensive and easy-to-follow documentation to help you get started quickly.

MCP Tools

  • Convert Tool: Convert a specified amount from one currency to another.
  • Rates Tool: Retrieve live currency conversion rates for a specified currency.
  • History Tool: Access historical currency rates for a specific day.
  • Timeframe Tool: View historical currency rates within a specified timeframe.
  • Currencies Tool: List all supported currencies along with their currency codes.

Usage with Different Platforms

python

python
import requests

api_key = 'your_api_key'
url = 'https://api.currencyapi.net/convert'
params = {
    'amount': 100,
    'from': 'USD',
    'to': 'EUR',
    'apikey': api_key
}
response = requests.get(url, params=params)
data = response.json()
print(data)

javascript

javascript
const fetch = require('node-fetch');

const apiKey = 'your_api_key';
const url = `https://api.currencyapi.net/convert?amount=100&from=USD&to=EUR&apikey=${apiKey}`;

fetch(url)
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));