Metadata-Version: 2.4
Name: bnr-converter
Version: 0.1.6
Summary: MCP server for converting foreign currency amounts to RON (Romanian New Leu) using the rates published by BNR (Banca Nationala a Romaniei)
Project-URL: Homepage, https://github.com/mionita1980/bnr-converter-mcp-server
Project-URL: Source, https://github.com/mionita1980/bnr-converter-mcp-server
Author-email: Mihai Ionita <mionita1980@proton.me>
Requires-Python: >=3.14
Requires-Dist: fastmcp>=3.2.3
Requires-Dist: requests>=2.33.1
Requires-Dist: starlette>=1.0.0
Requires-Dist: uvicorn>=0.44.0
Description-Content-Type: text/markdown

# BNR Converter MCP Server

MCP server for converting foreign currency amounts to RON (Romanian New Leu) using the rates published by BNR (Banca Nationala a Romaniei).

## Run

```bash
uvx bnr-converter
```

## Use from Claude Code

```json
"mcpServers": {
    "bnr-exchange": {
        "type": "stdio",
        "command": "uvx",
        "args": [
            "bnr-converter"
        ]
    }
}
```

### Sample Prompt 1

`Convert to RON a bill of 30 EUR from March 17, 2025`

Response:

```
30 EUR = 149.319 RON

  - BNR exchange rate used: 4.9773 RON/EUR
  - Rate date: March 14, 2025 (last published rate before the bill date)
```

### Sample Prompt 2

`Convert to RON a bill of 30 EUR from March 17, 2025, using the rate on the bill date`

Response:

```
30 EUR = 149.319 RON

  - BNR exchange rate used: 4.9773 RON/EUR
  - Rate date: March 17, 2025 (rate published on the bill date)
```

### Sample Prompt 3

`Convert to RON a bill of 30 EUR from March 17, 2025, using the rate before the bill date`

Response:

```
30 EUR = 149.304 RON

  - BNR exchange rate used: 4.9768 RON/EUR
  - Rate date: March 14, 2025 (last published rate before the bill date)
```

