# TSETMC Tehran Stock Exchange (pypi · tsetmc-mcp)

Unofficial read-only Tehran Stock Exchange (TSETMC): quotes, movers, order book, history, indices.

- Trust score: 80/100 (high trust)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-10-23

## Components

- pypi · `tsetmc-mcp`: 80/100 (this document), [markdown](https://verifymcp.io/servers/sepehr071-tsetmc-mcp/tsetmc-mcp.md), [page](https://verifymcp.io/servers/sepehr071-tsetmc-mcp/tsetmc-mcp)

## Channel facts

- Registry: `pypi`
- Package: `tsetmc-mcp`
- Version: `0.1.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-10-23.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - Runs hatchling.build at install time, a recognised build step with no custom scripting around it.
  - 1 of 35 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to sepehr071/tsetmc-mcp).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 0 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 70/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 1235 tokens (~154/item across 8 items; 8 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 8 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 9 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a current MCP spec version (2026-07-28).

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### How do I install the TSETMC Tehran Stock Exchange MCP server?

TSETMC Tehran Stock Exchange runs locally as a PyPI package, launched with uvx tsetmc-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add sepehr071-tsetmc-mcp -- uvx tsetmc-mcp
```

### Cursor

```json
{
  "mcpServers": {
    "sepehr071-tsetmc-mcp": {
      "command": "uvx",
      "args": [
        "tsetmc-mcp"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "sepehr071-tsetmc-mcp": {
      "command": "uvx",
      "args": [
        "tsetmc-mcp"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add sepehr071-tsetmc-mcp -- uvx tsetmc-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "sepehr071-tsetmc-mcp": {
      "type": "local",
      "command": [
        "uvx",
        "tsetmc-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add sepehr071-tsetmc-mcp --command uvx --arg tsetmc-mcp
```

### Hermes

```yaml
mcp_servers:
  sepehr071-tsetmc-mcp:
    command: "uvx"
    args: ["tsetmc-mcp"]
```

### Netclaw

```json
{
  "McpServers": {
    "sepehr071-tsetmc-mcp": {
      "Transport": "stdio",
      "Command": "uvx",
      "Arguments": [
        "tsetmc-mcp"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add sepehr071-tsetmc-mcp -t stdio -c uvx -a tsetmc-mcp
```

### Other

```json
{
  "mcpServers": {
    "sepehr071-tsetmc-mcp": {
      "command": "uvx",
      "args": [
        "tsetmc-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-10-23 (score 80, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-10-22 (score 65)

First indexed and scored.

## MCP tools (8)

### `ts_search_symbols` (~125 tokens)

Search symbols

Find Tehran Stock Exchange instruments (shares, funds, rights, bonds) by ticker or name.

Use first when you only have a name. Pass a result's `symbol` (or `ins_code`) to the other ts_ tools.
An empty list means no match: retry with a shorter name or the other spelling.

Input parameters:

- `limit` (integer): Max matches (1-30).
- `query` (string, required): Ticker or company name, Persian (Arabic ي/ك accepted), e.g. 'فولاد', 'خودرو', 'بانک ملت'.

### `ts_get_quote` (~110 tokens)

Stock quote

Latest price, daily range, volume and key facts of one instrument on the Tehran Stock Exchange.

\`last` is the last trade, `close` the closing (volume-weighted) price; `change_pct` is last vs yesterday's close.
Prices are in Rial. Use ts_order_book for bids and asks, ts_price_history for earlier days.

Input parameters:

- `symbol` (string, required): Ticker or exact name, e.g. 'فولاد', 'وبملت', or a numeric ins_code.

### `ts_market_movers` (~161 tokens)

Market movers

Top traded instruments of a market today, ranked by gain, loss, volume, value or trade count.

Only instruments that traded are listed. `limit_up`/`limit_down` marks a price stuck at its daily limit.
Prices are in Rial. Pass a row's `symbol` to ts_get_quote or ts_order_book.

Input parameters:

- `limit` (integer): Max rows (30 keeps the reply under 15 KB).
- `market` (string): bourse = Tehran Stock Exchange shares, farabourse = Iran Fara Bourse shares, rights = rights issues, bonds.
- `sort_by` (string): gain/loss = biggest last-trade change vs yesterday, volume = shares traded, value = Rial traded, trades = trade count.

### `ts_order_book` (~86 tokens)

Order book

Best five bid and ask levels (price, volume, order count) of one instrument.

Empty outside trading hours. A level with ask price 0 means a buy queue (no sellers), bid price 0 a sell queue.
Prices are in Rial.

Input parameters:

- `symbol` (string, required): Ticker or exact name, e.g. 'فولاد', or a numeric ins_code.

### `ts_price_history` (~99 tokens)

Daily price history

Daily open, high, low, close, volume, trades and value of one instrument for its latest trading days, newest first.

Prices are in Rial and not adjusted for capital increases or dividends; dates are Gregorian.

Input parameters:

- `days` (integer): Latest trading days to return (50 keeps the reply under 15 KB).
- `symbol` (string, required): Ticker or exact name, e.g. 'فولاد', or a numeric ins_code.

### `ts_real_legal` (~123 tokens)

Real vs legal trading

Buy and sell volume, value and buyer/seller counts split by real (individual) and legal (institutional) traders per day.

\`net_real_volume` > 0 means individuals bought more than they sold (money flowing in from real investors).
Newest day first. Volumes are in shares, values in Rial.

Input parameters:

- `days` (integer): Latest trading days to return (1-10; each day is one upstream call).
- `symbol` (string, required): Ticker or exact name, e.g. 'فولاد', or a numeric ins_code.

### `ts_indices` (~104 tokens)

Market indices

TSE total index, market state and trading totals, plus every sector and market index with its change.

Use to see which sectors lead or lag today. Pass an index `name` to ts_index_history for its past values.

Input parameters:

- `limit` (integer): Max indices, strongest change first.
- `query`: Optional part of an index name, e.g. 'بانک', 'خودرو', 'شاخص کل', 'هم وزن'. Omit for all.

### `ts_index_history` (~97 tokens)

Index history

Daily close, high, low and percent change of a TSE index (total, equal-weight, sector...), newest first.

Find index names with ts_indices.

Input parameters:

- `days` (integer): Latest trading days to return (1-100).
- `index` (string): Index name or part of it (default total index), e.g. 'شاخص کل', 'بانک', 'خودرو', or a numeric ins_code.

## Diagnostics

Captured diagnostic sections: Provenance, Install scripts, Dependencies. The full working is on the page: https://verifymcp.io/servers/sepehr071-tsetmc-mcp/tsetmc-mcp#diagnostics

## Score history

- 2026-10-23: 80
- 2026-10-22: 65

## Common questions

### What is the TSETMC Tehran Stock Exchange MCP server?

TSETMC Tehran Stock Exchange is an MCP server listed in the public MCP registry as io.github.sepehr071/tsetmc-mcp. Unofficial read-only Tehran Stock Exchange (TSETMC): quotes, movers, order book, history, indices. This page covers its PyPI package (tsetmc-mcp).

### Is the TSETMC Tehran Stock Exchange MCP server safe to use?

TSETMC Tehran Stock Exchange scores 80 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 23 October 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the TSETMC Tehran Stock Exchange MCP server expose?

TSETMC Tehran Stock Exchange exposes 8 tools: ts_search_symbols, ts_get_quote, ts_market_movers, ts_order_book, ts_price_history, and 3 more. Their descriptions and schemas cost roughly 905 tokens of context every time the server is loaded.

### Is the TSETMC Tehran Stock Exchange MCP server still maintained?

TSETMC Tehran Stock Exchange is still listed as active in the MCP registry. We last reached this channel on 23 October 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the TSETMC Tehran Stock Exchange MCP server under?

TSETMC Tehran Stock Exchange declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- PyPI project: https://pypi.org/project/tsetmc-mcp/
- Socket report: https://socket.dev/pypi/package/tsetmc-mcp
- Repository: https://github.com/sepehr071/tsetmc-mcp
- Changelog RSS feed: https://verifymcp.io/servers/sepehr071-tsetmc-mcp/tsetmc-mcp.xml
- Changelog JSON feed: https://verifymcp.io/servers/sepehr071-tsetmc-mcp/tsetmc-mcp.json
- HTML version of this page: https://verifymcp.io/servers/sepehr071-tsetmc-mcp/tsetmc-mcp
