Milli.gold Prices

io.github.sepehr071由 GitHub 帳號 sepehr071 發布v0.3.0更新於 Nov 7, 2026

Unofficial read-only Milli.gold: live 18k gold price, history, fees, trade quotes, news and help.

已驗證STDIO僅桌面網頁搜尋與抓取金融

概覽

AI 產生的概覽

非官方唯讀 MCP 伺服器,讓助理讀取 Milli.gold 的 18K 金即時價格、歷史價格、手續費、交易估算、平台統計與新聞。

可以做什麼
  • 讀取 18K 金即時價格,包含每毫克里亞爾、每克里亞爾、每克托曼及德黑蘭時間戳記
  • 取得日、週、月價格歷史,含首末價、最高最低價與漲跌幅
  • 讀取平台統計資料,以及買入、賣出、轉移、交付和錢包提領的現行手續費
  • 估算買入若干克或依托曼預算買入的成本,或賣出的實得金額(含手續費)
  • 列出並閱讀最新新聞、雜誌與說明文章,並依關鍵字尋找說明文章
適用情境
當使用者詢問 Milli.gold 上 18K 金的價格、日/週/月的走勢、含手續費的買賣成本、平台手續費或統計資料,以及交付、轉移和驗證流程時使用。不適用於實際買賣、全市場報價,或美元、金幣與加密貨幣價格。
執行需求
透過 uvx(或 pip install)以 stdio 在本機執行,需要 uv 與 Python 3.10 以上版本。不需帳號或 API 金鑰。選用環境變數 MILLIGOLD_MCP_PROXY 可設定 HTTP 代理或逗號分隔的代理清單;系統代理設定會被忽略。需要能連線至 milli.gold 的網路。
安裝前請注意
非官方專案,與 Milli.gold 無關聯;所讀取的公開端點可能隨時變更。價格僅供參考,不構成投資建議,且為平台自身報價而非全市場行情。交易估算為近似值,不適用新用戶手續費減免與提領費用。伺服器為唯讀:不登入、不交易、不存取錢包。設定 MILLIGOLD_MCP_PROXY 會讓請求經過第三方代理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Milli.gold Prices,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[milligold-mcp: unofficial Milli.gold MCP server for Claude, Cursor and Copilot]

milligold-mcp: Milli.gold price MCP server for AI agents

Give your AI agent the live 18k gold price from Milli.gold (میلی).
An unofficial, read-only MCP server for Milli.gold, an Iranian online platform for 18k gold sold by the milligram:
the live gold price per gram, day, week and month price history, and platform statistics, all from Claude, Cursor or Copilot.

[PyPI] [Python] [CI] [MCP Registry] [License: MIT] [mcpfarsi]

[Install in Cursor] [Install in VS Code]

For AI agents · Quick start · What it can do · Tools · Good to know · FAQ · فارسی


For AI agents

  • What: unofficial MCP server (model context protocol) for the public price, statistics, fees, news and help pages of milli.gold. A gold price API for Iran in tool form.
  • Install: uvx milligold-mcp or claude mcp add milligold -- uvx milligold-mcp. Transport: stdio. Needs uv (Python 3.10+).
  • Auth: none, no API key or account. Optional MILLIGOLD_MCP_PROXY (HTTP proxy URL, or a comma-separated list); system proxy settings are ignored.
  • Access: read-only, so no confirmation is needed before calling any tool. It cannot log in, trade or read a wallet.
  • Tools: 8, all prefixed mg_. Typical sequences: mg_get_price -> mg_price_history; mg_trade_quote; mg_latest_posts or mg_help_topics -> mg_read.
  • Use when: the user asks for the current 18k gold price per gram on Milli.gold, how it moved over a day, week or month, what a buy or sale costs with fees, Milli.gold's fees, its latest gold news, or how to use Milli (delivery, transfer, verification).
  • Do not use when: the user wants to actually buy or sell gold, needs a market-wide quote, or wants dollar, coin or crypto prices (see tgju-mcp).
  • Output: compact JSON. Milli.gold quotes Rial per milligram of 18k gold; replies also carry Rial per gram and Toman per gram. Times are Tehran time.
  • Machine-readable: server.json and the iran-mcp catalog (TOOLS.md, servers.json, llms.txt).

Why

Milli.gold sells 18k melted gold by the milligram, so its price is quoted per milligram, in Rial. The site shows the price per gram, and the numbers are easy to misread by a factor of 10 or 1000. An agent with milligold-mcp reads the quote straight from the public endpoints and does the unit conversion for you:

You: What is the Milli.gold gold price right now, and is it up or down this week?

Agent: calls mg_get_price() -> mg_price_history(period="WEEKLY")

One gram of 18k gold costs 26,890,000 Toman on Milli.gold (268,900 Rial per milligram). Over the past week it moved by the percentage shown in change_percent, between the week's low and high.

Illustrative example with the price from the site's own unit explanation; prices change all the time.

What it can do

  • Live price of 18k gold on Milli.gold: Rial per milligram, Rial per gram and Toman per gram, with the Tehran-time timestamp
  • Price history for the last day, week or month, with first, last, high, low and change percent
  • Platform statistics: users, trade transactions, gold traded and held (kg), burned gold (kg), branches and representatives
  • Fees for buying, selling, transferring and delivering gold and for wallet withdrawals, read live from the fees page
  • Trade quotes: what buying N grams (or spending a Toman budget) costs, or what selling pays, fee included
  • News, magazine and help: the newest posts (daily gold, ounce and market reports), help articles found by keyword, and the full text of any post
  • Read-only by design: no login, no trading, no wallet

Example prompts:

  • "What is the 18k gold price per gram on Milli.gold right now?"
  • "Show me Milli.gold's gold price for the last month. What were the high and the low?"
  • "Is gold up or down today on Milli.gold? Give me the change in percent."
  • "How many users and how much gold does Milli.gold report?"
  • "How much do I pay on Milli.gold for 2 grams of gold, fee included?"
  • "How do I get physical gold delivered from Milli, and what does it cost?"
  • با ۵ میلیون تومان چند میلی طلا در میلی می‌توانم بخرم؟
  • آخرین اخبار قیمت طلا در میلی چیست؟
  • قیمت طلای ۱۸ عیار در میلی الان هر گرم چند تومان است؟
  • نمودار قیمت طلا در میلی در یک هفته گذشته چطور بوده؟
  • امروز قیمت طلا در میلی بالا رفته یا پایین آمده؟

Quick start

You need uv. No API key or account.

Claude Code
bash
claude mcp add milligold -- uvx milligold-mcp
Claude Desktop

Settings → Developer → Edit Config, then add:

json
{  "mcpServers": {    "milligold": { "command": "uvx", "args": ["milligold-mcp"] }  }}
Cursor

Click Install in Cursor above, or add the Claude Desktop block to ~/.cursor/mcp.json.

VS Code (Copilot agent mode)

Click Install in VS Code above, or add to .vscode/mcp.json:

json
{  "servers": {    "milligold": { "type": "stdio", "command": "uvx", "args": ["milligold-mcp"] }  }}
Codex CLI
bash
codex mcp add milligold -- uvx milligold-mcp

Or add to ~/.codex/config.toml:

toml
[mcp_servers.milligold]command = "uvx"args = ["milligold-mcp"]
Gemini CLI

Add to ~/.gemini/settings.json:

json
{  "mcpServers": {    "milligold": { "command": "uvx", "args": ["milligold-mcp"] }  }}
Windsurf

Add the Claude Desktop block to ~/.codeium/windsurf/mcp_config.json.

Anything else

It's a standard stdio MCP server: run uvx milligold-mcp, or pip install milligold-mcp and run milligold-mcp.

Tools

All 8 tools are read-only and return compact JSON.

ToolWhat it does
mg_get_priceGets the current Milli.gold price of 18k melted gold in Rial per milligram, Rial per gram and Toman per gram, with the Tehran-time timestamp
mg_price_historyGets the 18k gold price series for a day, week or month (period: DAILY, WEEKLY, MONTHLY; points: 2-50, default 24) with first, last, high, low and change percent
mg_platform_statsGets Milli.gold's headline numbers: users, trade transactions, gold traded (kg), user balances (kg), burned gold (kg), branches and representatives
mg_feesGets the current fees for buying, selling, transferring and delivering gold and for wallet withdrawals (customer: individual or company), each as percent with minimum and maximum
mg_trade_quoteEstimates the cost of a buy or the payout of a sale at the live price, fee included (side: buy or sell; grams, or toman as a buying budget)
mg_latest_postsLists the newest posts with date, categories, summary and URL (section: news, mag or help; limit: 1-20)
mg_help_topicsFinds help-center articles by English keyword (e.g. delivery, fee, card); empty query lists all
mg_readReads the text of one milli.gold news, magazine or help post (url; max_chars: 500-20000, default 6000)

How it works

text
  AI agent  (Claude, Cursor, Copilot, ...)      │      │  MCP over stdio      ▼  milligold-mcp  (runs on your machine)      │      │  HTTPS      └──────▶  milli.gold   price, price history, platform report, fees page, RSS feeds, help sitemap, posts

milligold-mcp runs locally and reads public, login-free parts of milli.gold: three JSON endpoints (live price, price widget series, overall report), the fees page, the news, magazine and help RSS feeds, the help sitemap and the post pages. There is no hosted server in between and no API key.

  • Chrome-like client. Requests go through a Chrome-impersonating HTTP client, because the site sits behind ArvanCloud.
  • ArvanCloud 307 + cookie. ArvanCloud sometimes answers with a redirect to the same URL plus a cookie. The server retries once and keeps the cookie, so you never see it.
  • 15 s cache. Repeated calls within 15 seconds reuse the answer instead of hitting the site again.
  • Read-only. Only GET requests, only to milli.gold. System proxy variables are ignored on purpose.

Good to know

  • Units. The site quotes price18 in Rial per milligram, and 1 gram = 1000 mg. So 268,900 Rial/mg x 1000 = 268,900,000 Rial/g, and Rial / 10 = 26,890,000 Toman/g, which matches "price of 1 gram of 18k gold" on the site.
  • Tehran time. as_of and history time values are Tehran time (UTC+3:30).
  • Milli.gold's own price. It is the platform's quote for 18k melted gold, with no tax or making charge. It is not a market-wide quote and not the tgju price, so expect small differences from other sources.
  • History stats follow the site. The high, low and change for a week or a month include the day's peak and the live price, like the Milli.gold page does. points only thins the returned series; it does not change the stats.
  • Statistics are rounded totals that the company publishes, with weights in kilograms.
  • Trade quotes are estimates. The fee is the larger of the minimum and the percent on the fees page (today 1 mg or 0.5 %). New-user fee waivers and wallet withdrawal fees are not applied, and the price moves between the quote and a real trade.
  • Posts. Only the newest posts are available (about 20 news, 10 magazine, 10 help); the site's feeds have no search or older pages. Help articles are found by the English words in their URLs. Post text is Persian.
  • What it does not do. No buying or selling, no login, no wallet or account data.

FAQ

Is there a Milli.gold API or MCP server for AI agents?

Yes: milligold-mcp is an unofficial MCP server with 8 read-only tools. It calls the public price and statistics endpoints and reads the public fees, news and help pages that milli.gold itself serves; no API key is needed.

How do I get the 18k gold price per gram in Claude, Cursor or Copilot?

Add the server with claude mcp add milligold -- uvx milligold-mcp (or the matching config in Quick start), then ask "What is the 18k gold price per gram on Milli.gold?" in English or Persian.

What is the unit of the price?

Milli.gold quotes Rial per milligram. Every reply also carries Rial per gram (x 1000) and Toman per gram (Rial per gram / 10).

How is it different from tgju-mcp, and which should I use?

tgju-mcp reads tgju.org: dollar, euro, gold, coins, crypto and commodity prices across the Iranian market. milligold-mcp reads one platform, Milli.gold, and gives that platform's own gold price per milligram and its history. Use tgju-mcp for market rates and wide comparisons; use milligold-mcp when the question is about the price on Milli.gold specifically.

Can it buy or sell gold for me?

No, and that's deliberate. It has no login and only reads public data.

Is it official, safe and free?

It is unofficial and not affiliated with Milli.gold. It is read-only, runs on your machine and is free under the MIT license.

Do I need an Iranian IP or a proxy?

Not by default. If requests are blocked from your network, set MILLIGOLD_MCP_PROXY to an HTTP proxy. System proxy variables are ignored on purpose.

Claude Desktop says uvx is not found

Use the full path to uvx (where uvx on Windows, which uvx on macOS/Linux) as command.

Configuration

VariableDefaultMeaning
MILLIGOLD_MCP_PROXYunsetOptional HTTP proxy URL for milli.gold requests. A comma-separated list is used one at a time: the next proxy takes over when one is blocked or cannot connect. System proxy settings are ignored

فارسی: سرور MCP قیمت طلای میلی

milligold-mcp یک سرور MCP غیررسمی و فقط‌خواندنی برای میلی (Milli.gold)، پلتفرم آنلاین خرید و فروش طلای ۱۸ عیار آب‌شده به‌صورت میلی‌گرمی، است. این سرور به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه می‌دهد قیمت لحظه‌ای طلا، تاریخچه قیمت، آمار پلتفرم، کارمزدها، هزینه معامله و اخبار و راهنمای میلی را بخواند.

چه کارهایی می‌کند

  • قیمت هر گرم طلای ۱۸ عیار در میلی: ریال به ازای هر میلی‌گرم، ریال به ازای هر گرم و تومان به ازای هر گرم.
  • تاریخچه قیمت روز، هفته و ماه گذشته، با اولین، آخرین، بیشترین و کمترین قیمت و درصد تغییر.
  • آمار پلتفرم: تعداد کاربران، تعداد معاملات، طلای معامله‌شده و نگه‌داری‌شده (کیلوگرم)، طلای سوزانده‌شده و تعداد شعبه‌ها و نمایندگی‌ها.
  • کارمزدها: کارمزد خرید، فروش، انتقال، تحویل طلا و برداشت از کیف پول، مستقیم از صفحه کارمزدهای سایت.
  • محاسبه هزینه معامله: هزینه خرید چند گرم طلا (یا با یک بودجه تومانی) و مبلغ دریافتی از فروش، با کارمزد.
  • اخبار، مجله و راهنما: تازه‌ترین مطالب (گزارش روزانه قیمت طلا و اونس)، جستجوی مقاله‌های راهنما و خواندن متن کامل هر مطلب.

نکته‌ها

  • فقط خواندنی است: خرید و فروش نمی‌کند، وارد حساب نمی‌شود و به کیف پول دسترسی ندارد.
  • قیمت، قیمت خود میلی است (بدون مالیات و اجرت)، نه قیمت بازار و نه قیمت tgju؛ برای نرخ دلار، سکه و ارز دیجیتال از tgju-mcp استفاده کنید.
  • هر ۱ گرم برابر ۱۰۰۰ میلی‌گرم است؛ ۲۶۸٬۹۰۰ ریال به ازای هر میلی‌گرم یعنی ۲۶٬۸۹۰٬۰۰۰ تومان برای هر گرم.
  • زمان‌ها به وقت تهران است. پاسخ‌ها ۱۵ ثانیه نگه داشته می‌شوند.
  • روی سیستم خود شما اجرا می‌شود و کلید API لازم ندارد.

نصب (اول uv را نصب کنید). در Claude Code:

bash
claude mcp add milligold -- uvx milligold-mcp

در Claude Desktop، Cursor و بقیه برنامه‌ها همان تنظیم بخش Quick start را بگذارید.

نمونه پرسش‌ها

  • «قیمت طلای ۱۸ عیار در میلی الان هر گرم چند تومان است؟»
  • «قیمت طلا در میلی در یک ماه گذشته بیشترین و کمترین چقدر بوده؟»
  • «امروز طلای آب‌شده در میلی گران‌تر شده یا ارزان‌تر؟»
  • «آمار میلی را بگو: چند کاربر و چقدر طلا؟»

کلیدواژه‌ها: قیمت طلا، قیمت طلای ۱۸ عیار، خرید طلا آنلاین، طلای آب‌شده، قیمت هر گرم طلا، طلای دیجیتال، میلی.

Development

bash
git clone https://github.com/sepehr071/milligold-mcp && cd milligold-mcpuv syncuv run ruff check . && uv run ruff format --check .uv run python -m pytest -q          # offline unit testsuv run python -m pytest -m live -q  # calls milli.golduv build

Tools live in src/milligold_mcp/gold.py; each is a typed async function with a docstring that tells the agent when to use it. Releases: bump the version in pyproject.toml and server.json, then push a v* tag.

Related servers

  • tgju-mcp for dollar, euro, gold, coin, crypto and commodity prices from tgju.org
  • iran-crypto-mcp for cryptocurrency prices on Iranian exchanges
  • tsetmc-mcp for Tehran Stock Exchange data
  • iran-mcp: catalog of all Iranian-service MCP servers
  • Listed on mcpfarsi.ir, the Persian MCP marketplace

Disclaimer

Unofficial and not affiliated with or endorsed by Milli.gold. It is read-only and uses public endpoints of milli.gold, which can change without notice. Prices are informational and not financial advice.

Author

[Sepehr Radmard: open-source MCP servers for the Iranian web. LinkedIn: linkedin.com/in/sepehr-radmard]

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

MIT

來源:README.md,提交 3831e85

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.3.0最新Nov 7, 2026
  2. v0.2.1Oct 29, 2026
  3. v0.1.2Oct 23, 2026
  4. v0.1.1Oct 22, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分