Quantio MCP Documentation
Streamable HTTP Model Context Protocol endpoint exposing normalized TSETMC, Codal, FipIran, Direct Fund Portals, and Iranian FX, Gold & Commodities market data.
1. Quickstart
https://mcp.quantio.ir/api/mcpMCP Streamable HTTP (JSON-RPC 2.0 over POST). Required headers: Authorization: Bearer qnt_live_... and Accept: application/json, text/event-stream.
{
"mcpServers": {
"quantio": {
"url": "https://mcp.quantio.ir/api/mcp",
"headers": {
"Authorization": "Bearer qnt_live_YOUR_API_KEY"
}
}
}
}~/.gemini/config/mcp_config.json or open Additional Options (…) > MCP Servers in Antigravity.2. MCP Tool Schemas
search_entitiesfreeResolve Persian/English names, tickers, ISINs, FipIran regNos, or macro FX/gold symbols to canonical entities.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Ticker, Persian/English name, ISIN, FipIran regNo, or macro code (e.g. USD) |
type | "stock" | "fund" | "etf" | "index" | "macro" | No | Filter entity category |
limit | number (1-50) | No | Max results (default 10) |
get_symbol_realtimefreeLatest OHLC price, volume, real/legal money flow, and 5-level orderbook (plus FX, gold, coin & oil macro benchmarks).
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Ticker, ISIN, or macro symbol (e.g. فولاد or USD) |
get_historical_ohlcvfreeOHLCV candle series aggregated by day, week, or month for equities, ETFs, and macro benchmarks (30d on Free, full history on Pro).
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Ticker, ISIN, or macro benchmark (e.g. فولاد or USD) |
timeframe | "1d" | "1w" | "1m" | No | Candle aggregation (default 1d) |
limit | number (1-1500) | No | Candle count (default 30) |
get_fund_profilefreeMutual fund & ETF profile combining FipIran registry, TSETMC ETF quotes, and direct single-NAV/multi-NAV portal intelligence (TadbirPardaz, RayanHamAfza, NikaSarmayeh, Mabna).
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol_or_id | string | Yes | Fund ticker or FipIran regNo (e.g. عیار, یاقوت, طلا, اهرم, کیان, معیار) |
compare_fundsfreeSide-by-side normalized comparison of 2 to 10 Iranian funds and ETFs.
| Parameter | Type | Required | Description |
|---|---|---|---|
ids | string[] (2-10) | Yes | List of fund tickers or FipIran regNos |
get_codal_filingsproDirect *.codal.ir corporate disclosures: financial statements (ن-10), monthly activity (ن-30/ن-31), board governance (ن-45), KPIs, tables, and attachments.
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Stock or fund ticker |
limit | number (1-50) | No | Max filings (default 10) |
category | string | No | Filter by filing category (e.g. financial_statement, monthly_activity, board_governance) |
letter_code | string | No | Filter by Codal form code (e.g. ن-10, ن-30, ن-31, ن-45) |
audited_only | boolean | No | Return only audited disclosures when true |
screen_marketproFilter TSETMC equities (debt/treasury bills excluded) and FipIran funds/ETFs by P/E, volume ratio, real-money inflow, fund category, and returns.
| Parameter | Type | Required | Description |
|---|---|---|---|
type | "stock" | "fund" | "etf" | No | Market segment |
min_pe | number | No | Minimum P/E ratio |
max_pe | number | No | Maximum P/E ratio |
min_volume_ratio | number | No | Minimum volume / 30d avg ratio |
min_real_inflow | number | No | Minimum net real-money inflow (IRR) |
min_return_1m | number | No | Minimum 1-month return (%) |
min_return_1y | number | No | Minimum 1-year return (%) |
fund_type | string | No | Persian or English fund type alias (e.g. gold, fixed_income, equity, leveraged, mixed) |
sort_by | "value" | "change_pct" | "real_inflow" | "return_1y" | "aum" | "pe" | No | Sort column |
limit | number (1-50) | No | Max rows (default 20) |
3. MCP Resources
| URI | Payload |
|---|---|
quantio://market/overview | TEDPIX index value, advancers/decliners count, total value traded, and top 5 real-money inflow equities. |
quantio://entity/{symbol}/profile | Canonical metadata, source mappings, latest market snapshot, and fund metrics (if applicable). |
4. Rate Limits
| Tier | Daily | RPM | Freshness |
|---|---|---|---|
| Free | 100 | 10 | 15m delay |
| Pro | 5,000 | 120 | Real-time |
| Enterprise | Unlimited | Unlimited | Real-time |
5. Error Codes
| Code | Cause & Fix |
|---|---|
| 401 | Missing, malformed, or revoked qnt_live_ key. Create one in Console API Keys (app.quantio.ir/keys). |
| 429 | RPM or daily quota exceeded. Wait for Retry-After seconds or check remaining quota in Console Plan & Referrals. |
| tier_required | get_codal_filings and screen_market require Pro. |