ime-mcp
This is a read-only MCP server for querying public Iran Mercantile Exchange (IME) data, with 14 tools for commodities, trades, prices, supplies, options, certificates, funds, news, and reports.
List commodity group trees and find producer/supplier IDs.
Retrieve trades with price, volume, supply/demand, producer, broker, and totals; filter by market, category, producer, text, and date.
View upcoming supply offers, including physical, premium, and export/Kish hall offers.
Get daily price history for symbols, including low, high, volume-weighted average, and volume.
Get market-wide summaries by market/hall, daily totals, and the USD settlement rate.
Rank producers, commodities, brokers, halls, or contracts by traded value with market share.
Query options boards and individual option contract histories for gold, gold coin, gold funds, and saffron.
View financial-market trades for salaf, commodity deposit certificates, and commodity funds.
Track continuous deposit certificates such as gold bar, gold coin, silver, copper, and steel.
See live best bid/ask boards for funds, certificates, and salaf.
Read latest exchange news and list weekly report PDF links.
Use Persian or Gregorian dates; most historical ranges are limited to 45 days.
Operates read-only with no API key or account.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ime-mcp Show me hot sheet price history since 1405/08/01"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ime-mcp: Iran Mercantile Exchange (بورس کالای ایران) MCP server for AI agents
ime-mcp is an unofficial, read-only MCP server that gives AI agents the public trade and supply data of the Iran Mercantile Exchange (IME, ime.co.ir). Its 14 tools list commodity trades (steel, petrochemicals, cement, oil products, metals, agriculture) with prices and volumes, upcoming supply offers, daily price series, rankings by producer and broker, market and hall totals, the USD settlement rate, the options board, gold, silver and other deposit certificates, gold funds and exchange news and weekly reports. No API key or account is needed. It works in Claude, Cursor, Copilot and any other MCP client.
For AI agents · Quick start · What it can do · Tools · FAQ · فارسی
For AI agents
What: unofficial MCP server (model context protocol) for ime.co.ir, the Iranian commodity exchange: physical market trades (industrial and mineral, petrochemical and oil products, cement, subsidiary market, Kish export hall), supply offers (including premium and export), price history, rankings by producer or broker, market totals, USD rate, news, weekly report links, the options board, deposit certificates (gold bar, gold coin, silver...), salaf and commodity funds.
Install:
uvx ime-mcporclaude mcp add ime -- uvx ime-mcp. Transport: stdio. Needs uv (Python 3.10+).Auth: none. Optional
IME_MCP_PROXY(HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.Access: read-only. It cannot trade or place orders, so no confirmation is needed before calling any tool.
Tools: 14, all prefixed
ime_. Typical sequences:ime_categories->ime_price_history/ime_trades/ime_supply;ime_producers->ime_trades;ime_options->ime_options(contract=...);ime_certificates->ime_certificates(commodity=...).Use when: the user asks what traded on the exchange, the price of steel, rebar, hot sheet, polymers, bitumen or cement, what will be offered next session, how big trading was, the exchange's USD rate, option contracts, or gold bar, gold coin and silver certificate prices.
Do not use when: the question is about the stock market (TSETMC), or real estate and car trading: those are not covered here.
Output: compact JSON. Dates are Persian (
1405/08/09); Gregorian input is accepted. Prices are Rial (per kg for goods counted in tonnes: checkunit);value_k_rialis thousand Rial; summary values are million Rial;value_rial(options, certificates, funds) is Rial. Text is Persian.Machine-readable:
server.jsonand the iran-mcp catalog.
Related MCP server: tsetmc-mcp
Why
The IME site shows trades and supply only through filter forms and paged tables. "How did the hot sheet price move
this month?" means picking the group, the subgroup and a date range, then reading the table row by row. With
ime-mcp an agent does it in one call:
You: How did hot sheet prices move since the start of Aban?
Agent: calls
ime_price_history(search="ورق گرم", date_from="1405/08/01")Kavian hot sheet (KAS-HS00000-00) traded at 1,305,425 Rial/kg on 08/02 (3,740 t), 1,296,722 on 08/03 (1,430 t), 1,370,586 on 08/06 (2,310 t) and 1,352,960 on 08/09 (110 t).
Numbers from a live call on 2026-10-31.
What it can do
Trades: every trade of a date range in the physical market, the subsidiary market (بازار فرعی) or the Kish export hall, with the weighted closing price, low and high, supply, demand, volume, value, producer, contract type, delivery and broker; filter by commodity group, producer or text
Supply offers (اطلاعیه عرضه): what is up for sale in coming sessions with volume, base price, delivery place and date, settlement and broker
Price history: daily low, high, volume-weighted average and volume per symbol over up to 45 days
Market totals: value and volume by market and hall for a range, plus the USD settlement rate; day-by-day totals of one market
Rankings: producers, commodities, brokers or halls ordered by traded value with market share
Options: the options board (gold, gold coin, gold funds, saffron futures) with settlement prices and open interest, and the history of one contract
Certificates and funds: gold bar, gold coin, silver, copper and steel deposit certificates, saffron certificates, salaf and gold funds, daily and with a bid/ask board
Groups and producers: the exchange's commodity group tree and producer ids
News and reports: the latest announcements and links to the weekly report PDFs
Example prompts:
"What were the biggest trades on the exchange today?"
"How did rebar prices move over the last two weeks?"
"What is offered on the exchange next week from Mobarakeh Steel?"
"How much did the physical market trade this week, by hall?"
قیمت ورق گرم در بورس کالا در یک ماه گذشته چطور تغییر کرده؟
فردا چه محصولاتی در بورس کالا عرضه میشود؟
Quick start
You need uv. No API key or account.
claude mcp add ime -- uvx ime-mcpSettings → Developer → Edit Config, then add:
{
"mcpServers": {
"ime": { "command": "uvx", "args": ["ime-mcp"] }
}
}Use the same command (uvx ime-mcp) in your client's MCP settings, for example codex mcp add ime -- uvx ime-mcp
or the Claude Desktop block above in ~/.cursor/mcp.json.
It is a standard stdio MCP server: run uvx ime-mcp, or pip install ime-mcp and run ime-mcp.
Tools
Group ids come from ime_categories, producer ids from ime_producers. Dates are 1405/08/09 or 2026-10-31; the
default is today (Tehran time). Ranges are limited to 45 days.
Tool | What it does |
| List the exchange's commodity groups: main groups, then groups, then subgroups, with their ids |
| Find producers and suppliers listed on the exchange by name, to get the producer id for the trade and supply tools |
| List commodity trades (price, volume, supply, demand, buyer broker) for a date range, with totals |
| List supply offers (اطلاعیه عرضه): what is up for sale on which session, volume and base price (physical, premium or export) |
| Daily price series (low, high, volume-weighted average, volume) per symbol over a date range |
| Exchange-wide trade value and volume for a date range: by market, by physical-market hall, plus the USD rate |
| Day-by-day trade value and volume of one market over a date range (the site's market chart) |
| Latest news and notices from the exchange's news archive: title, lead, date and link |
| Rank producers, commodities, brokers or halls by traded value over a date range, with each one's market share |
| List the exchange's weekly market reports (گزارش هفتگی), newest first, with the PDF link of each |
| Options on gold, gold coin, gold funds and saffron futures (اختیار معامله): one day's board or one contract's history |
| Daily trades of the exchange's financial-market symbols: salaf, commodity deposit certificates and commodity funds |
| Continuous commodity deposit certificates (گواهی سپرده پیوسته): gold bar, gold coin, silver, copper, steel and more |
| Market-view board (cdn.ime.co.ir) with the best bid and ask for funds, certificates and salaf |
All 14 tools are annotated readOnlyHint: true.
Good to know
Iranian network. ime.co.ir answers from Iran. From a Turkish exit it timed out in testing; use a direct Iranian line or set
IME_MCP_PROXYto a proxy that can reach it.The site mixes up the physical and subsidiary lists. Its trade-list service keeps the first answer per date range and then ignores the market flag. The server asks for a fresh (padded) date range and checks the halls, retrying up to 6 times, so a slow answer is normal.
Units. Prices are Rial per kg for goods listed in tonnes.
value_k_rialis price x volume in thousand Rial; market summaries are million Rial; options, securities, certificates and boards givevalue_rialin Rial.Trading days. Saturday to Wednesday and some Thursdays; other days return nothing.
Not covered: real estate, car trading and the stock sub-sites are separate ime.co.ir sub-sites. Statistical report archives (market-reports.html) need a form post and are not read; weekly report PDFs are linked, not parsed. The subsidiary market list has no price or value, only base price, supply, demand and volume.
Persian data. Names, halls, contracts and news come back in Persian.
FAQ
IME publishes data through its website only. ime-mcp is a separate, unofficial MCP server that calls the public
endpoints behind the website's tables and charts and returns compact JSON.
No. Install with uvx ime-mcp and it works from an Iranian network.
It shows trades published on the site, including the current session as the site lists them. It is not a tick feed.
No. It only reads public data.
npx @modelcontextprotocol/inspector uvx ime-mcpConfiguration
Variable | Default | Meaning |
| unset | Optional HTTP proxy URL for the ime.co.ir requests; system proxy settings are ignored. A comma-separated list is used one at a time: the next proxy takes over when one is blocked or cannot connect |
فارسی: سرور MCP بورس کالای ایران
سرور ime-mcp یک سرور MCP غیررسمی و فقطخواندنی برای بورس کالای ایران است. با آن دستیار هوش مصنوعی شما همان دادههای عمومی سایت را میبیند: معاملات، قیمتها، عرضههای پیشرو و آمار بازار.
چه کارهایی میکند
معاملات بازار فیزیکی، بازار فرعی و تالار صادراتی کیش برای هر بازهٔ تاریخی، با قیمت پایانی (میانگین موزون)، کمترین و بیشترین قیمت، عرضه، تقاضا، حجم، ارزش، تولیدکننده و کارگزار.
اطلاعیهٔ عرضه جلسههای پیشرو با حجم و قیمت پایه.
سابقهٔ قیمت هر نماد بهصورت روزانه تا ۴۵ روز.
آمار بازار بر اساس بازار و تالار، و نرخ دلار تسویهٔ بورس.
اخبار و گزارشهای هفتگی بورس کالا.
نکتهها: فقطخواندنی است و سفارشی ثبت نمیکند؛ کلید API نمیخواهد؛ سایت بورس کالا فقط از شبکهٔ ایران پاسخ میدهد؛ معاملات سکه و گواهی طلا در زیرسایت دیگری هستند و پوشش داده نمیشوند.
نصب (اول uv را نصب کنید). در Claude Code:
claude mcp add ime -- uvx ime-mcpنمونه پرسشها
«قیمت ورق گرم در بورس کالا در یک ماه گذشته چطور تغییر کرده؟»
«فردا چه محصولاتی در بورس کالا عرضه میشود؟»
«بزرگترین معاملات امروز بورس کالا کداماند؟»
Development
git clone https://github.com/sepehr071/ime-mcp && cd ime-mcp
uv sync
uv run ruff check . && uv run ruff format --check .
uv run python -m pytest -q # offline unit tests on recorded IME answers
uv run python -m pytest -m live -q # calls the real ime.co.ir (needs an Iranian line)
uv buildThe physical-market tools live in src/ime_mcp/ime.py, the derivatives and securities tools in src/ime_mcp/securities.py; each is a typed async function with a docstring that tells the agent when to
use it. Issues and PRs are welcome.
Releases: bump the version in pyproject.toml and server.json, then push a v* tag. GitHub Actions publishes to PyPI.
Related servers
iran-mcp: catalog of all Iranian-service MCP servers
mcpfarsi.ir: Persian marketplace of MCP servers for Iranian services
Disclaimer
Unofficial and not affiliated with or endorsed by the Iran Mercantile Exchange. It is read-only and uses the public endpoints of the ime.co.ir website, which can change without notice. Not investment advice; check prices on the exchange before acting on them.
Author
Built and maintained by Sepehr Radmard (سپهر رادمرد). Connect on LinkedIn or follow @sepehr071 on GitHub for more MCP servers for Iranian websites, all listed in iran-mcp. If this saves you time, a star on the repo helps other people find it.
مجوز استفاده (License)
استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیت‌هاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0. نسخه‌های پیش از 0.2.1 با مجوز MIT منتشر شده‌اند و همان مجوز را دارند.
Free for personal and non-commercial use under the PolyForm Noncommercial License 1.0.0. Using it in a company, a paid product or a client project needs a commercial license: contact Sepehr Radmard on LinkedIn or GitHub. Versions before 0.2.1 were released under MIT and stay under it.
Available Tools
14 toolsime_boardLive board of funds, certificates and salafARead-onlyIdempotent
Market-view board (cdn.ime.co.ir) with the best bid and ask: use it to see where a fund or certificate trades now.
Live during the session; after the close the last session (see time, date). Value in Rial. Daily history:
ime_securities.
Inputs: kind, sort, limit, search.
ime_categoriesCommodity groupsARead-onlyIdempotent
List the exchange's commodity groups: main groups, then groups, then subgroups, with their ids.
No arguments: main groups. main_cat: its groups. main_cat plus cat: subgroups. Use the ids as main_cat/cat/sub_cat in ime_trades, ime_supply and ime_price_history.
Inputs: cat, main_cat.
ime_certificatesGold and other deposit certificatesARead-onlyIdempotent
Continuous commodity deposit certificates (گواهی سپرده پیوسته): gold bar, gold coin, silver, copper, steel and more.
No commodity: every certificate with its latest day. With commodity: its day-by-day history (default last
30 days, at most 90). Prices are Rial per certificate unit (about one gram for gold bar, one coin for GoldCoin).
Fund and saffron symbols: ime_securities.
Inputs: date_to, commodity, date_from.
ime_daily_totalsDaily trade totalsARead-onlyIdempotent
Day-by-day trade value and volume of one market over a date range (the site's market chart).
Dates default to the last 14 days; at most 45 days. Value is million Rial. Volume is tonnes (physical), contracts (options) or units (financial).
Inputs: market, date_to, date_from.
ime_market_summaryMarket totalsARead-onlyIdempotent
Exchange-wide trade value and volume for a date range: by market, by physical-market hall, plus the USD rate.
Dates default to today (Tehran). Values are million Rial; volumes are tonnes for physical. offer_volume is
what was offered. The USD rate is the exchange's settlement rate. For a day-by-day series use ime_daily_totals.
Inputs: date_to, date_from.
ime_newsExchange newsARead-onlyIdempotent
Latest news and notices from the exchange's news archive: title, lead, date and link.
Text is Persian.
Inputs: limit.
ime_optionsOptions boardARead-onlyIdempotent
Options on gold, gold coin, gold funds and saffron futures (اختیار معامله): one day's board or one contract's history.
No dates: latest trading day. With dates (at most 10 days): every day in the range. contract (a code from
the list): that contract's days, up to 45. Prices and strike are Rial. Daily market totals: ime_daily_totals(market="options").
Inputs: sort, limit, search, date_to, +4 more.
ime_price_historyPrice history of a commodityARead-onlyIdempotent
Daily price series (low, high, volume-weighted average, volume) per symbol over a date range.
Dates default to the last 14 days; at most 45 days. Narrow with sub_cat or search (a wide filter returns only the 8 biggest symbols). Only days with trades appear. Prices as in ime_trades.
Inputs: cat, market, search, date_to, +4 more.
ime_producersFind producersARead-onlyIdempotent
Find producers and suppliers listed on the exchange by name, to get the producer id for the trade and supply tools.
Use the returned id as producer in ime_trades, ime_supply or ime_price_history.
Inputs: query (required), limit.
ime_securitiesCommodity securities tradesARead-onlyIdempotent
Daily trades of the exchange's financial-market symbols: salaf, commodity deposit certificates and commodity funds.
No dates: latest trading day; with dates every day in the range (at most 45). Prices are Rial per unit, value in Rial. Gold bar / gold coin / silver certificates: ime_certificates; live bid and ask: ime_board.
Inputs: kind, sort, limit, search, +2 more.
ime_supplySupply offersARead-onlyIdempotent
List supply offers (اطلاعیه عرضه): what is up for sale on which session, volume and base price.
Dates are offer dates; default today to 7 days ahead; at most 45 days. Filters as in ime_trades; page with
offset. market=premium adds premium_price. After the session ime_trades shows what sold.
Inputs: cat, limit, market, offset, +6 more.
ime_tradesTrades on the exchangeARead-onlyIdempotent
List commodity trades (price, volume, supply, demand, buyer broker) for a date range, with totals.
Dates default to today (Tehran); at most 45 days. Filter with main_cat/cat/sub_cat (ime_categories), producer
(ime_producers) or search. price is the volume-weighted closing price; Rial per kg for tonne goods; volume in
unit; value_k_rial in thousand Rial. Subsidiary rows have only base_price, supply, demand, volume. For one
product's series use ime_price_history; for market totals ime_market_summary.
Inputs: cat, sort, limit, market, +6 more.
ime_trade_statsTrade statistics by groupARead-onlyIdempotent
Rank producers, commodities, brokers or halls by traded value over a date range, with each one's market share.
Dates default to today (Tehran); at most 45 days; filters as in ime_trades. Value is thousand Rial. volume
only when all trades of the group share one unit. For single trades use ime_trades.
Inputs: group_by (required), cat, limit, market, +6 more.
ime_weekly_reportsWeekly reportsARead-onlyIdempotent
List the exchange's weekly market reports (گزارش هفتگی), newest first, with the PDF link of each.
Only lists links to the Persian PDFs, does not read them. For a week's numbers use ime_market_summary.
Inputs: year, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
The tools are mostly cleanly separated by data type: news, categories, trades, supply offers, price history, aggregate summaries, rankings, options, board, and producer lookup. A few pairs could be confused at a glance, especially ime_market_summary vs. ime_daily_totals and ime_securities vs. ime_certificates, but the descriptions explicitly cross-reference each other and clarify the boundaries.
Every tool uses the same ime_ prefix with snake_case resource-style names, giving a highly predictable pattern throughout. The names are descriptive and consistently formed even though they are noun-based rather than verb_noun.
Fourteen tools is well within a reasonable range for a broad exchange-data server. Each tool covers a distinct query surface such as trades, offers, certificates, options, summaries, rankings, or reference data, so the set does not feel bloated.
The surface covers the core exchange-data workflows: reference data, news, trades, supply, price history, market summaries, rankings, options, board quotes, and reports. Minor gaps exist, such as richer news search/filtering or non-link weekly report contents, but agents can still work around them using the provided tools.
Maintenance
Related MCP Connectors
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Financial data MCP server for Claude, ChatGPT, Cursor and Codex. Real-time stock quotes, financial statements, options flow, SEC filings, insider trades, 13F holdings, macro data and market news from gloom.sh, the open-source Bloomberg Terminal alternative.
OpenFinance gives any AI agent easy trading across every major market through one hosted MCP server. Trade crypto spot and perpetuals on Hyperliquid with market, limit and TWAP orders, leverage and margin control. Trade stocks, indices, commodities, forex and pre-IPO names as Hyperliquid HIP-3 perps. Trade Polymarket prediction markets with odds, order books, positions, PnL and trader leaderboards. Swap and bridge across 40+ EVM chains and Solana with Relay and Jupiter, find memecoins across 200+ chains, launch tokens on Robinhood Chain and Solana, and buy crypto with card, bank or UPI. Write actions are designed to ask for your confirmation first. Connect with OAuth (sign in to OpenFinance and approve) or an API key. Works with Claude, ChatGPT, Cursor, VS Code, Codex and any MCP client. No install. Home: https://openfinance.tech/agents · Docs: https://docs.openfinance.tech · GitHub: https://github.com/openfinance-tech/mcp
Official Intrinio MCP server. US stock prices, options and fundamentals for AI agents.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables access to Iran Mercantile Exchange official public statistics and live board snapshots through MCP tools, covering physical, futures, options, certificates, salaf, funds, and financial market data.14MIT
- AlicenseAqualityBmaintenanceEnables AI agents to read Tehran Stock Exchange and Iran Fara Bourse market data—quotes, top movers, order books, price history, sector indices, and real vs legal trading—through read-only tools. Requires no API key, returning compact JSON in Rial directly to Claude, Cursor, or Copilot.8210 PyPI10PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to read public Hamrah Mechanic data read-only with no API key: daily Iranian car market prices by brand, model, trim and year, price ranges and monthly history, filtered used and zero-km listings with full ad details, inspection fees, showroom locations, and expert reviews and magazine articles. Works in Claude, Cursor, Copilot and other MCP clients over stdio.12164 PyPI2PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to query public Iran Fara Bourse data read-only, including bond, sukuk and treasury bill yields, instrument and coupon details, live quotes and order books, IPOs, announcements, news and market statistics.16164 PyPIPolyForm Noncommercial 1.0.0