Skip to main content
Glama
PSX MCP Gateway

PSX MCP Gateway

PSX MCP Gateway

面向 Pakistan Stock Exchange 数据的远程 MCP 网关,专为 Vercel/Next.js 和兼容 ChatGPT 的 MCP 主机而设计。

工具

  • 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

部署

  1. 推送到 GitHub。

  2. 导入到 Vercel。

  3. 设置 Node.js 20+。

  4. 添加 MCP_SECRET 作为一长串随机密钥。

  5. 部署。

  6. 健康检查:https://YOUR-DOMAIN.vercel.app/api/health

  7. MCP 端点:https://YOUR-DOMAIN.vercel.app/api/mcp

当前代码期望在 Authorization: Bearer <MCP_SECRET> 或 x-api-key 中携带密钥。如果您的账户可用的 ChatGPT 应用 UI 无法提供静态 API 密钥,请在公开暴露之前添加 OAuth 层。

本地

npm install cp .env.example .env.local npm run dev

数据

使用公共 PSX Data Portal 端点:/market-watch、/symbols、/timeseries/eod/{SYMBOL}、/timeseries/int/{SYMBOL}、/announcements、/payouts。

这是非官方的研究基础设施。数据可能延迟或不准确,且不构成投资建议。不包含任何经纪商或订单执行。

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
      A
      quality
      D
      maintenance
      MCP server that exposes Pakistan Stock Exchange data (quotes, dividends, announcements, indices) as LLM-callable tools, enabling conversational market queries in plain English.
      9
      22 PyPI
      5
      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
    • 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