
TGJU Prices
io.github.sepehr071由 GitHub 帳號 sepehr071 發布v0.2.0更新於 Nov 7, 2026
Unofficial read-only TGJU: live Iranian gold, coin, currency and crypto prices with daily history.
概覽
非官方唯讀 MCP 伺服器,讓助理查詢伊朗黃金、金幣、外匯與加密貨幣的即時價格及每日歷史行情。
- 可以做什麼
- 一次呼叫彙整主要市場行情:美元、歐元、黃金公克價與盎司價、金幣、布蘭特原油、比特幣、以太幣、泰達幣
- 查詢一個或多個 TGJU 代號的即時價格、當日漲跌、最高與最低價
- 列出黃金、金幣、外匯、Sana、Nima、加密貨幣等分類的行情表,並瀏覽市場目錄樹
- 依波斯文或英文名稱搜尋代號
- 取得每日開盤、最低、最高、收盤與漲跌歷史,支援波斯曆日期篩選
- 適用情境
- 當使用者詢問伊朗的美元、歐元、黃金、金幣、比特幣或布蘭特原油價格、某分類的行情表,或某代號近期的走勢時使用。不適用於交易、德黑蘭證券交易所資料或 TGJU 資料來源以外的市場。
- 執行需求
- 透過 uvx(或 pip)以 stdio 在本機執行,需要 uv 與 Python 3.10+。不需帳號或 API 金鑰。需要能連線 tgju.org 相關端點的 HTTPS 網路;可選環境變數 TGJU_MCP_PROXY 指定 HTTP 代理,系統代理設定會被忽略。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 TGJU Prices,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
tgju-mcp: TGJU MCP server for AI agents (dollar, gold, coin and crypto prices in Iran)
Let your AI agent read live Iranian market prices from TGJU (tgju.org).
An unofficial, read-only MCP server for TGJU (شبکه اطلاعرسانی طلا، سکه و ارز), Iran's market-price portal:
dollar, euro, gold, coin, crypto and commodity prices, category tables and daily history, from Claude, Cursor or Copilot.
[PyPI] [Python] [CI] [MCP Registry] [License: MIT] [mcpfarsi]
For AI agents · Why · What it can do · Quick start · Tools · How it works · Good to know · FAQ · Configuration · فارسی · Development
For AI agents
- What: unofficial MCP server (model context protocol) for tgju.org, the Iranian portal for dollar, gold, coin, crypto and commodity prices. Symbol search takes Persian and English names.
- Install:
uvx tgju-mcporclaude mcp add tgju -- uvx tgju-mcp. Transport: stdio. Needs uv (Python 3.10+). - Auth: none, no API key or account. Optional
TGJU_MCP_PROXY(HTTP proxy URL, or a comma-separated list); system proxy settings are ignored. - Access: read-only. It cannot log in or trade, so no confirmation is needed before calling any tool.
- Tools: 6, all prefixed
tj_. Typical sequence:tj_market_summary->tj_category_table->tj_price_history. If you only have a name, calltj_search_symbolsfirst and pass itssymbolto the other tools. - Use when: the user asks for the dollar, euro, gold, coin, Bitcoin or Brent price in Iran, a price table of a group, or a symbol's daily history.
- Do not use when: the user wants to trade or buy anything, needs stock-exchange (TSETMC) data, or asks about markets outside the TGJU feed.
- Output: compact JSON. Iranian prices are quoted by the site in Rial; those symbols also carry
*_toman(Rial / 10). Global symbols (ounce, Brent, crypto in USD, currency pairs) keep their listed unit (unit: as_listed). - Machine-readable:
server.jsonand the iran-mcp catalog.
Why
TGJU is where Iranians check the dollar, gold and coin price, but it is a busy web page with hundreds of symbols.
Asking "what is the dollar, the 18k gold gram and the Emami coin right now, and how did the dollar move over the last
month?" means several screens. With tgju-mcp an agent answers it in a few calls and returns a short summary
instead of raw tables.
You: What are the main rates today, and how has the dollar moved recently?
Agent: calls
tj_market_summary->tj_search_symbols->tj_price_historyIt reads the key rates in one call, finds the dollar symbol, and summarises its recent daily closes.
Every reply is trimmed to stay under about 15 KB, so it does not flood the agent's context.
What it can do
- Summarise the market in one call: dollar, euro, dirham, pound, lira, gold gram and ounce, coins, silver, Brent, Bitcoin, Ethereum, Tether
- Quote symbols: live price, change, high and low for one or more symbols
- List price tables of a group: gold, coin, retail coin, currency, government currency, Sana, Nima, crypto, or any folder id
- Browse the market tree to find folders and symbols
- Search symbols by name across internal, global and crypto markets
- Pull daily history: open, low, high, close and change, with Jalali date filters
- Read-only by design: no login, no trading
Example prompts:
- "What is the dollar, euro and 18k gold gram price right now?"
- "Show the coin price table."
- "How has the free-market dollar moved over the last 30 days?"
- "Price of Bitcoin and Tether in Toman."
- "Find the symbol for Brent oil and show its latest price."
- قیمت دلار، یورو و طلای ۱۸ عیار الان چند است؟
- جدول قیمت سکه امروز را نشان بده.
- روند قیمت دلار در یک ماه گذشته چطور بوده؟
Quick start
You need uv. No API key or account.
Claude Code
Claude Desktop
Settings → Developer → Edit Config, then add:
Cursor
Add the Claude Desktop block above to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
VS Code (Copilot agent mode)
Click Install in VS Code above, or add to .vscode/mcp.json:
Codex CLI
Or in ~/.codex/config.toml:
Gemini CLI
Add to ~/.gemini/settings.json:
Windsurf
Add the Claude Desktop block to ~/.codeium/windsurf/mcp_config.json.
Anything else
It is a standard stdio MCP server: run uvx tgju-mcp, or pip install tgju-mcp and run tgju-mcp.
Tools
Symbols are lower-case slugs such as price_dollar_rl, geram18 or sekee. If you do not know one, call tj_search_symbols first.
All 6 tools are annotated readOnlyHint: true.
How it works
tgju-mcp runs locally and calls the same endpoints the tgju.org site uses. It has no hosted server in between and
no API key. Requests go out through a Chrome-impersonating client, at most 2 at a time with a little jitter. Answers
are kept for 15 seconds, a failed GET is retried, and it only talks to api.tgju.org and call4.tgju.org. It only reads.
Good to know
- Units: the feed has no unit field. Gold grams, coins, free-market and other
price_*currencies andcrypto-*-irrare in Rial (*_toman= Rial / 10).ons,silver,oil_*,crypto-*(USD) and pairs likeusd-try-askkeep their listed unit (as_listed). - Unit rule is a heuristic on the symbol name, so check unusual symbols against tgju.org. Folder-id tables apply it per row (
unit: mixed); symbols outside it, such as exchange-house quotes with slug names, stayas_listed. - Reply caps:
tj_category_tableandtj_price_historyreturn at most 50 rows, so replies stay under about 14 KB. - Stale quotes: a quote older than 2 days carries
stale: true. Illiquid symbols can be delayed, so checktime. - Symbols missing from the live feed (slugs from
tj_search_symbols) are answered bytj_get_priceswith the latest daily close (source: history,time= date). - Dates: history returns Gregorian and Jalali dates;
from_dateandto_datefilters are JalaliYYYY/MM/DD. - Search returns at most 10 hits.
- What it does not do: no trading or orders, no account features, no prices outside the TGJU feed.
- Network: tgju.org answered plain requests from both a proxy and a direct connection when tested. If your network blocks it, set
TGJU_MCP_PROXY. System proxy variables are ignored on purpose.
FAQ
Is there a TGJU API or MCP server?
TGJU has no documented public API. tgju-mcp is an unofficial MCP server with 6 read-only tools that calls the same
endpoints the tgju.org web app uses and returns compact JSON for AI agents.
How do I get the dollar or gold price in Claude, Cursor or Copilot?
Add the server with claude mcp add tgju -- uvx tgju-mcp, or use the matching config in
Quick start, then ask in plain language, in Persian or English.
Are prices in Rial or Toman?
TGJU quotes Iranian prices in Rial. Those symbols also come back as *_toman (Rial / 10). Global symbols such as the
gold ounce, Brent and crypto in USD keep their listed unit.
Which symbol do I use for the dollar?
Call tj_market_summary for the main rates, or tj_search_symbols with a name (Persian or English) and pass the
returned symbol to tj_get_prices or tj_price_history.
Why does a price look old?
Some symbols are illiquid or no longer updated. A quote older than 2 days is marked stale: true; check the time field.
Can it buy gold or give investment advice?
No. It has no login and no trading calls, it only reads public prices. Nothing it returns is financial advice.
Is the data real time?
It is what TGJU serves, kept for up to 15 seconds in a local cache, and it may be delayed.
How do I debug what the agent sees?
Configuration
فارسی: سرور MCP قیمت دلار، طلا و سکه (TGJU)
tgju-mcp یک سرور MCP غیررسمی و فقطخواندنی برای سایت TGJU (شبکه اطلاعرسانی طلا، سکه و ارز) است. این سرور به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه میدهد قیمت دلار، یورو، طلا، سکه، ارز دیجیتال و کالاها را از tgju.org بخواند.
چه کارهایی میکند
- خلاصه بازار در یک فراخوانی: دلار، یورو، درهم، پوند، لیر، گرم و اونس طلا، سکهها، نقره، برنت، بیتکوین، اتریوم و تتر.
- قیمت لحظهای نماد با تغییر روز، بیشترین و کمترین قیمت.
- جدول قیمت گروهها: طلا، سکه، ارز، ارز دولتی، ارز نیما، ارز سنا، ارز دیجیتال.
- جستجوی نماد و گشتوگذار در درخت بازار.
- تاریخچه روزانه قیمت (باز، کم، زیاد، پایانی و تغییر) با فیلتر تاریخ شمسی، تا ۵۰ ردیف.
نکتهها
- فقط خواندنی است: وارد حساب نمیشود و خرید و فروش انجام نمیدهد. توصیه مالی نیست.
- قیمتهای ایرانی در سایت به ریال است و برای آنها فیلد تومان (ریال تقسیم بر ۱۰) هم برمیگردد. نمادهای جهانی (اونس، برنت، ارز دیجیتال به دلار) واحد خودشان را دارند.
- قیمت نمادهای کممعامله ممکن است قدیمی باشد؛ فیلد
timeرا ببینید. - کلید API لازم نیست و روی سیستم خود شما اجرا میشود. در صورت نیاز به پراکسی، متغیر
TGJU_MCP_PROXYرا بگذارید.
نصب (اول uv را نصب کنید). در Claude Code:
در Claude Desktop، Cursor و بقیه برنامهها همان تنظیم بخش Quick start را بگذارید.
نمونه پرسشها
- «قیمت دلار و طلای ۱۸ عیار الان چند است؟»
- «جدول قیمت سکه را نشان بده.»
- «روند دلار آزاد در ۳۰ روز گذشته چطور بوده؟»
- «قیمت بیتکوین و تتر به تومان چقدر است؟»
Development
All tools live in src/tgju_mcp/markets.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
- tsetmc-mcp for Tehran Stock Exchange quotes and indices
- iran-crypto-mcp for crypto prices on Iranian exchanges
- milligold-mcp for gold prices on Milli
- iran-news-mcp for Iranian news
- Listed on mcpfarsi.ir, the Persian MCP marketplace
Disclaimer
Unofficial and not affiliated with or endorsed by TGJU. It is read-only and uses the endpoints of the tgju.org web app, which can change without notice. Prices are informational, may be delayed, and are not financial advice.
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
來源:README.md,提交 8eb9fcc
工具
0版本歷史
4- v0.2.0最新Nov 7, 2026
- v0.1.2Oct 23, 2026
- v0.1.1Oct 22, 2026
- v0.1.0Oct 20, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分