Skip to main content
Glama
fipiran-mcp

fipiran-mcp

by sepehr071

fipiran-mcp: Fipiran (فیپیران) Iranian mutual fund and ETF data MCP server for AI agents

fipiran-mcp is an unofficial, read-only MCP server that gives AI agents the public fund data of Fipiran (مرکز پردازش اطلاعات مالی ایران, fipiran.ir). Its 11 tools search and rank Iranian mutual funds and ETFs (صندوق‌های سرمایه‌گذاری) by type, manager, size and return, show one fund in full, return daily NAV, return, size, flow and investor-mix history, compare funds, rank fund managers, and cover the bourse: market overview, indices, stock quotes and industries. No API key or account is needed. It works in Claude, Cursor, Copilot and any other MCP client.

PyPI License: PolyForm Noncommercial

For AI agents

  • What: unofficial MCP server for fipiran.ir fund pages: search and ranking of about 500 Iranian mutual funds and ETFs, fund details, daily NAV / rolling-return / size history, side-by-side comparison, fund types with average returns, fund management companies.

  • Install: uvx fipiran-mcp or claude mcp add fipiran -- uvx fipiran-mcp. Transport: stdio. Needs uv (Python 3.10+).

  • Auth: none. Optional FIPIRAN_MCP_PROXY (HTTP proxy URL); system proxy settings are ignored.

  • Network: fipiran.ir answers Iranian internet lines only. Outside Iran, set FIPIRAN_MCP_PROXY to an Iranian proxy.

  • Access: read-only, no confirmation needed. Login-only Fipiran features (ranking reports, watchlists, exports) are not included.

  • Tools: 11, all prefixed fp_: fp_search_funds, fp_fund_types, fp_fund, fp_history, fp_compare, fp_managers, fp_indices, fp_index_history, fp_stocks, fp_stock, fp_industries. Typical sequence: fp_search_funds -> fp_fund / fp_history / fp_compare.

  • Use when: the user asks which Iranian funds returned most, the biggest gold or fixed-income funds, the NAV or price history of a fund, how a fund compares with its type average, or who manages a fund.

  • Output: compact JSON. Returns are percent per period (not annualised); sizes billion Toman; NAV rial per unit. Names are Persian.

Related MCP server: codal-mcp

Tools

Tool

What it does

fp_search_funds

Find and rank funds by name, ticker, type, manager, size, age and return (daily to since-start).

fp_fund_types

Fund types with fund count, total size, average returns and average asset allocation.

fp_fund

One fund in full: NAV, returns, size, allocation, investors, manager, auditor, custodian, website; optional past date.

fp_history

Daily NAV, rolling returns, net assets and unit flows, institutional/retail mix or dividends of one fund (up to 60 evenly spaced points).

fp_compare

2 to 8 funds side by side.

fp_managers

Fund management companies by assets under management.

fp_indices

Tehran and Farabourse market overview plus the 65 market and industry indices ranked by return.

fp_index_history

Daily value (with low and high) or rolling returns of one index.

fp_stocks

Search and rank listed shares of the last trading day: gainers, losers, most traded, by industry or market.

fp_stock

One share in full: quote, range, 5-level order book, retail vs institutional, period returns, optional OHLC history.

fp_industries

Industries ranked by traded value, volume and trades on the last day.

Quick start

uvx fipiran-mcp

Claude Desktop / Cursor config:

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

FAQ

Is it official? No. It reads the same public JSON the fipiran.ir fund pages load; it is not affiliated with Fipiran. Is this investment advice? No. It is data. Past returns do not predict future returns; very young funds show distorted annual returns. Why does it fail outside Iran? The site does not answer foreign IPs. Use FIPIRAN_MCP_PROXY.


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

مجوز استفاده (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

11 tools
fp_compareCompare fundsA
Read-onlyIdempotent

Put 2 to 8 funds side by side: type, size, NAV, returns for every period, allocation, manager.

Ids are reg_no (and group_id) of search rows.

Inputs: funds (required).

fp_fundFund detailsA
Read-onlyIdempotent

Get one fund in full: NAV, returns, size, allocation, investors, manager, auditor, custodian, website.

Use after fp_search_funds. Price series: fp_history.

Inputs: reg_no (required), on_date, group_id.

fp_fund_typesFund types and averagesA
Read-onlyIdempotent

List fund types (equity, fixed income, gold, mixed...) with fund counts, total size and average returns.

Gives the type ids for fp_search_funds. Returns are average percent; allocation is the average stock/bond/cash/deposit share.

Inputs: no named parameters.

fp_historyFund historyA
Read-onlyIdempotent

Get a fund's daily history: NAV, returns, size and flows, investor mix or dividends, at most 60 points.

Oldest first. Also gives NAV change over the window (nav) or net units issued minus redeemed (size).

Inputs: reg_no (required), days, series, group_id.

fp_index_historyIndex historyA
Read-onlyIdempotent

Get the daily history of one market or industry index, oldest first, at most 60 evenly spaced points.

Use after fp_indices. The value series also has the change over the window.

Inputs: ins_code (required), days, series.

fp_indicesMarket overview and indicesA
Read-onlyIdempotent

Show the Tehran and Farabourse market summary and rank the 65 market and industry indices by return.

Each index has an ins_code for fp_index_history. The first block is the market overview.

Inputs: limit, query, sort_by.

fp_industriesIndustry tradingA
Read-onlyIdempotent

Rank the stock-market industries by trading on the last day: traded value, volume, number of trades.

Use the name in fp_stocks(industry=...) for its shares, or fp_indices(query=...) for its index.

Inputs: limit, sort_by.

fp_managersFund managersA
Read-onlyIdempotent

Rank fund management companies by total assets under management, with their fund count and typical return.

Pass a manager name to fp_search_funds(manager=...). avg_annual_return_pct covers only funds older than one year.

Inputs: limit, query.

fp_search_fundsSearch and rank fundsB
Read-onlyIdempotent

Search Iranian mutual funds and ETFs by name, type or manager, and rank them by return or size.

Rows have reg_no and group_id for fp_fund, fp_history, fp_compare.

Inputs: limit, query, manager, sort_by, +6 more.

fp_stockStock quoteA
Read-onlyIdempotent

Get one listed share in full: last trade, range, order book, buyers and sellers, period returns, industry.

Prices are rial. Order book and retail vs institutional counts are the last published. history_days adds OHLC rows, newest first.

Inputs: symbol (required), history_days.

fp_stocksSearch and rank stocksA
Read-onlyIdempotent

Search and rank listed shares traded on the last trading day: top gainers, losers, most traded, by industry.

Pass a row's symbol to fp_stock. Prices are rial, value is billion Toman. Untraded shares are left out.

Inputs: limit, query, market, sort_by, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 11 tools

    Disambiguation4/5

    Each tool has a distinct role (search vs. detail vs. history vs. compare), and descriptions explicitly chain them ('Use after fp_search_funds', 'Pass a row's symbol to fp_stock'), which makes selection mostly unambiguous. Minor friction remains between the singular/plural pairs (fp_stock vs fp_stocks, fp_indices vs fp_industries), which cover adjacent ground and could be confused at a glance.

    Naming Consistency4/5

    All tools share a consistent fp_ prefix and snake_case, with singular nouns for single-entity lookups and plurals for lists, which is a predictable pattern. The only deviation is fp_search_funds using a verb_noun form while the rest are plain nouns, though this is still readable.

    Tool Count5/5

    Eleven tools is well within the ideal range and each one covers a distinct resource: funds, fund history, comparison, managers, indices, index history, stocks, stock detail, industries, and fund types. No tool looks redundant or padded.

    Completeness4/5

    The surface covers the Iranian fund and market domain well: discovery, detail, history, comparison, manager ranking, indices, stocks, and industries, with cross-references between them. Gaps are minor — e.g., no multi-index comparison or aggregated market-wide historical tool beyond a single index's history.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      8
      210 PyPI
      10
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search and read Iranian listed companies’ Codal disclosures, including financial statements, EPS and monthly activity reports as tables, meeting decisions, and PDF/Excel links, plus company and fiscal-year lookups.
      5
      383 PyPI
      10
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to read official Central Bank of Iran data through 11 read-only tools: historical exchange rates for ~48 currencies, inflation, weekly interbank and policy rates, news, liquidity, monthly statistics tables, sukuk auctions and open market operations, with no API key required. Text is Persian, dates accept Jalali or Gregorian, and output is compact JSON.
      11
      170 PyPI
      PolyForm Noncommercial 1.0.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      16
      164 PyPI
      PolyForm Noncommercial 1.0.0