ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้ว
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Pse Edge MCP

โดย phdwightรุ่น 0.19.1i★ 0iบนเครื่องหรือคลาวด์
ชื่อใน registryio.github.phdwight/pse-edge-mcp

วิธีติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Philippine Stock Exchange data via PSE Edge: EOD quotes, price history, disclosures, financials.

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: บนเครื่องหรือคลาวด์
  • ช่องทาง (transport): stdio, Streamable HTTP
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ผลตรวจผ่าน 4/4 · สิ่งที่คุณถามผ่านเซิร์ฟเวอร์ของผู้ทำ (pse.sakayandgo.com)

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

ต่อกับ Claude ได้ · ประมาณ 2 นาที

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ตั้งครั้งเดียวที่ claude.ai หรือแอปบนคอม แล้วใช้ในแชตได้ · บัญชีฟรีเพิ่มได้ 1 ตัว

  1. เปิดหน้า Connectors ของ Claude

    CustomizeConnectors

    CustomizeConnectors1+ Add2https://…3Add4
  2. กด “+ Add” → “Add custom connector” แล้วกรอก 2 ช่องนี้

    คัดลอกจากที่นี่ไปวางในช่องชื่อเดียวกันบนหน้าจอของ Claude แล้วกด Continue

    Name · ชื่อPse Edge MCP
    Remote MCP server URL · ที่อยู่https://pse.sakayandgo.com/mcp

    หัวข้อ Authentication ปล่อยตามที่ Claude ตรวจเจอ แล้วกด Add

  3. เปิดใช้ในแชต

    +ConnectorsPse Edge MCP

  4. ลองเลย

    ใช้ Pse Edge MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude บอกว่ากำลังใช้ Pse Edge MCP หรือมีชื่อเครื่องมือของ Pse Edge MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ ChatGPT ได้ เฉพาะแผนองค์กร

ใช้ได้กับ ChatGPT Business, Enterprise หรือ Edu บนเว็บ และแอดมินหรือเจ้าของ workspace ต้องเป็นคนเพิ่ม · ถ้าใช้ Free, Plus หรือ Pro: ChatGPT แผนของคุณยังต่อ MCP เองไม่ได้

  1. เปิดหน้าเพิ่ม MCP ของ ChatGPT บนเว็บ

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. กรอกชื่อและที่อยู่

    ใส่ชื่อ แล้ววางที่อยู่ใต้ Connection ติ๊กยอมรับคำเตือน แล้วกด Create as a plugin

    Name · ชื่อPse Edge MCP
    Connection · ที่อยู่https://pse.sakayandgo.com/mcp
  3. เลือก Pse Edge MCP ในแชต

    เปิดแชตใหม่แล้วเลือก Pse Edge MCP จากรายการปลั๊กอินก่อนพิมพ์

  4. ลองเลย

    ใช้ Pse Edge MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า ChatGPT บอกว่ากำลังใช้ Pse Edge MCP หรือมีชื่อเครื่องมือของ Pse Edge MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ OpenAI เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Claude Code ได้ · ประมาณ 2 นาที

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม

  1. เปิด Terminal

    Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell

  2. วางคำสั่งนี้แล้วกด Enter

    claude mcp add --transport http pse-edge https://pse.sakayandgo.com/mcp
  3. พิมพ์ /mcp ใน Claude Code

    ต้องเห็น Pse Edge MCP ในรายการและขึ้นว่าเชื่อมต่อแล้ว

  4. ลองเลย

    ใช้ Pse Edge MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude Code บอกว่ากำลังใช้ Pse Edge MCP หรือมีชื่อเครื่องมือของ Pse Edge MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Cursor ได้ · ประมาณ 2 นาที

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม

  1. กดปุ่มนี้เพื่อเปิด Cursor

    เปิดใน Cursor

    Cursor จะถามยืนยันการติดตั้ง ให้กด Install

  2. เปิดแชตของ AI ใน Cursor โหมด Agent

  3. ลองเลย

    ใช้ Pse Edge MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Cursor บอกว่ากำลังใช้ Pse Edge MCP หรือมีชื่อเครื่องมือของ Pse Edge MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ VS Code ได้ · ประมาณ 2 นาที

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม

  1. กดปุ่มนี้เพื่อเปิด VS Code

    เปิดใน VS Code

    VS Code จะถามยืนยันการติดตั้ง ให้กด Install

  2. เปิดแชตของ AI ใน VS Code โหมด Agent

  3. ลองเลย

    ใช้ Pse Edge MCP บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า VS Code บอกว่ากำลังใช้ Pse Edge MCP หรือมีชื่อเครื่องมือของ Pse Edge MCP ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม

ดูโปรแกรมที่ใช้ MCP ทั้งหมด →

ที่อยู่สำหรับโปรแกรมที่ต่อผ่านเว็บ

ที่อยู่https://pse.sakayandgo.com/mcp

ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง

ติดตรงไหน? ถามคนที่ใช้ Pse Edge MCP อยู่💬 พูดคุย →
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON

ต่อผ่านเว็บ

Claude Code

claude mcp add --transport http pse-edge https://pse.sakayandgo.com/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "pse-edge": {
      "url": "https://pse.sakayandgo.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "pse-edge": {
      "type": "http",
      "url": "https://pse.sakayandgo.com/mcp"
    }
  }
}

ติดตั้งในเครื่อง

Claude Code

claude mcp add pse-edge -- uvx pse-edge-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "pse-edge": {
      "command": "uvx",
      "args": [
        "pse-edge-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "pse-edge": {
      "command": "uvx",
      "args": [
        "pse-edge-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "pse-edge": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "pse-edge-mcp"
      ]
    }
  }
}

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

สรุป

ดาวน์โหลดต่อสัปดาห์i
57/สัปดาห์
licensei
ไม่ระบุ license
การเชื่อมต่อ
บนเครื่องหรือคลาวด์
ช่องทาง (transport)
stdio, streamable-http
รุ่นล่าสุดi
0.19.1
หมวดi
อื่น ๆ
ส่งเข้า registryi
12 ส.ค. 2569
แก้โค้ดล่าสุดi
4 ต.ค. 2569
ผู้ทำ
phdwight
แพ็กเกจ
pypi: pse-edge-mcp
เว็บผู้ทำ
github.com
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ต่อผ่านคลาวด์ได้ใน

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

ติดตั้งบนเครื่องได้ใน

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

server ให้ล็อกอินก่อนจึงจะแสดงรายการเครื่องมือ

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 11 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub phdwight ซึ่งเป็นเจ้าของ repo

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด 38 วันที่ผ่านมา

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • ✓ ผ่าน

    endpoint ตอบ

    ตอบกลับใน 665 ms (HTTP 401)

  • ✓ ผ่าน

    ล็อกอินแบบ OAuth

    ประกาศวิธีล็อกอินแบบ OAuth ให้โปรแกรม AI พาไปล็อกอินเอง

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    ยังไม่ได้ตรวจ เราอ่านรายการเครื่องมือตอนตรวจ endpoint

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบด้วย Google เพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 19130 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 19% ของอีก 19130 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 19130 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Pse Edge MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 4 จาก 4 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

ได้ทั้งสองแบบ จะลงในเครื่องหรือต่อผ่านคลาวด์ก็ได้

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด 38 วันที่ผ่านมา และส่งรุ่นล่าสุด (0.19.1) เข้า registry 3 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT แผน Business ขึ้นไป

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี World Monitor, Claude Flow, Tldraw

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

World Monitor

ข่าวกรองโลกแบบเรียลไทม์: ความขัดแย้ง ตลาด พลังงาน การค้า การขนส่ง และไซเบอร์

โดย koala73ใช้กันมาก★ 90.5Kอัปเดต 6 วันที่ผ่านมา

รันบนคลาวด์✓ worldmonitor.app

Claude Flow

AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

โดย ruvnetใช้กันมาก↓ 13.5K/สัปดาห์★ 81.4Kอัปเดต 14 เดือนที่ผ่านมา

รันบนเครื่อง

Tldraw

วาดภาพและระดมไอเดียร่วมกับ AI บนกระดาน tldraw

โดย tldrawใช้กันมาก★ 51.4Kอัปเดต 8 เดือนที่ผ่านมา

รันบนคลาวด์

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

pse-edge-mcp

An MCP server exposing Philippine Stock Exchange data from the PSE Edge portal — quotes, price history, disclosures, financial reports, and market data — plus Bangko Sentral ng Pilipinas (central bank) key rates, to Claude and any other MCP client.

Unofficial. PSE Edge and BSP have no public API; this project speaks to the same endpoints their own pages use. It is not affiliated with or endorsed by the PSE or the BSP. Data is provided as-is for personal/research use, with no warranty.

Contents

  • Features
  • Quick start
  • Design: end-of-day prices, fetch-once everything else
  • Tools, resources, prompts
  • Architecture
  • Golden path: one request traced
  • Connecting to a hosted server
  • Run with Docker Compose
  • Configuration
  • Container image
  • Production
  • Development
  • Contributing
  • License

Features

  • 15 read tools + 1 action tool covering quotes, price history, disclosures (metadata, full-text, and detail), company profiles, financials, dividends, indices, market summary, and BSP (central bank) key rates — plus an attachment resource, two prompts with symbol completion, and tool annotations.
  • Deliberately gentle on PSE Edge: every unique query hits it at most once per day, and prices follow a strict market-boundary freeze.
  • OAuth 2.1 + passkeys for humans (no passwords anywhere), `client_credentials` for headless agents — both opt-in; stdio needs nothing.
  • Postgres optional: zero-config in-memory for local stdio, or a shared cache + an ever-deepening EOD archive when DATABASE_URL is set.
  • Loud on drift: a nightly canary validates live pages against the real models and alerts only on failure; a restyled page raises an error, never partial data.
  • Multi-arch container image (amd64 + arm64), gated on necessity — the image contains exactly the runtime dependency closure and nothing else.

Quick start

Claude Desktop / Claude Code (stdio):

uvx pse-edge-mcp
{

"mcpServers": { "pse-edge": { "command": "uvx", "args": ["pse-edge-mcp"] } } }

A hosted deployment (auth on) is a normal OAuth 2.1 protected resource — modern clients need only the URL and drive the whole flow themselves (details below):

{

"mcpServers": { "pse-edge": { "url": "https://your-host.example.com/mcp" } } }

Docker (HTTP + Postgres):

cp .env.example .env   # set POSTGRES_PASSWORD

docker compose up --build

Design: end-of-day prices, fetch-once everything else

Four layers, one direction of dependency. Every read goes through FreezeService.get() with an explicit per-domain policy — no tool ever touches the HTTP client directly. ★ marks the invariant the whole design exists to protect, and it guards prices only.

flowchart TD

C["MCP client"] -- "tool call" --> S[" server.py · MCP boundary validate args · delegate · shape reply"] S --> R[" repositories.py · one per domain cache key · freeze read · parse · endpoint routing"] R --> F[" service.py · FreezeService ★ 3 policies · miss → fetch once"] F --> P[" client.py · PseEdgeClient throttled HTTPS · single-flight · 2 dialects"] P --> E["PSE Edge edge.pse.com.ph"]

★ Market-boundary freeze — prices only. A cached stock price is never refetched while the market is open (09:30–15:00 Asia/Manila, trading days) — the last close answers, flagged stale. A price *nobody has ever asked for* is the one exception: fetched once mid-session and served as identity + previous_close only (every session-moving field withheld), with stale: true plus a meta.note saying it is not a realtime value; the settled figures replace it after the close.

PolicyApplies toBehaviour
EOD-frozen ★get_stock_quote, get_price_historyA cached price is never refetched during a session; a never-cached key is fetched once and surfaces only previous_close, labelled not-realtime for the whole session. Also the default policy, so an unlabelled read can only over-protect PSE Edge.
daily-refreshCompanies, disclosures, profiles, financials, dividends, indices, summary, BSP ratesFirst ask fetches at any hour — once, deduplicated across concurrent callers; every repeat of the same query answers from storage until the next 15:00 close.
immutableDisclosure detail by edge_no, attachment bytesThe object never changes upstream. Fetched once ever; valid_until: null.

If PSE Edge is unreachable and an expired entry exists, tools serve it flagged meta.stale: true rather than discarding real data for an error. EDGE_UNAVAILABLE means unreachable *and* nothing cached.

Every data tool returns the same envelope — meta is the freshness contract:

{

"data": { /* …StockQuote… */ }, "meta": { "as_of": "2026-08-06T15:00:00+08:00", // ISO-8601, Asia/Manila "valid_until": "2026-08-07T15:00:00+08:00", // null when immutable "from_cache": false, "stale": false, // true = not a settled EOD value "data_policy": "EOD-frozen", // "daily-refresh" / "immutable" elsewhere "note": null // freshness caveat, e.g. "not a realtime value" } }

Tools, resources, prompts

ToolDescription
search_companies(query)Find PSE-listed companies by name or ticker
validate_symbol(symbol)Cheap yes/no check that a ticker exists, with its company name and id
get_stock_quote(symbol)Latest EOD quote: price, change, 52-wk range, market cap, full field set
get_price_history(symbol, start_date?, end_date?)Daily OHLC series from Edge's chart endpoint
search_disclosures(symbol?, start_date?, end_date?, template?, page?)Disclosure metadata, market-wide or per company; 50/page with exact totals
search_disclosure_fulltext(keyword, ...)Search the text *inside* disclosure attachments, with snippets
get_disclosure(edge_no, max_files?)One disclosure's details plus attachment and body-HTML links; attachments capped at max_files (default 20) with an honest truncation flag. Each attachment carries a resource_uri — read the file's bytes via MCP resources/read (pse-edge://attachment/ , cached immutably, 10 MB cap)
get_company_profile(symbol)Sector, incorporation, auditor, transfer agent, contacts
get_financial_highlights(symbol)Annual + quarterly balance sheet and income statement
get_dividends_and_rights(symbol)Declared dividends and stock rights, linked to their disclosures
get_indices()PSEi and the 7 sector indices, with signed daily change
get_market_summary()Index levels plus PSE Edge's homepage disclosure feeds
get_bsp_key_rates()The Bangko Sentral ng Pilipinas (central bank) Key Rates dashboard: policy, facility and auction rates, headline inflation, and the USD peso reference
get_bsp_policy_rate()The BSP policy rate (Target RRP) and the overnight lending/deposit corridor around it
get_server_version()The deployed version of this MCP server itself (matches /health)
send_email(subject, body)Email yourself a note (auth-enabled deployments only)

Beyond tools, the server exposes the attachment resource above, two prompts (market_recap, company_briefing(symbol) — the symbol argument autocompletes from PSE Edge's own lookup), and MCP tool annotations so hosts can auto-approve the read-only tools. It is described for the MCP Registry in server.json.

send_email is the only tool that acts rather than reads. It has no recipient argument: the message always goes to the account that authenticated the session, so it cannot be used as a relay and there is nothing for prompt injection to redirect — which matters because this server returns disclosure text the operator does not control. It appears only on deployments with auth enabled (there is no verified address otherwise), the body is escaped rather than rendered as HTML, and it is capped at 20 messages per user per day.

Disclosure tools return metadata and links only — this server never downloads or parses attachments (beyond the explicit resource read), so your MCP client can fetch the returned URLs itself if it needs the files. Note that Edge's own full-text index is partial (roughly 2023–2025 at last check), so search_disclosure_fulltext is not a substitute for search_disclosures; it reports this limit in its results.

Financial figures are returned exactly as PSE Edge prints them and are never rescaled — Edge's own units labels are inconsistent between its annual and quarterly sections, so each period reports its currency_units for you to check. Index changes are signed here even though Edge prints them unsigned (it shows direction only as a colour and an arrow).

Architecture

The layers
LayerOwnsNever
server.py — MCP boundaryArgument validation, delegation, reply shaping. Error mapping happens once in reply(); action tools go through act() (no freshness meta).Domain logic, cache keys, parsing, endpoint choices
repositories.py — domain layerOne repository per data domain: the cache key, the freeze read, the parse, the Pydantic model. Endpoint routing lives here.Depending on the concrete client — only on the protocols below
service.py / sources.py — policy & seamsFreezeService enforces the per-read policy and wraps every result in Served[T] (value + as_of, valid_until, from_cache, stale). sources.py declares the five narrow per-domain source protocols; FrozenCache is the cache seam.—
client.py / parsers.py — edge of the worldPure HTTP, MCP-agnostic: token-bucket throttle, single-flight, retries; two request dialects (JSON-body POST for chart .ax endpoints, form-encoded POST returning HTML fragments for search.ax). Parsers turn HTML/JSON into dicts; any shape drift raises EndpointChangedError — loud, never partial.—
Core class map

Five repositories cover the whole tool surface. Each consumes a narrow source protocol — the concrete client satisfies all five, but no repository knows that, so each is testable with a few-line fake and no HTTP mocking.

RepositoryMethods → modelsConsumesPolicy / note
CompanyRepositorysearch, resolve, try_resolve → CompanyHitCompanySourcedaily-refresh · resolves symbol → company_id for every other repo
QuoteRepositoryquote → StockQuote · history → PriceHistoryQuoteSourceEOD-frozen ★ — the only market-gated domain · bars archived
DisclosureRepositorysearch, fulltext, detail, attachmentDisclosureSourcesearches daily-refresh; detail/attachment immutable

| CompanyInfoRepository | profile, `fin

ตัดมาแค่ช่วงต้น อ่านต่อใน repo