iran-gold-mcp: live gold prices from Iranian gold platforms for AI agents
Compare the 18k gold price on Milli.gold, Wallgold, Melligold and Daric from your AI agent.
An unofficial, read-only MCP server for Iranian online platforms that sell 18k melted gold (طلای آبشده):
live buy and sell price per gram on each platform, the cheapest place to buy, the best place to sell, and Milli.gold's price history.
For AI agents · Quick start · Tools · Good to know · FAQ · فارسی
For AI agents
- What: unofficial MCP server (model context protocol) for the public price endpoints of four Iranian online gold platforms: milli.gold, wallgold.ir, melligold.com and daric.gold.
- Install:
uvx iran-gold-mcporclaude mcp add iran-gold -- uvx iran-gold-mcp. Transport: stdio. Needs uv (Python 3.10+). - Auth: none, no API key or account. Optional
IRAN_GOLD_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: 3, all prefixed
gold_. Typical sequence:gold_prices->gold_milli_history. - Use when: the user asks what 18k melted gold costs per gram on these platforms, where it is cheapest to buy or best to sell, or how the Milli.gold price moved over a day, week or month.
- Do not use when: the user wants to buy or sell gold, or wants dollar, coin or crypto prices (see tgju-mcp).
- Output: compact JSON.
gold_pricesis Toman per gram of 18k gold;gold_milli_historyis Rial per milligram. Times are Tehran time.
Why
Every Iranian gold platform quotes its own price, in its own unit: Milli.gold in Rial per milligram, the others in
Toman per gram, and Daric as an order book with a separate bid and ask. iran-gold-mcp reads all four at once,
converts them to Toman per gram and sorts them:
You: Where is 18k gold cheapest to buy right now?
Agent: calls
gold_prices()Milli.gold is cheapest at 26,019,000 Toman per gram, then Wallgold (26,202,000), Melligold (26,248,700) and Daric (26,332,312). Platform fees are not included.
Real prices from 2026-10-27; they change all the time.
Example prompts:
- "Compare the 18k gold price per gram on Milli, Wallgold, Melligold and Daric."
- "Where should I sell 2 grams of melted gold right now?"
- "Show me Milli.gold's gold price for the last month. What were the high and the low?"
- قیمت طلای آبشده الان در کدام سایت ارزانتر است؟
- قیمت هر گرم طلای ۱۸ عیار در میلی، والگلد، ملیگلد و داریک را مقایسه کن.
Quick start
You need uv. No API key or account.
Claude Code
claude mcp add iran-gold -- uvx iran-gold-mcp
Claude Desktop
Settings → Developer → Edit Config, then add:
{
"mcpServers": {
"iran-gold": { "command": "uvx", "args": ["iran-gold-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:
{
"servers": {
"iran-gold": { "type": "stdio", "command": "uvx", "args": ["iran-gold-mcp"] }
}
}
Codex CLI
codex mcp add iran-gold -- uvx iran-gold-mcp
Anything else
It's a standard stdio MCP server: run uvx iran-gold-mcp, or pip install iran-gold-mcp and run iran-gold-mcp.
Tools
All 3 tools are read-only and return compact JSON.
| Tool | What it does |
|---|---|
gold_prices |
Compares the live 18k gold buy and sell price per gram (Toman) on Milli.gold, Wallgold, Melligold and Daric, cheapest first, with best_to_buy and best_to_sell. A platform that does not answer is listed under failed; the rest still return |
gold_milli_history |
Gets the Milli.gold 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 |
gold_milli_stats |
Gets Milli.gold's headline numbers: users, trade transactions, gold traded (kg), user balances (kg), burned gold (kg), branches and representatives |
Good to know
- Buy and sell.
buyis what you pay per gram on that platform,sellwhat you get when you sell. Milli.gold, Wallgold and Melligold often show one price for both; Daric is an order book, sobuyis the best ask andsellthe best bid. - Fees are not included. Platforms charge a trading fee (often around 0.5 %) on top of the price.
- Platform prices, not market quotes. Each number is that platform's own price for 18k melted gold, so expect small differences from tgju and from each other.
- Units. Milli.gold quotes Rial per milligram;
gold_pricesconverts it (x100 = Toman per gram).gold_milli_historykeeps Rial per milligram. - Tehran time.
as_ofand historytimevalues are Tehran time (UTC+3:30). - 15 s cache. Repeated calls within 15 seconds reuse the answer.
- Not covered. Taline (tlyn) shows its price only after login, so it is not included.
FAQ
Is there an API for Iranian gold platform prices?
Not an official one. iran-gold-mcp calls the public, login-free price endpoints that the platforms' own websites use.
How is it different from milligold-mcp and tgju-mcp?
milligold-mcp covers Milli.gold only. iran-gold-mcp covers Milli.gold
plus Wallgold, Melligold and Daric and compares them. tgju-mcp gives
market-wide rates for dollar, coins, gold and crypto.
Can it buy or sell gold for me?
No, and that's deliberate. It has no login and only reads public data.
Do I need an Iranian IP or a proxy?
Not by default. If requests are blocked from your network, set IRAN_GOLD_MCP_PROXY to an HTTP proxy. System proxy variables are ignored on purpose.
Configuration
| Variable | Default | Meaning |
|---|---|---|
IRAN_GOLD_MCP_PROXY |
unset | Optional HTTP proxy URL for the platform 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 قیمت طلای آبشده
iran-gold-mcp یک سرور MCP غیررسمی و فقطخواندنی است که قیمت لحظهای طلای ۱۸ عیار آبشده را از پلتفرمهای آنلاین میلی، والگلد، ملیگلد و داریک میخواند و مقایسه میکند.
- قیمت خرید و فروش هر گرم (تومان) در هر پلتفرم، از ارزانترین به گرانترین، با بهترین جا برای خرید و فروش.
- تاریخچه قیمت میلی در روز، هفته و ماه گذشته و آمار پلتفرم میلی.
- فقط خواندنی است: خرید و فروش نمیکند و وارد حساب نمیشود. کارمزد پلتفرمها در قیمتها حساب نشده است.
- طلاین قیمت را فقط بعد از ورود نشان میدهد و پشتیبانی نمیشود.
claude mcp add iran-gold -- uvx iran-gold-mcp
Development
git clone https://github.com/sepehr071/iran-gold-mcp && cd iran-gold-mcp
uv sync
uv run ruff check . && uv run ruff format --check .
uv run python -m pytest -q # offline unit tests
uv run python -m pytest -m live -q # calls the real platforms
uv build
Related servers
- milligold-mcp for Milli.gold only
- tgju-mcp for dollar, euro, gold, coin, crypto and commodity prices from tgju.org
- iran-mcp: catalog of all Iranian-service MCP servers
Disclaimer
Unofficial and not affiliated with or endorsed by Milli.gold, Wallgold, Melligold or Daric. It is read-only and uses public endpoints that can change without notice. Prices are informational and 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.
License
Metadata
Release files for iran-gold-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iran_gold_mcp-0.1.0.tar.gz | 97.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iran_gold_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 113.8 kB
Release files / iran_gold_mcp-0.1.0.tar.gz
| Download URL | iran_gold_mcp-0.1.0.tar.gz |
|---|---|
| Size | 97.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3507bd45496ebe15751b8de98685101ff009b27c4b371217fbff44b0b7fcdfb3
|
|
BLAKE2b-256 checksum How to use checksums |
f5dd3ca07dc98ba3903b08eb3aec754e42d8bdca23087b6978c93cb72481cf88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / iran_gold_mcp-0.1.0-py3-none-any.whl
| Download URL | iran_gold_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64b1eb613845d151830f6b908b742c55eedb0ecb83853b1d065bd266ea5d1795
|
|
BLAKE2b-256 checksum How to use checksums |
b3a5288558261cb51d8428c4d17e53f6b77a0874483985645f95244aa790fdec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for iran-gold-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for iran_gold_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.