Central Bank of Iran

io.github.sepehr071由 GitHub 账号 sepehr071 发布v0.2.0更新于 Nov 7, 2026

Read-only Central Bank of Iran (cbi.ir): official FX rates, inflation, policy rates, news.

已验证STDIO仅桌面网页搜索与抓取金融

概览

AI 生成的概览

非官方只读 MCP 服务器,让助手获取伊朗中央银行官方数据:汇率、通胀、政策利率、新闻与报告。

可以做什么
  • 按日期或历史档案获取官方汇率,并查询单一货币的走势与涨跌幅
  • 读取月度与年度通胀,以及每周银行间利率、回购利率和常备便利利率
  • 浏览新闻标题、读取新闻全文,并获取流动性、货币与基础货币数据
  • 读取月度统计表(货币、国际收支、财政、资本市场),并列出带文件链接的出版物
  • 获取每周政府债券拍卖结果与公开市场回购操作数据
适用场景
适合用户询问某日官方美元、欧元等央行参考汇率、汇率变动、伊朗通胀或利率、流动性增长,或央行最新公告时使用。不适用于自由市场(巴扎)汇率,央行并不发布该数据。
运行要求
通过 uvx 以 stdio 在本地运行,需要 uv 与 Python 3.10 以上版本。无需账号或 API 密钥。可选环境变量 CBI_MCP_PROXY 用于为 cbi.ir 请求设置 HTTP 代理,因为系统代理设置会被忽略。需要能访问 cbi.ir 的网络。
安装前请注意
只读,调用前无需确认。数据来自抓取央行公开网站,页面变动时可能失效或滞后,且不覆盖其时间序列数据库。输出为波斯语文本、贾拉利历日期,汇率为每单位外币的里亚尔数。可选代理地址通过 CBI_MCP_PROXY 传入。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

cbi-mcp: Central Bank of Iran (بانک مرکزی) exchange rates, inflation and policy rates MCP server for AI agents

cbi-mcp is an unofficial, read-only MCP server that gives AI agents the public data of the Central Bank of Iran (cbi.ir).
Its 8 tools read the official reference exchange rates and their history, inflation, the weekly interbank and policy rates,
the bank's news and liquidity (نقدینگی) statements, and list its reports with download links.
No API key or account is needed. It works in Claude, Cursor, Copilot and any other MCP client.

[PyPI] [Python] [License: MIT]

For AI agents · Quick start · What it can do · Tools · FAQ · فارسی


For AI agents

  • What: unofficial MCP server (model context protocol) for cbi.ir: official exchange rates (about 48 currencies, archive back to 1383), inflation by month and year, weekly interbank/standing-facility rates, news and announcements, liquidity statements, reports (Economic Trends, monthly monetary statistics, annual review).
  • Install: uvx cbi-mcp or claude mcp add cbi -- uvx cbi-mcp. Transport: stdio. Needs uv (Python 3.10+).
  • Auth: none. Optional CBI_MCP_PROXY (HTTP proxy URL); system proxy settings are ignored.
  • Access: read-only, no confirmation needed before calling any tool.
  • Tools: 11, all prefixed cb_. Typical sequences: cb_exchange_rates; cb_rate_history; cb_inflation; cb_news -> cb_news_item; cb_liquidity; cb_statistics; cb_bond_auctions; cb_policy_rates + cb_open_market.
  • Use when: the user asks for the official dollar/euro/dirham rate on a day, how a rate moved, Iran's inflation, interest or interbank rates, liquidity growth, or what the central bank announced.
  • Do not use when: the user wants the free-market (bazaar) rate, which the CBI does not publish, or a series from the CBI time-series database (tsd.cbi.ir did not answer when this was built).
  • Output: compact JSON. Rates are rials per currency unit (per_units: JPY 100, KRW 1000...). Dates in answers are Jalali; arguments accept Jalali (1404/01/01) or Gregorian (2025-03-21). Text is Persian.
  • Machine-readable: server.json.

Why

The Central Bank's site is a classic ASP.NET website: no API, one rate table per date, inflation behind a year dropdown, liquidity buried in news and Excel files. cbi-mcp reads those pages for the agent:

You: What was the official dollar rate on 1 Farvardin 1404, and what is it now?

Agent: calls cb_exchange_rates(date="1404/01/01", currencies=["USD"]) and cb_exchange_rates(currencies=["USD"])

579,503 rials on 1404/01/01 and 1,871,664 rials on 1405/08/09.

Real values read from cbi.ir on 2026-10-31.

What it can do

  • Official exchange rates for a day, today or from the archive, all currencies or a chosen few
  • Rate history of one currency: last 7 days in one call, or a sampled series over months or years with total change
  • Inflation: the 12-month rate for each month of any year since 1361 plus annual inflation back to 1316
  • Policy rates: weekly interbank rate, minimum repo rate and the standing lending/deposit corridor
  • News titles, filterable by a word, and the full text of any item
  • Liquidity as numbers (liquidity, money, quasi-money, monetary base with yearly growth) from the newest monthly Excel, plus the governor's latest statements
  • Monthly statistics tables read from the Excel files: monetary, balance of payments (foreign debt, monthly average dollar in the official, free and preferential markets), fiscal, capital market
  • Government sukuk auctions: offered, sold and yield per bond, every week
  • Open market operations: the weekly repo auction figures
  • Publications with PDF/Excel links: Economic Trends, monthly monetary statistics, annual economic review, interbank market review

Example prompts:

  • "What is the CBI's official euro rate today, and how much did it change over the last week?"
  • "Show the dollar rate every month since Farvardin 1404."
  • "What is Iran's inflation now and how did it move in 1403?"
  • "What did the central bank say about liquidity growth recently?"
  • نرخ رسمی دلار بانک مرکزی امروز چقدر است؟
  • آخرین گزارش نماگرهای اقتصادی را بده.

Quick start

bash
claude mcp add cbi -- uvx cbi-mcp

Any client: command uvx, args ["cbi-mcp"]. Behind a proxy set CBI_MCP_PROXY=http://host:port.

Tools

ToolWhat it returns
cb_exchange_ratesOfficial rates of ~48 currencies for a date (default latest), optional currency filter
cb_rate_historyOne currency over time with change %; last 7 days, or sampled between two dates
cb_inflationMonthly 12-month inflation for a Jalali year and annual inflation history
cb_policy_ratesWeekly interbank, repo and standing-facility rates for a year
cb_newsNews titles (id, date), optional word filter and year
cb_news_itemFull text and attachments of one news item
cb_liquidityLiquidity, money, quasi-money and monetary base (balance, yearly growth) from the newest monthly Excel, plus latest statements
cb_publicationsNewest Economic Trends, monthly monetary reports, annual or interbank reviews with file links
cb_statisticsRows of any sheet of the monthly Excel tables: monetary, balance_of_payments, fiscal, capital_market (year, month, sheet)
cb_bond_auctionsResults of the newest weekly government sukuk auctions per bond: offered, sold, yield
cb_open_marketWeekly open market operation reports with the newest repo auction figures

FAQ

Is this the market rate? No. These are the CBI's official reference rates; the free-market rate is not published there.

Why no time-series search? The bank's series database (tsd.cbi.ir) did not answer from any network tried.

Does it read the Excel/PDF reports? The monthly Excel statistics tables (cb_statistics, cb_liquidity), the weekly repo report and the auction results are read as numbers. Other Excel and PDF reports come back as links.

License

MIT. Unofficial; not affiliated with the Central Bank of the Islamic Republic of Iran. Data belongs to its publisher.

Built by Sepehr Radmard (سپهر رادمرد): github.com/sepehr071 · linkedin.com/in/sepehr-radmard

فارسی

cbi-mcp یک سرور MCP غیررسمی و فقط‌خواندنی برای سایت بانک مرکزی جمهوری اسلامی ایران (cbi.ir) است: نرخ رسمی ارز و تاریخچه آن، نرخ تورم، نرخ‌های سود بازار بین‌بانکی، اخبار و اظهارات نقدینگی و فهرست گزارش‌ها با پیوند دانلود. نیازی به کلید یا حساب نیست. نصب: claude mcp add cbi -- uvx cbi-mcp

来源:README.md,提交 b2fc50e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.2.0最新Nov 7, 2026
  2. v0.1.0Nov 1, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

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

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分