Skip to main content

tcmb-mcp 🇹🇷

Unofficial read-only MCP server for the Central Bank of the Republic of Türkiye (TCMB) indicative exchange rates — live TRY rates for 22 currencies, plus history.

Pilot of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with TCMB.

For AI agents

Add to your MCP client config (stdio):

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

Or run locally: python -m tcmb_mcp.server (needs mcp<2, httpx).

Tools

Tool Description
tcmb_get_rates Today's indicative rates for all 22 currencies (TRY)
tcmb_get_rate One currency today — code: USD, EUR, GBP… (case-insensitive)
tcmb_list_currencies All currency codes + names in today's bulletin
tcmb_get_rates_on Historical rates — date: YYYY-MM-DD (business days only)

Example output (tcmb_get_rate / USD):

{"date": "03.11.2026", "code": "USD", "name": "US DOLLAR", "unit": 1,
 "forex_buying": 49.9094, "forex_selling": 49.9993,
 "banknote_buying": 49.8744, "banknote_selling": 50.0743}

Notes:

  • Rates are Turkish Lira per <unit> of foreign currency.
  • Forex = interbank; banknote = physical cash.
  • TCMB publishes no bulletin on weekends/holidays (tcmb_get_rates_on returns an error then).
  • Data: TCMB public feed tcmb.gov.tr/kurlar — no key, no login, read-only.

Development

python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
.venv/bin/python -m pytest tests/ -q
  • tests/test_rates.py — offline, parses a real captured bulletin fixture
  • tests/test_live.py — 2 cautious live requests against tcmb.gov.tr

License

MIT

Metadata

Release files for tcmb-mcp 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 tcmb-mcp 0.1.0
File Size Uploaded Provenance Actions
tcmb_mcp-0.1.0.tar.gz 6.4 kB With provenance Details for tcmb_mcp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.0 kB

Release files / tcmb_mcp-0.1.0.tar.gz

Download URL tcmb_mcp-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e129c2cdc4c5eb6984acce000dd9ba936e5a9f6c2fa9452e89b0c9cfedabe26e
BLAKE2b-256 checksum
How to use checksums
9b2b3de18b37b15ab3b1d2c177cc7788d17f6abca637143ccc88f970ddaf2d2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 4, 2026.

Transparency log

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

Download URL tcmb_mcp-0.1.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb8157f536e7466ed5255b710170694d3d5700ea1efcc1346e6bd2ff3fbd3db6
BLAKE2b-256 checksum
How to use checksums
36f14f5275a07039e023a52baf47394f5ef9fa2d1b5cbbe540d17d6fa067e0cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 4, 2026.

Transparency log

Security for tcmb-mcp 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 tcmb_mcp-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 4, 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