Skip to main content

azerbaijan-mcp-cbar

MCP server for the official exchange rates of the Central Bank of the Republic of Azerbaijan (CBAR). It reads CBAR's public XML feed (https://cbar.az/currencies/DD.MM.YYYY.xml): no API key, no scraping.

Tools

Tool What it does
get_rates(date?, codes?) Official AZN rates for 38 currencies and 4 precious metals. date is YYYY-MM-DD (default: today, Baku time). codes filters, for example ["USD", "EUR"].
convert(amount, from_currency, to_currency, date?) Converts through AZN with the official rates. AZN is accepted as a code.

Things worth knowing:

  • Rates are AZN per nominal units. Seven currencies are quoted per 100 (JPY, KRW, KZT, HUF, UZS, PKR, RUB). per_unit is already divided.
  • Metals are AZN per troy ounce.
  • CBAR publishes no new sheet on weekends and public holidays. The response says which sheet it used (sheet_date, note).
  • These are official reference rates, not bank buy/sell rates.

Install

Add to your MCP client configuration (requires uv):

{
  "mcpServers": {
    "cbar": {
      "command": "uvx",
      "args": ["azerbaijan-mcp-cbar"]
    }
  }
}

In Claude Code: claude mcp add cbar -- uvx azerbaijan-mcp-cbar.

Data source and terms

The data is published by CBAR at https://cbar.az/currency/rates, which invites importing the XML URL into applications. The page states no licence or reuse conditions, so this server relies on that implied permission, caches responses (past dates forever, today for 10 minutes) and sends an honest User-Agent. Every response carries an attribution field. Unofficial project, not affiliated with or endorsed by CBAR.

tests/fixtures/rates-2026-10-30.xml is a snapshot of the public feed for 2026-10-30.

Metadata

Release files for azerbaijan-mcp-cbar 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azerbaijan-mcp-cbar 0.1.0
File Size Uploaded Provenance Actions
azerbaijan_mcp_cbar-0.1.0.tar.gz 13.1 kB With provenance Details for azerbaijan_mcp_cbar-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for azerbaijan-mcp-cbar 0.1.0
File Interpreter ABI Platform Actions
azerbaijan_mcp_cbar-0.1.0-py3-none-any.whl Python 3 none any Details for azerbaijan_mcp_cbar-0.1.0-py3-none-any.whl

Total release size: 23.3 kB

Release files / azerbaijan_mcp_cbar-0.1.0.tar.gz

Download URL azerbaijan_mcp_cbar-0.1.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
94549197c1b490742ff4d12e19d33b7627c4c5bc15cf72f34b016e1856f30546
BLAKE2b-256 checksum
How to use checksums
d3b02c8e7b3003383f39bb27ce4dd789563a42ce4310b8e2a903f5c4726c37ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / azerbaijan_mcp_cbar-0.1.0-py3-none-any.whl

Download URL azerbaijan_mcp_cbar-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd43b27623860781b239c2e31010d58fc463dc553c3f78804671ac80d291163d
BLAKE2b-256 checksum
How to use checksums
113ecaf5e1899360ab9b0399a0c655fccc3f9fec694907c816c6e42212146024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for azerbaijan-mcp-cbar 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for azerbaijan_mcp_cbar-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page