TSETMC History MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
TSETMC History MCP
Streamable HTTP MCP server for TSETMC historical market data via BrsApi. Built with TypeScript + Bun.
Twin of Codal-MCP: same transport, packaging, and test style.
Supports:
Price & trade daily history (
History.phptype=0)Retail / institutional daily history (
type=1)Field documentation as MCP resources
Analysis prompts (trend + money flow + full pipeline)
Transport: Streamable HTTP only (no stdio / legacy SSE server).
For a full onboarding walkthrough of the API and this repo, read History_API_Guide.md.
Setup
bun install
cp .env.example .env
# set BRS_API_KEY=...
bun run startHealth: GET http://127.0.0.1:3000/health
MCP endpoint: http://127.0.0.1:3000/mcp
Related MCP server: tsetmc-mcp
Tools
Tool | Upstream | Purpose |
|
| Daily price/trade bars ( |
|
| Daily حقیقی/حقوقی counts, volumes, values |
| local | Catalog of both modes and field names |
Both history tools accept l18 plus optional date_start / date_end (client-side filter).
Prompts
Prompt | Purpose |
| Analyze price/trade JSON |
| Analyze retail vs institutional JSON |
| End-to-end fetch + analyze checklist |
Resources
URI | Content |
| Index of modes |
| Type 0 field black doc |
| Type 1 field black doc |
Markdown sources live in src/resources/docs/.
Cursor / client config example
{
"mcpServers": {
"tsetmc-history": {
"url": "http://127.0.0.1:3000/mcp"
}
}
}Tests
bun testTests cover every tool, field resource, and prompt via an in-process Streamable HTTP client (handler.fetch). No live API key required.
Env
Variable | Required | Description |
| yes (live API) | BrsApi key ( |
| no | Default |
| no | Default |
| no | Default |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Licensed Borsa Istanbul (BIST) data for AI assistants: live or 15-minute delayed prices, OHLCV bars from 1 minute to monthly, financial statements, ratios, KAP disclosures, indices and sectors, indicator backtests and portfolio tracking for 600+ Turkish stocks. OAuth sign-in with an istfin subscription. Never places orders.
Market analyst tools + AI agent: crypto, US equities, options, Korea, fundamentals, macro, backtests
Real-time SEC Form 4, Form 144, 13F-HR & congressional STOCK Act insider data. 40 tools + 6 prompts.
Live stock quotes, a stock screener, crypto prices and FX rates as agent tools.
Related MCP Servers
- AlicenseAqualityCmaintenanceRead-only MCP server for Tehran Stock Exchange (TSETMC) live market data and authenticated TSE portal pages, enabling quotes, order books, market watch, and session-safe page reads via natural language.111MIT
- AlicenseAqualityBmaintenanceEnables AI agents to read Tehran Stock Exchange and Iran Fara Bourse market data—quotes, top movers, order books, price history, sector indices, and real vs legal trading—through read-only tools. Requires no API key, returning compact JSON in Rial directly to Claude, Cursor, or Copilot.8348 PyPI10PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to search and read Iranian listed companies’ Codal disclosures, including financial statements, EPS and monthly activity reports as tables, meeting decisions, and PDF/Excel links, plus company and fiscal-year lookups.5383 PyPI11PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables AI agents to search, rank, and compare Iranian mutual funds and ETFs; inspect NAV, returns, size, flows, investors, and managers; and retrieve Tehran and Farabourse market overviews, indices, stock quotes, and industry data read-only without an API key.11181 PyPIPolyForm Noncommercial 1.0.0