iran-bourse-mcp
MCP server giving AI agents complete Tehran Stock Exchange (TSETMC) and Codal data: quotes, order book, tick trades, real/legal flow, shareholders, filings. بورس تهران برای ایجنتهای هوش مصنوعی
Install / Use
claude mcp add msmahdinejad -- npx -y github:msmahdinejad/iran-bourse-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Finance & AccountingSupported Platforms
Tags
Our assessment of iran-bourse-mcp
iran-bourse-mcp scores 87/100 on our quality scale, 48th of 104 Finance & Accounting skills we index (top 47%).
Its MCP Server is 23 KB long, well organised into 36 sections with 25 code examples: a thorough specification that gives an agent plenty to work with.
It has 46 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 8 days ago, so iran-bourse-mcp is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
iran-bourse-mcp compared with similar skills
All 4 of these similar skills score higher than iran-bourse-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| iran-bourse-mcp (this skill)by msmahdinejad | 87 | 46 | 8d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 114.1k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 88.6k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.3k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 80.6k | today | CLAUDE.md |
Frequently asked questions
- How do I install iran-bourse-mcp?
- Run
claude mcp add msmahdinejad -- npx -y github:msmahdinejad/iran-bourse-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does iran-bourse-mcp work with?
- It is written for Claude Code, Claude Desktop, Cursor, Gemini CLI and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is iran-bourse-mcp safe to use?
- It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is iran-bourse-mcp still maintained?
- The repository was last updated 8 days ago, so iran-bourse-mcp is actively maintained.
Skill content
View source on GitHubWebsite · Install · Benchmarks · Tools · Screener · Real examples · Data notes · راهنمای فارسی · فارسی
</div>An open-source MCP server that gives any AI agent complete, clean Tehran Stock Exchange (TSETMC / بورس تهران و فرابورس) and Codal data: a stock screener with its own filter language, quotes, order book and queues, tick-by-tick trades, real-vs-legal money flow, options and futures, index history, funds, major shareholders, filings and more. Units are explicit, derived numbers are labelled, and nothing can place an order.
<div align="center">Unofficial. Not affiliated with TSETMC, the Tehran Stock Exchange, Fara Bourse or Codal. Information only, not investment advice.
▶ Watch the 2-minute film · Download MP4 (22.4 MB) · Vertical 9:16, Full HD and 4K
<br> <img src="docs/assets/demo.svg" alt="An agent reviewing Foolad through iran-bourse-mcp" width="860">▶ 15-second tour (MP4) · GIF for sharing
</div>Why it exists
An agent with a web browser cannot really read the Iranian market. We tested it:
- The site is an empty shell. Fetching a symbol page from
tsetmc.comreturns a title and nothing else. Codal's report list comes back as unrendered{{template}}placeholders. - The hidden JSON API speaks in codes and has traps. Fields like
qTotTran5J,pMeDem,zOrdMeOf; the exchange's ownpriceChangewas0.0for a stock that rose 120 rial; order-book history is a delta feed; shareholder rows come back twice. - A day of ticks is 3 MB of JSON. Nobody should paste that into a context window.
iran-bourse-mcp finds the data, fixes the traps, reassembles what is fragmented, summarises what is huge and labels everything it infers.
Install
Works with every MCP client, and with agents that have none. You need uv (powershell -c "irm https://astral.sh/uv/install.ps1 | iex" or curl -LsSf https://astral.sh/uv/install.sh | sh) and a machine in Iran (why).
# 1. check that TSETMC and Codal are reachable from here
uvx iran-bourse-mcp doctor
# 2. print the exact steps for your agent, or let the tool edit the config for you
uvx iran-bourse-mcp config cursor
uvx iran-bourse-mcp install cursor
The server entry is always the same: command uvx, args ["iran-bourse-mcp"], stdio transport. One-click install buttons for Cursor, VS Code and Goose are on the website. An AI agent can set it up from docs/llms-install.md.
Claude Code
claude mcp add iran-bourse -- uvx iran-bourse-mcp
Add
--scope userto make it available in every project.
Claude Desktop
Add to the config file (Windows: %APPDATA%/Claude/claude_desktop_config.json; macOS: ~/Library/Application Support/Claude/claude_desktop_config.json; Linux: ~/.config/Claude/claude_desktop_config.json):
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Or automatically (makes a backup first): iran-bourse-mcp install claude-desktop
Restart Claude Desktop after editing the file.
OpenAI Codex CLI
codex mcp add iran-bourse -- uvx iran-bourse-mcp
or in ~/.codex/config.toml:
[mcp_servers.iran-bourse]
command = "uvx"
args = ["iran-bourse-mcp"]
uvx --versionmust work in the shell that starts Codex. For scriptedcodex execruns use the config.toml form (required = true), oruv tool installthe package so the server starts in about a second.
Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Or automatically (makes a backup first): iran-bourse-mcp install gemini-cli
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Or automatically (makes a backup first): iran-bourse-mcp install cursor
Restart Cursor after editing. A one-click install link is available (see
config cursor).
VS Code (GitHub Copilot)
Add to .vscode/mcp.json:
{
"servers": {
"iran-bourse": {
"type": "stdio",
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Project-level file. Top-level key is
servers, notmcpServers.
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Or automatically (makes a backup first): iran-bourse-mcp install windsurf
Newer releases may relocate the file; open it from Cascade's MCP panel if this path is missing.
Cline
Add this entry in the client's MCP settings:
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Open the MCP Servers panel, choose Configure MCP Servers, and paste the entry into the JSON it opens.
Roo Code
Add to .roo/mcp.json:
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Project file shown; the global file is opened from the MCP settings view.
Kiro
Add to ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Or automatically (makes a backup first): iran-bourse-mcp install kiro
Qwen Code
Add to ~/.qwen/settings.json:
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Or automatically (makes a backup first): iran-bourse-mcp install qwen-code
JetBrains AI Assistant
Add this entry in the client's MCP settings:
{
"mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Settings > Tools > AI Assistant > Model Context Protocol (MCP) > Add, then paste the JSON.
Zed
Add to ~/.config/zed/settings.json:
{
"context_servers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Older Zed versions expect
commandas an object: {"path": ..., "args": [...]}.
OpenCode
Add to ~/.config/opencode/opencode.json:
{
"mcp": {
"iran-bourse": {
"type": "local",
"command": [
"uvx",
"iran-bourse-mcp"
],
"enabled": true
}
}
}
OpenCode uses
commandas one array andtype: local.
Goose
uvx iran-bourse-mcp
Paste that into goose configure > Add Extension > Command-line Extension, or open the one-click link on the website.
Or run
goose configure> Add Extension > Command-line Extension and enter the command below.
Amp
Add to ~/.config/amp/settings.json:
{
"amp.mcpServers": {
"iran-bourse": {
"command": "uvx",
"args": [
"iran-bourse-mcp"
]
}
}
}
Python agent frameworks and plain shell
OpenAI Agents SDK
from agents import Agent
from agents.mcp import MCPServerStdio
async with MCPServerStdio(params={"command": "uvx", "args": ["iran-bourse-mcp"]}) as bourse:
agent = Agent(name="Analyst", instructions="Answer with exchange data.", mcp_servers=[bourse])
LangChain
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"iran-bourse": {"transport": "stdio", "command": "uvx", "args": ["iran-bourse-mcp"]}
})
tools = await client.get_tools()
Claude Agent SDK
from claude_agent_sdk import ClaudeAgentOptions
options = ClaudeAgentOptions(mcp_servers={"iran-bourse": {"command": "uvx", "args": ["iran-bourse-mcp"]}})
No MCP support? Use the shell
# Any agent that can run commands can use every tool:
uvx iran-bourse-mcp tools
uvx iran-bourse-mcp call quote symbol=فولاد --compact
uvx iran-bourse-mcp call top_movers kind=buy_queue limit=5 --compact
</details>
<!-- INSTALL:END -->
What you can ask
«وضعیت فولاد رو کامل بررسی کن: صف، ورود پول حقیقی، سهامداران عمده و آخرین اطلاعیههای کدال» «امروز کدوم سهمها صف خرید قوی دارن و پول حقیقی وارد شده؟» «ریز معاملات فولاد دیروز رو خلاصه کن و بزرگترین معاملهها رو نشون بده» «صف خرید خودرو از چه ساعتی شکل گرفت و چقدر بزرگ شد؟» «سهامدار عمده شستا چه سهمهای دیگهای داره؟» «سهمهایی رو پیدا کن که امروز حجمشون بیش از دو برابر میانگین ۲۰ روز بوده، دیروز بیش از ۱٪ رشد کرده و امروز هم مثبته» ← اسکرینر «زنجیره اختیار معامله اهرم رو با نزدیکترین سررسید بده» · «تاریخچه شاخص کل از اول مهر» · «افزایش سرمایههای هفته آینده کدوم نمادهاست؟»
The stock screener
screen_stocks is the filter box of tsetmc.com, written by your agent. Describe what you want; the agent writes a short condition and gets back only the stocks that pass it, with the evidence for each hit. It reads today's live values, up to 60 past trading days (adjusted for capital increases), real-vs-legal flow and a five-level order book for every instrument of the exchange's own market watch (about 3,700, including funds, bonds, options and futures).
You: stocks trading over twice their 20-day average volume, up more than 1% yesterday, positive today, over 5 billion rial
Agent: screen_stocks(filter="volume > 2 * avg(volume, 20) and close_pct[1] > 1 and close_pct > 0 and value > 5B")
35 of 625 stocks match, 3.6 s: انتخاب (9.4x volume, +2.97% yesterday, +2.85% today), پکرمان, کرماشا, خراسان ...
The language is a safe expression grammar (parsed with ast, never eval), accepts the field names and JavaScript spellings of the exchange's own filter (pl, pc, tvol, tmax, pd1, ct.Buy_I_Volume, ===), ships 15 ready-made presets (volume_surge, smart_money, breakout_20d, buy_queue ...) and reports mistakes with suggestions. Checked against an independent re-implementation straight from raw exchange data: identical results on three different screens. Guide and every field: docs/SCREENER.md.
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
114.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
88.6kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
80.6kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

