Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Philippine Stock Exchange data via PSE Edge: EOD quotes, price history, disclosures, financials.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
ใช้ได้ทั้ง Claude บนเว็บ แอปคอมพิวเตอร์ และมือถือ:
https://pse.sakayandgo.com/mcpเปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"pse-edge": {
"command": "uvx",
"args": [
"pse-edge-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add --transport http pse-edge https://pse.sakayandgo.com/mcpclaude mcp add pse-edge -- uvx pse-edge-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"pse-edge": {
"url": "https://pse.sakayandgo.com/mcp"
}
}
}วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"pse-edge": {
"command": "uvx",
"args": [
"pse-edge-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"pse-edge": {
"type": "http",
"url": "https://pse.sakayandgo.com/mcp"
}
}
}วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"pse-edge": {
"type": "stdio",
"command": "uvx",
"args": [
"pse-edge-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ChatGPT ต่อได้เฉพาะ server ที่อยู่บนอินเทอร์เน็ต:
https://pse.sakayandgo.com/mcpชื่อเมนูอาจต่างกันเล็กน้อยตามแพ็กเกจและรุ่นของแอป
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ยังไม่ได้อ่านรายการเครื่องมือของตัวนี้ เราตรวจ endpoint ทีละชุดวนไป
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub phdwight ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้ตรวจ เราตรวจ endpoint ทีละชุดวนไป
ยังไม่ได้ตรวจ เราตรวจ endpoint ทีละชุดวนไป
ยังไม่ได้ตรวจ เราอ่านรายการเครื่องมือตอนตรวจ endpoint
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
ได้ทั้งสองแบบ จะลงในเครื่องหรือต่อผ่านคลาวด์ก็ได้
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.19.1) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT ที่เปิดโหมดนักพัฒนา
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Reelsaw
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Drive a self-hosted Reelsaw: turn long videos into vertical clips, edit, re-render and export them.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
DATABASE_URL is set.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
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.
| Policy | Applies to | Behaviour |
|---|---|---|
EOD-frozen ★ | get_stock_quote, get_price_history | A 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-refresh | Companies, disclosures, profiles, financials, dividends, indices, summary, BSP rates | First 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. |
immutable | Disclosure detail by edge_no, attachment bytes | The 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" } }
| Tool | Description |
|---|---|
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).
| Layer | Owns | Never |
|---|---|---|
server.py — MCP boundary | Argument 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 layer | One 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 & seams | FreezeService 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 world | Pure 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. | — |
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.
| Repository | Methods → models | Consumes | Policy / note |
|---|---|---|---|
CompanyRepository | search, resolve, try_resolve → CompanyHit | CompanySource | daily-refresh · resolves symbol → company_id for every other repo |
QuoteRepository | quote → StockQuote · history → PriceHistory | QuoteSource | EOD-frozen ★ — the only market-gated domain · bars archived |
DisclosureRepository | search, fulltext, detail, attachment | DisclosureSource | searches daily-refresh; detail/attachment immutable |
| CompanyInfoRepository | profile, `fin
ตัดมาแค่ช่วงต้น อ่านต่อใน repo