Skip to main content

tgju-mcp: TGJU prices MCP server for AI agents

An unofficial, read-only MCP server for TGJU (شبکه اطلاع‌رسانی طلا، سکه و ارز), Iran's market-price portal: live dollar, euro, gold, coin, crypto and commodity prices, category tables, and daily history.

For AI agents

  • What: unofficial MCP server for tgju.org prices. Persian and English queries work for symbol search.
  • Install: uvx tgju-mcp or claude mcp add tgju -- uvx tgju-mcp. Transport: stdio. Needs uv (Python 3.10+).
  • Auth: none. Optional TGJU_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.
  • Tools: 6, all prefixed tj_. Typical sequence: tj_market_summary -> tj_category_table -> tj_price_history.
  • Output: compact JSON. Iranian prices are quoted by the site in Rial; rial 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.json.

Tools

Tool Purpose
tj_market_summary Key rates in one call: dollar, euro, dirham, pound, lira, gold gram/ounce, coins, silver, Brent, Bitcoin, Ethereum, Tether
tj_get_prices Live price, change, high and low for one or more symbols
tj_category_table Live price table of a group (gold, coin, coin_retail, currency, currency_government, currency_sana, currency_nima, crypto, or a folder id)
tj_list_categories Browse the market tree (folders and symbols)
tj_search_symbols Find symbols by name (internal, global or crypto markets)
tj_price_history Daily open, low, high, close and change of a symbol, with Jalali date filters

Units

Symbols Unit
Gold grams, coins, free-market and other price_* currencies, crypto-*-irr Rial (*_toman = Rial / 10)
ons, silver, oil_*, crypto-* (USD), currency pairs like usd-try-ask as listed (USD or a ratio)

The feed carries no unit field: the Rial/Toman split is a rule on the symbol name, so check unusual symbols against tgju.org. Folder-id tables apply the rule per row (unit: mixed adds a unit to each row); symbols outside it, such as exchange-house quotes with slug names, stay as_listed.

Reply size and staleness

tj_category_table and tj_price_history accept at most 50 rows (replies stay under about 14 KB). A quote older than 2 days carries stale: true. tj_get_prices answers symbols missing from the live feed (slugs from tj_search_symbols) with the latest daily close (source: history, time = date).

Development

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 tgju.org
uv build

Not affiliated with TGJU. Prices are informational, not financial advice. MIT license.

Metadata

Release files for tgju-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)

Source distribution for tgju-mcp 0.1.0
File Size Uploaded Provenance
tgju_mcp-0.1.0.tar.gz 99.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tgju-mcp 0.1.0
File Interpreter ABI Platform
tgju_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 115.7 kB

Release files / tgju_mcp-0.1.0.tar.gz

Download URL tgju_mcp-0.1.0.tar.gz
Size 99.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f119c71541ff6c43182d7d3411e7e01d0d13b2f09fc6641d004d42502e3e238
BLAKE2b-256 checksum
How to use checksums
5f3e38e10f8c3ad562e51b82da5feaab2a0e35d0725a9fd170ed55ae9d639d03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 20, 2026.

Transparency log

Release files / tgju_mcp-0.1.0-py3-none-any.whl

Download URL tgju_mcp-0.1.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bc1a85d0bc6cdccad4e14a075ccb60e9afb7dfdfe68364e63ff936e91ebaa47
BLAKE2b-256 checksum
How to use checksums
8a881ef17f1b2d857889647a2f21b64f22bb8037587acf3099ad33b28317bf16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 20, 2026.

Transparency log

Security for tgju-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.

Select from 2 files

Attestation for tgju_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 20, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page