Skip to main content
Glama
moiz-imran

PSX MCP

by moiz-imran

PSX MCP — Cloudflare Workers

Real-time Pakistan Stock Exchange data for Claude — market summaries, stock quotes, history, sector breakdowns, and more.


Quick Start (no setup needed)

A live instance is already running. Just add it to Claude Desktop:

  1. Open Claude Desktop

  2. Click +ConnectorsAdd custom connector

  3. Name: PSX

  4. URL: https://psx-mcp.moizwasti.workers.dev/mcp

  5. Click Add

Done. Now ask Claude things like:

  • "What's the KSE-100 at right now?"

  • "Give me OGDC's latest price"

  • "Show LUCK's last 30 days of history"

  • "Search for cement companies on PSX"

  • "How are the banking and energy sectors doing?"


Related MCP server: PSX MCP Server

Self-host (optional)

Prerequisites

Install dependencies

npm install

Login to Cloudflare

npx wrangler login

This opens your browser — log in and authorize Wrangler.

Deploy

npm run deploy

Wrangler will output something like:

✅ Deployed to: https://psx-mcp.YOUR-ACCOUNT.workers.dev

Your MCP endpoint is: https://psx-mcp.YOUR-ACCOUNT.workers.dev/mcp


Tools

Tool

What it does

psx_market_summary

All index values + daily change (KSE-100, KSE-30, KMI-30...)

psx_stock_quote

Latest EOD price for any ticker

psx_stock_history

OHLCV history, up to 365 trading days

psx_search_stocks

Search companies by name or ticker

psx_sector_summary

Sector-wise performance breakdown


Data & Disclaimer

Data from dps.psx.com.pk — PSX's own public data portal.
End-of-day only (not real-time intraday).
For personal/educational use. Not financial advice.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    MCP server that exposes Pakistan Stock Exchange data (quotes, dividends, announcements, indices) as LLM-callable tools, enabling conversational market queries in plain English.
    4
    9
    4
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides 12 tools to scrape and access Pakistan Stock Exchange market data, including current prices, historical data, intraday, sector search, and volume analysis.
    6
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    Enables real-time and historical Indian stock market data retrieval, including prices, news, recommendations, and top gainers/losers.
    11
    -
  • A
    license
    A
    quality
    B
    maintenance
    Provides 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.
    10
    1
    MIT