Skip to main content
Glama
PSX MCP

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 + → Connectors → Add 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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • 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
    • A
      license
      A
      quality
      D
      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
      2
      MIT
    • F
      license
      C
      quality
      D
      maintenance
      Enables AI assistants to access National Stock Exchange of India (NSE) data, including live quotes, market status, indices, option chains, corporate actions, and historical data, through natural language.
      40
      24
      1
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to retrieve live Dhaka Stock Exchange data, including prices for all listed shares, top gainers/losers, and market summary, through natural language queries.
      4
      1
      MIT