# unirateapi.com

> unirateapi.com is an open-source MCP server for finance and payments. MCP server giving AI assistants currency conversion and exchange rate lookups. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, macOS, Windows, Linux
- **Website:** https://unirateapi.com
- **Repository:** https://github.com/unirate-api/unirate-mcp
- **MCP Registry name:** io.github.UniRate-API/mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-21

## About

The README describes this as a Model Context Protocol server that wraps the UniRate currency API, so assistants such as Claude Desktop, Cursor or Continue can convert amounts and fetch rates through typed tools. It exposes four tools: convert, latest_rate, historical_rate and list_currencies. Each returns a readable answer alongside a structured payload that other tool calls can reuse.

The server runs over stdio by default and can also be hosted as a Streamable HTTP endpoint with a health check route. It is distributed as an npm package and a Docker image. A UniRate API key is required, and the free tier covers the convert, latest rate and currency list tools, while historical rates require a Pro plan.

It suits developers and analysts who want an AI assistant to answer currency questions with live figures instead of guessing from training data.

## Features

- **Four currency tools:** Provides convert, latest_rate, historical_rate and list_currencies tools with typed inputs.
- **Stdio and HTTP transports:** Runs locally over stdio or as a remote Streamable HTTP endpoint.
- **Historical rate lookups:** Returns the rate in effect on a given date back to 1999 on the Pro plan.
- **Docker and npm distribution:** Available as an npm package and as multi-arch Docker images.
- **Structured error responses:** Maps API failures to tool errors so the model can recover instead of crashing.

## Good for

- Asking an AI assistant to convert a price between currencies at current rates
- Looking up what a currency pair was worth on a past date for reporting
- Validating user-supplied currency codes against the supported list
- Adding live exchange rates to an AI-driven workflow in an MCP client

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp --env UNIRATE_API_KEY='<UNIRATE_API_KEY>' -- npx -y @unirate/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --env UNIRATE_API_KEY='<UNIRATE_API_KEY>' -- npx -y @unirate/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@unirate/mcp"]
env = { UNIRATE_API_KEY = "<UNIRATE_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e UNIRATE_API_KEY='<UNIRATE_API_KEY>' mcp npx -- -y @unirate/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@unirate/mcp"
      ],
      "env": {
        "UNIRATE_API_KEY": "<UNIRATE_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 4 tools reads data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `convert`: Convert an amount from one currency to another at the latest rate.
- `latest_rate`: Get current exchange rate(s) for a base currency, optionally to a single target.
- `historical_rate`: Get the exchange rate in effect on a specific date (Pro plan).
- `list_currencies` (name suggests: reads): Return the array of supported currency codes.

## FAQ

### Do I need an API key to use unirateapi.com?

Yes. The registry entry marks UNIRATE_API_KEY as required, and the README says a free key can be obtained from unirateapi.com without a credit card.

### Which tools are available on the free tier?

The README says the free tier covers convert, latest_rate and list_currencies. historical_rate is marked as a Pro plan feature.

### How far back does historical data go?

The README gives coverage back to 1999-01-04 for major fiat pairs.

### Which AI clients can use unirateapi.com?

The README names Claude Desktop, Cursor, Continue and Cline, and says any MCP-compatible assistant can connect.

### How do I add unirateapi.com to Claude Code?

Run this command in your terminal: claude mcp add mcp --env UNIRATE_API_KEY='<UNIRATE_API_KEY>' -- npx -y @unirate/mcp

### What are the best alternatives to unirateapi.com?

The closest alternatives to unirateapi.com are Currency Converter Mcp, Monobank, Jessicayanwang Test, FX Converter MCP and Crypto Prices Mcp.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Currency Converter Mcp](https://ai-powered.com/mcp/currency-converter-mcp): Currency Converter Mcp is a freemium MCP server for finance and payments.
- [Monobank](https://ai-powered.com/mcp/monobank): Monobank is an open-source MCP server for finance and payments.
- [Jessicayanwang Test](https://ai-powered.com/mcp/jessicayanwang-test): Jessicayanwang Test is an open-source MCP server for finance and payments.
- [FX Converter MCP](https://ai-powered.com/mcp/fx-converter-mcp): FX Converter MCP is a free MCP server for finance and payments.
- [Crypto Prices Mcp](https://ai-powered.com/mcp/crypto-prices-mcp): Crypto Prices Mcp is a freemium MCP server for finance and payments.
- [Bitcompare](https://ai-powered.com/mcp/bitcompare): Bitcompare is a freemium MCP server for finance and payments.
- [mcp-cbr-rates](https://ai-powered.com/mcp/mcp-cbr-rates): mcp-cbr-rates is an open-source MCP server for finance and payments.
- [CurrencyCore](https://ai-powered.com/mcp/currencycore): CurrencyCore is a freemium MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/unirateapi-com
