TSETMC History MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TSETMC History MCPanalyze price trend for وبملت"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: Financial Analysis MCP Server
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 |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables real-time stock market analysis through AKShare API integration. Supports retrieving live stock prices, historical data, technical indicators (MA, MACD, RSI), market sentiment analysis, stock search, and financial news.Last updated5
- -licenseBquality-maintenanceEnables LLMs to retrieve, analyze, and visualize stock prices and financial report data for quantitative trading research and investment analysis. Provides real-time and historical stock data, financial statement analysis, key metric calculations, and trading signal visualization.Last updated13
- Flicense-qualityDmaintenanceProvides stock market data and analysis tools using the Finnhub API, including stock prices, financial metrics, news, and historical data.Last updated7
- Flicense-qualityDmaintenanceProvides real-time stock data, historical analysis, and stock comparisons using the Yahoo Finance API.Last updated
Related MCP Connectors
Provide access to Chinese stock market data including historical prices, real-time data, news, and…
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Read-only China A-share data for AI agents: market, limit-up, capital flow and disclosures.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mohammad-k13/TESTMC-HISTORY-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server