PSX MCP Gateway
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
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.
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/ynasir86-crypto/psx-mcp-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server