TCMB FX Rates

io.github.mohammad-abbasi-sh由 GitHub 账号 mohammad-abbasi-sh 发布v0.1.1更新于 Nov 4, 2026

非官方只读 MCP 服务器,提供 TCMB 指示性汇率——22 种货币的实时 TRY 汇率。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Unofficial read-only MCP server for TCMB indicative FX rates — live TRY rates for 22 currencies.

已验证STDIO仅桌面

概览

TCMB FX Rates 的本地 MCP 服务;无需登录;STDIO;4 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 TCMB FX Rates,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

tcmb-mcp 🇹🇷

mcp-name: io.github.mohammad-abbasi-sh/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):

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

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

Tools

ToolDescription
tcmb_get_ratesToday's indicative rates for all 22 currencies (TRY)
tcmb_get_rateOne currency today — code: USD, EUR, GBP… (case-insensitive)
tcmb_list_currenciesAll currency codes + names in today's bulletin
tcmb_get_rates_onHistorical rates — date: YYYY-MM-DD (business days only)

Example output (tcmb_get_rate / USD):

json
{"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

bash
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

来源:README.md,提交 0dbf6b2

工具

4

tcmb_get_rates

Today's TCMB indicative exchange rates for all currencies (TRY).

无需输入参数。

tcmb_get_rate

One currency's rates today. code: ISO code like USD, EUR, GBP (case-insensitive).

输入参数code必填

tcmb_list_currencies

List all currency codes and names in today's TCMB bulletin.

无需输入参数。

tcmb_get_rates_on

Historical TCMB rates for a date (YYYY-MM-DD). Business days only — no bulletin on weekends/holidays.

输入参数date必填

版本历史

1
  1. v0.1.1最新Nov 4, 2026

评分

已满足适用检查项的 80%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。