PSX MCP server
io.github.revolutionarybukhari/psx-mcp·v0.1.1·4 starsPakistan Stock Exchange in plain English — quotes, dividends, announcements, and indices.
4 stars16 downloads/wk
Reviews
Write oneNobody has reviewed PSX MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
PSX MCP tools (9, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_announcementsGet recent corporate announcements from PSX.
get_buy_deadlinewrite actionFor a symbol with an upcoming dividend, return the last day you can buy and still be entitled to the dividend (T+2 settlement applied).
get_dividend_historyGet historical dividend payouts for a symbol.
get_indicesGet current values for major PSX indices: KSE100, KSE30, ALLSHR, KMI30, KMIALLSHR, PSXDIV20, BKTI, OGTI, MII30.
get_market_statusIs PSX open right now? Returns OPEN / PRE_OPEN / CLOSED_TODAY / WEEKEND plus the next market open in PKT.
get_quoteGet the current price quote for a PSX-listed symbol.
get_upcoming_dividendsList upcoming dividend payouts on PSX.
screen_dividend_stocksScreen the upcoming-payouts table by payout size.
search_symbolsFuzzy search PSX symbols and company names.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan8 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 147 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How PSX MCP compares
Against every graded Finance MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 73% of 1,761 Finance servers
- Tools
- 9
- the typical Finance server has 8
- Tools that change things
- 11%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 4
- more than 85% of 946 Finance servers
- Downloads a week
- 16
- more than 3% of 421 Finance servers with a package
What its tools let an agent do: 8 read · 1 change
Install PSX MCP in Claude Code, Cursor or VS Code
claude mcp add psx-mcp -- uvx psx-mcp
What the publisher says
From the PSX MCP repository's README, as published. We do not edit it. Read it on GitHub
psx-mcp
<!-- mcp-name: io.github.revolutionarybukhari/psx-mcp --> mcp-name: io.github.revolutionarybukhari/psx-mcp
Talk to the Pakistan Stock Exchange in plain English.
psx-mcp is a Model Context Protocol server that exposes PSX market data — quotes, dividends, announcements, indices — as tools any MCP-compatible AI client can call. Connect it to Claude Desktop, Cursor, ChatGPT, or your own agent, and ask questions like:
"What are the upcoming dividends on PSX with payouts above 100%?"
"Should I buy MEBL today to collect the dividend?"
"Pull recent announcements for OGDC and summarize anything material."
"How has FFC's dividend history looked over the past 5 years?"
The LLM picks the right tools automatically and answers in your language.
Why MCP?
Existing PSX tools are libraries — you import them, write code, get data. MCP servers are tools an LLM calls for you. You ask in English, the model invokes getquote, getupcomingdividends, getdividend_history, and synthesizes an answer. No Python required for the end user.
This is also the first PSX MCP server published. If you're building agents, financial copilots, or AI-augmented research workflows for Pakistani markets, this gives them eyes.
What's exposed
Tools (LLM-callable)
Resources (read-only context)
- psx://market-status
- psx://indices
- psx://upcoming-dividends
Prompts (templated workflows)
- analyzedividendplay(symbol) — full dividend-trade analysis
- portfolio_review(symbols) — review a holdings list
- finddividendopportunities(minpayoutpct) — screener + per-name analysis
Install
Requires Python 3.10+.
# From PyPI (once published)
pip install psx-mcp
# Or with uv (recommended)
uv tool install psx-mcp
# From source
git clone https://github.com/revolutionarybukhari/psx-mcp
cd psx-mcp
pip install -e .Connect to Claude Desktop
Edit your Claude Desktop config:
- macOS: ~/Library/Application Support/Claude/claudedesktopconfig.json
- Windows: %APPDATA%\Claude\claudedesktopconfig.json
{
"mcpServers": {
"psx": {
"command": "uvx",
"args": ["psx-mcp"]
}
}
}Restart Claude Desktop. You should see the PSX tools listed in the connection icon. Try:
"What dividends are coming up this week on PSX?"
Connect to Cursor
Settings → MCP → add server:
{
"mcpServers": {
"psx": {
"command": "psx-mcp",
"args": []
}
}
}Run as remote HTTP server
For shared/team use or hosted agents:
psx-mcp --transport http --host 0.0.0.0 --port 8000Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
PSX MCP: common questions
- Is PSX MCP server safe?
- Mostly: it is graded B (82/100). Read the PSX MCP safety report
- How do I install PSX MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does PSX MCP need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is PSX MCP maintained?
- The last commit was 185 days ago (2026-05-03). The latest release is v0.1.1.
- What can I use instead of PSX MCP?
- Servers from other publishers that do the same job: TickDB Market Data MCP server, Tapetide - Indian Stock Market MCP server and HKEx Filings MCP server.
- How does PSX MCP compare with other Finance MCP servers?
- safety score 82/100 (higher than 73% of 1,761 Finance servers); tools 9 (the typical Finance server has 8); tools that change things 11% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to PSX MCP
Same job from other publishers: the closest match first, then the best rated.
TickDB Market DataReal-time & historical market data: forex, stocks, crypto, indices, metals, K-line, quotesnot reviewedGrowingB- Tapetide - Indian Stock Market MCP48 tools for ~8,000 NSE & BSE stocks: quotes, screener, financials, filings, FII/DII, optionsnot reviewedEstablishedA
HKEx FilingsLive HKEx (Hong Kong Stock Exchange) regulatory filings for AI agents.not reviewedEstablishedA- HoodRobinhood Chain data + guarded trading for AI agents: Stock Token quotes, portfolios, launchesnot reviewedGrowingB
- Yahoo FinanceAccess Yahoo Finance stock data, news, screeners, options, financials, and charts through MCP.not reviewedEstablishedA