TSETMC Tehran Stock Exchange

v0.2.2
io.github.sepehr071/tsetmc-mcp Checked 3 days ago Published 16 days ago

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

Values you need

VariableWhat it is
TSETMC_MCP_PROXYoptional Optional HTTP proxy URL for tsetmc.com requests; system proxy settings are ignored. Also accepts a comma-separated list: one is used until it gets blocked or fails to connect, then the next.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add tsetmc-mcp -- uvx tsetmc-mcp==0.2.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "tsetmc-mcp": {
      "args": [
        "tsetmc-mcp==0.2.2"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "tsetmc-mcp": {
      "args": [
        "tsetmc-mcp==0.2.2"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "tsetmc-mcp": {
      "args": [
        "tsetmc-mcp==0.2.2"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.tsetmc-mcp]
command = "uvx"
args = ["tsetmc-mcp==0.2.2"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: ts_search_symbols, ts_get_quote, ts_market_movers, ts_order_book, ts_price_history, ts_real_legal, ts_indices, ts_index_history.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json