Iran Brokers Market Data

v0.2.2
io.github.sepehr071/iran-brokers-mcp Checked 3 days ago Published 16 days ago

Read-only Iran broker data from Mofid and Agah: stocks, funds, options, bonds, gold, education.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

br_screener Screen stocks or funds by any column

Filter, sort and compare all stocks or funds on any column, like Agah's screener pages (900 stocks, 330 ETFs, 475 funds). Source: Agah only. Use it for "P/E under 6 and ROE over 30" or "best 1-year fixed-income funds"; br_etfs is the plain ETF list. Returns are percent; money and fund Nav are Rial. Column names are the site's (see list_columns); for ETFs names ending in 2 are NAV returns, the others market-price returns.

ParameterTypeDescription
kind *stringstock = all stocks; etf = exchange-traded funds with market price; mutual = every fund with NAV issue/redeem prices.
ascendingboolean
columnsarray | nullColumn names to return, e.g. ['PToE','Roe'] (stocks), ['Nav','ReturnOf365DaysAgo'] (funds). Omit for a default set.
fund_typestring | nullFunds only: fixed income, equity, commodity or other.
limitinteger
list_columnsbooleanReturn the available column names and titles instead of rows.
max_valuesobject | nullKeep rows where column <= value.
min_valuesobject | nullKeep rows where column >= value.
name_containsstring | nullKeep rows whose name/symbol contains this (Persian).
sortstring | nullColumn to sort by (descending unless ascending=true).

br_stocks Stock market watch with sorting

Rank all listed stocks (about 750) by today's change, traded value, money flow, buyer power, queue or past returns. Source: Agah only (Mofid's equivalents: br_market_top). Money and prices are Rial. net_money_flow is positive for money entering; buyer_power is the individual buyer vs seller average-size ratio. Then br_stock for one symbol.

ParameterTypeDescription
ascendingbooleanLowest first.
limitinteger
marketstring | nullOnly this exchange.
min_valueintegerMinimum traded value today, Rial.
scalestring | nullLarge, medium or small cap.
sortstringField to rank by.

br_stock_events Dividends, capital changes, notices and major holders of a stock

List a stock's cash dividend history, capital increases, recent exchange notices and major shareholders. Source: Agah only. Dividends are Rial per share with the fiscal year.

ParameterTypeDescription
stock *stringSymbol, company name part, or ISIN.
holdersbooleanAlso list the major shareholders.

br_technical Technical analysis summary of a stock or industry

Show Agah's technical-indicator summary (moving averages and oscillators vote, RSI, MACD and others) for a stock or industry. Source: Agah only. action: 2 strong buy, 1 buy, 0 neutral, -1 sell, -2 strong sell; an indicator tally, not advice.

ParameterTypeDescription
target *stringStock symbol/name/ISIN, or an industry ISIN (IRX6...) from br_industries.
timeframestringDaily, weekly or monthly signals.

br_mofid_funds Mofid's own funds

List the 19 investment funds managed under the Mofid brand with type, risk level, dividend policy and asset mix. Source: Mofid only. A catalogue without prices or NAV: use br_etfs or br_stock for those.

br_bonds Bonds and sukuk

List exchange-traded bonds, sukuk and treasury bills with maturity, coupon, price and yield to maturity. Source: Mofid only; bonds are not in br_search. Prices are Rial per 1,000,000 par. `ytm` is percent per year; `coupon_rate` is a fraction (0.18 = 18%).

ParameterTypeDescription
groupstring | nullTreasuryBills = T-bills, GAMBills = Gam, CouponBonds = coupon sukuk/bonds, NonCouponBonds.
limitintegerRows to return.
min_daysintegerHide bonds maturing in fewer days (very short bills show absurd yields).
querystring | nullPart of the symbol or name.
sortstringytm = yield to maturity of the last closing trade, highest first.
traded_onlybooleanHide bonds without a price.

br_news Market news and notices

Return the newest market news items: exchange notices, Codal letters, Telegram channel posts or Mofid research reports. Source: Mofid only. Dates are Jalali. For a company's filing history use br_announcements.

ParameterTypeDescription
charsintegerCut each text at this many characters.
countintegerHow many newest items to fetch.
kindstringnotices = exchange/Codal notices, filings = latest Codal letters with PDF links, telegram = market channel posts, research = weekly research PDFs.
symbolstring | nullNotices/filings only: keep this symbol (Persian, e.g. 'فملی').

br_announcements Codal announcements

Search Codal filings (financial statements, board notices, AGM invitations, monthly activity) by company, report type and date. Source: Mofid only. Rows have title, publish time, company, period and links to the Codal page, PDF and attachments.

ParameterTypeDescription
from_datestring | nullFirst publish day, Gregorian YYYY-MM-DD. Default 7 days ago.
limitintegerRows to return.
offsetintegerRows to skip, for paging (next page = offset + limit).
report_typestring | nullPart of the Persian report type name, e.g. 'صورت‌های مالی', 'تفسیری', 'مجمع', 'فعالیت ماهانه'.
symbolstring | nullCompany symbol in Persian as listed on Codal, e.g. 'فملی'. Omit for all companies.
to_datestring | nullLast publish day, Gregorian YYYY-MM-DD. Default today.

br_scores Valuation scores

Return Bourse View's valuation scores: theoretical vs market price, a Buy/Neutral/Sell technical rating and a fundamental score out of 10. Source: Mofid only. Pass ISINs for specific symbols, a `section` to rank the market on one aspect, or nothing for the best fundamental scores overall.

ParameterTypeDescription
isinsarray | nullISINs to score. Omit to rank the whole market by section.
limitintegerRows to return.
min_fundamentalnumberOverall table only: minimum fundamental score (0-10).
sectionstring | nullRank all symbols on one fundamental section (score out of 10); omit isins. Omit both for the overall table.
technicalstring | nullOverall table only: keep this technical rating.

br_quotes Get quotes

Return live price rows for 1 to 30 symbols at once: last and closing price, change, volume, limits, bid and ask, returns. Source: Mofid only. Prices are Rial. `last` is the last trade, `close` the closing (weighted) price used for change. Index and fund ids work too.

ParameterTypeDescription
isins *arrayISIN-style id from br_search, e.g. IRO1MSMI0001, IREXOVERALLINDEX.

br_market_top Market rankings

Return one of the market's live top-N lists (most traded, buy queues, best return, lowest P/E, net individual buying, ...). Source: Mofid only (Agah's ranking: br_stocks). Prices are Rial.

ParameterTypeDescription
board *stringRanking. Value/volume: mostvalue, mostvolume, valuetomarketcap, volumetoaveragevolume30. Money flow: netindividual, netinstitutional, mostbuyindpower, institutionalbuypower, mostbidpressure. Size: mos…
limitintegerRows to return.

br_stock One stock or ETF in detail

Show one stock (or, on Mofid, an ETF) in detail: price, ratios, returns, real vs legal flows, from Mofid and Agah. Use it after br_search. The two sources have different fields, so both are shown. Prices are Rial. Next: br_history, br_stock_events (dividends), br_technical; for an Agah fund use br_fund.

ParameterTypeDescription
symbol *stringSymbol (فولاد), part of the company name, or ISIN. ETF symbols work on Mofid.
order_bookbooleanAlso return Mofid's five best bid and ask levels.
sourcestringmofid, agah or all; each answers in its own block.

br_history Price history

Return price history of a stock: Mofid OHLC candles (1 minute to weekly) or Agah daily rows with buy and sell flows. Mofid candles are oldest first, Tehran time, and work for indices, funds and options too. Agah rows have no OHLC. Prices are Rial. Use br_index for index history.

ParameterTypeDescription
symbol *stringSymbol, company name part, or ISIN. Mofid also takes index, fund and option ISINs.
adjustedbooleanMofid: adjust prices for capital increases and dividends.
daysintegerMofid: calendar days back.
limitintegerNewest N rows (Agah: at most 250).
resolutionstringCandle size: minutes, '1D' or '1W'. Agah has only '1D'.
sourcestringmofid = OHLC candles; agah = daily rows with real/legal flows; all = both.

br_market Market overview

Show today's market snapshot: indices, traded value, money flow and buy/sell queues, from Mofid and Agah. Start here for "how is the bourse today". Money is Rial. Next: br_market_top or br_stocks for rankings, br_industries for sectors, br_rates for price history.

ParameterTypeDescription
breadthbooleanAgah: also add whole-market breadth (market P/E, busiest symbols).
moversintegerAgah: how many index-moving symbols to list.
pricesarray | nullAgah: price groups to include; default metals, coins and currencies.
sourcestringmofid, agah or all; each answers in its own block.

br_industries Industries

Rank the bourse industries by value, return, market cap, P/E or money flow, from Mofid and Agah. With `industry` (Agah) it shows that industry's return table and member stocks. Money is Rial. Next: br_technical with an industry ISIN, or br_stock.

ParameterTypeDescription
ascendingbooleanLowest first.
industrystring | nullAgah only: industry ISIN (IRX6...) or name part, to show one industry with its stocks.
limitintegerRows per source.
sortstringvalue, return_1m, return_1y: both sources. Mofid only: market_cap, return_1w, return_3m, p2e, dividend_yield. Agah only: change, money_flow.
sourcestringmofid, agah or all; each answers in its own block.

br_index Index card and index history

Show a market index (Mofid: market cap, free float, ratios, intraday move, members) and its daily history. Without `days` only Mofid answers. With `days`, Mofid adds daily candles and Agah its total-index series. Next: br_industries for sector indices, br_market for today's snapshot.

ParameterTypeDescription
daysintegerAdd this many days of daily history (0 = none).
indexstringIndex ISIN: IREXOVERALLINDEX (overall), IRX6XTPI0006 (TEDPIX), IRXZXOCI0006 (Fara-bourse), or one from br_search kind='index'. Agah history: total index only.
membersintegerMofid: list this many member symbols (0 = none).
sourcestringmofid, agah or all; each answers in its own block.

br_etfs ETFs with price vs NAV

List exchange-traded funds with price, NAV and the gap between them (bubble), traded value and returns. Use for "cheapest gold ETF" or "lowest bubble". Money is Rial. Next: br_stock (Mofid card) or br_fund (Agah) for one fund; br_screener (kind='etf' or 'mutual') filters funds on any column.

ParameterTypeDescription
ascendingbooleanLowest first.
limitintegerRows per source.
querystring | nullPart of the fund symbol, Persian or Latin.
sortstringnav_gap = market price above(+)/below(-) NAV in %. market_cap is Mofid only.
sourcestringmofid (default) = 375 ETFs; agah = 331 ETFs with NAV returns and manager; all = both.
typestring | nullFund family; omit for all. Agah knows only fixedincome, stock and goldetf.

br_learn Learn: education articles and courses

Search the Mofid learning blog and Agah Pedia for bourse, fund, option and gold explainers, or read one article. Search first, then call again with `ref` from a result to read it (`ref` picks the source itself). Agah Pedia and Academy answer only from an Iranian network. Article text is third-party content.

ParameterTypeDescription
category_idstring | nullBrowse one category; needs source 'mofid' or 'agah'.
kindstringarticles = search or read articles, categories = Mofid blog topics with ids, courses = Agah Academy.
max_charsintegerWith ref: cut the article text at this many characters.
pageintegerPage number, 1-based.
per_pageintegerArticles per page.
querystring | nullPersian search words, e.g. 'صندوق طلا'. Agah article search needs 4+ characters.
refstring | nullRead one article in full: Mofid post id (number) or Agah Pedia slug, from a previous result.
sourcestringmofid, agah or all; each answers in its own block.

br_fund Fund detail, history or comparison

Show an investment fund from Agah: type, NAV, returns, asset mix and holdings, a daily history, or a side-by-side comparison. Source: Agah only (Mofid ETFs: br_stock, br_etfs; Mofid funds: br_mofid_funds). `metric` gives a daily series, oldest first. Money is Rial, returns percent. Find codes with br_search(kind='fund'); filter many with br_screener.

ParameterTypeDescription
funds *arrayFund national code (11 digits), name or ETF symbol, e.g. '14004856587'. One fund for detail or history; two to six to compare.
columnsarray | nullWith several funds: screener column names; omit for a default set.
metricstring | nullWith one fund: return this daily series instead of the detail.
pointsintegerWith metric: most recent N daily points.

br_options Stock options: chain or one contract

List stock-option contracts (about 1,600) with strike, expiry, moneyness, open interest and flows, or show one contract. Source: Agah only. Prices are Rial per underlying share. Pass `option` (ISIN from the chain) for one contract with margin, break-even and order book. Use br_search first if unsure of the underlying.

ParameterTypeDescription
expirystring | nullChain filter: expiry YYYY-MM-DD (Gregorian).
limitinteger
optionstring | nullOption ISIN from a previous result, to show that one contract. Omit to list the chain.
sidestring | nullChain filter.
sortstringChain order.
underlyingstring | nullChain filter: underlying symbol (Persian, e.g. 'شپنا') or company name part.

br_rates Currency, gold, coin and commodity prices

Return free-market prices of currencies, crypto, coins, 18k gold, the global ounce, oil and metals, or one code's daily history. Source: Mofid only. Rial prices: divide by 10 for Toman. History is oldest first, back to 2019-2021.

ParameterTypeDescription
history_daysinteger0 = live prices; above 0 = daily history over this many days (exact code in query).
kindstringcurrency = currencies and crypto (Rial), gold_coin = coins, 18k gold, ounce (Rial), commodity = oil, metals (USD).
limitintegerHistory: newest N days.
querystring | nullFilter by code (USD, EUR, USDT, BTC, IMCOIN, Gold18, WTI, Cu) or Persian name. History needs the exact code.