PSX MCP Gateway
Click on "Deploy 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., "@PSX MCP GatewayWhat's the current market snapshot?"
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.
PSX MCP Gateway
Remote MCP gateway for Pakistan Stock Exchange data, designed for Vercel/Next.js and ChatGPT-compatible MCP hosts.
Tools
get_quote
get_market_snapshot
get_market_watch
get_symbols
get_eod_history
get_intraday
get_announcements
get_payouts
Related MCP server: PSX MCP Server
Deploy
Push to GitHub.
Import into Vercel.
Set Node.js 20+.
Add
MCP_SECRETas a long random secret.Deploy.
Health:
https://YOUR-DOMAIN.vercel.app/api/healthMCP endpoint:
https://YOUR-DOMAIN.vercel.app/api/mcp
The current code expects the secret in Authorization: Bearer <MCP_SECRET> or x-api-key. If the ChatGPT app UI available to your account cannot supply a static API key, add an OAuth layer before exposing it.
Local
npm install
cp .env.example .env.local
npm run dev
Data
Uses public PSX Data Portal endpoints: /market-watch, /symbols, /timeseries/eod/{SYMBOL}, /timeseries/int/{SYMBOL}, /announcements, /payouts.
This is unofficial research infrastructure. Data can be delayed/inaccurate and is not investment advice. No broker or order execution is included.
This server cannot be deployed
Maintenance
Related MCP Connectors
33 pay-per-call market and news data tools over MCP with free discovery and x402 payments.
Market Data App MCP — wraps the Market Data App API (marketdata.app)
Real-time crypto market data: candles, tickers, orderbooks across 13+ exchanges via MCP.
China A-share market data over MCP: 22 tools for quotes, K-line, financials, money flow, top-trader boards, sectors, macro, convertible bonds and factor screening. Five tools need no API key, so you can connect and try it immediately.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that exposes Pakistan Stock Exchange data (quotes, dividends, announcements, indices) as LLM-callable tools, enabling conversational market queries in plain English.494MIT
- AlicenseNot gradedqualityDmaintenanceProvides 12 tools to scrape and access Pakistan Stock Exchange market data, including current prices, historical data, intraday, sector search, and volume analysis.6MIT
- AlicenseAqualityBmaintenanceProvides live Pakistan Stock Exchange data including quotes, intraday and end-of-day history, indices, company fundamentals, dividends, and announcements via the Model Context Protocol, with no API key required.101MIT
- FlicenseNot gradedqualityCmaintenanceProvides live US stock quotes and historical price data via MCP tools.-