TWSE OpenAPI MCP Server
This server provides natural language access to Taiwan Stock Exchange (TWSE) public data, enabling you to:
Real-time quotes: Fetch live intraday prices for stocks and ETFs (updated ~ every 5 seconds) using ticker codes.
Historical daily data: Retrieve the previous trading day's opening, high, low, closing prices, and trading volume.
ETF snapshots: Get a comprehensive ETF overview—basic info, daily price/volume, and recurring investment popularity ranking, with optional real-time price.
Dataset search: Discover available TWSE datasets by keyword or category tag (e.g., "ETF", "融資", "財務報表").
Dataset description: View full field definitions and schema for any dataset before querying.
Dataset querying: Retrieve data with server-side filtering (by security code, substring matching), field projection, and pagination.
Natural language interaction: Ask questions in plain language; no need to know specific commands, codes, or data fields.
Supports Codex CLI integration to query Taiwan stock data via MCP.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TWSE OpenAPI MCP Serverget ETF snapshot for 0056"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
台股資料小幫手(TWSE MCP)
讓你用白話直接問 AI 台股與 ETF 的公開資料——即時股價、昨天的收盤與成交量、 某檔 ETF 的完整體檢、證交所有哪些報表可查。不用寫程式、不用開終端機, 把一個網址加進你在用的 AI 就能開始問。
這是一個開放的 MCP 服務,任何支援遠端 MCP 的 AI 都能用。
這是一個個人佛心專案,資料全部來自臺灣證券交易所的公開來源。免費使用。
它能幫你做什麼
加進去之後,你可以直接用中文問,例如:
現在幾塊? —— 盤中即時報價,一次問好幾檔也行。
昨天收多少、量多大? —— 前一交易日的開盤、最高、最低、收盤與成交量。
這檔 ETF 到底是什麼? —— 一次給你追蹤指數、規模粗估、定期定額熱門度,還會提醒該注意的地方。
證交所有沒有某某資料? —— 幫你在上百張公開報表裡找到對的那一張。
你不需要記任何指令或代號欄位,講人話就好,AI 會自己去查。
Related MCP server: deepq-financial-toolkit
怎麼加進你的 AI
依你習慣的操作方式選一種。
圖形介面
以 Claude(網頁版或桌面版)為例:
點 Customize(自訂)→ Connectors(連接器)。
按 「+」→「Add custom connector(新增自訂連接器)」,名稱隨你取(例如
台股),網址貼上:https://twse-mcp.taux.io/mcp按 「Add」 完成。不用填任何帳號密碼或 OAuth。
回到對話框,左下角按 「+」→「Connectors」,把剛剛加的連接器打開,就可以開始問了。
小提醒:Claude 的自訂連接器需要 Pro / Max 方案(免費方案可加 1 個)。
其他有連接器設定畫面的 AI,作法大同小異:找到「新增自訂連接器/MCP 伺服器」,把上面那個網址填進去即可。
終端機工具
伺服器名稱可自訂,這裡用 twse:
Claude Code:
claude mcp add twse --transport http https://twse-mcp.taux.io/mcpCodex(OpenAI):
codex mcp add twse --url https://twse-mcp.taux.io/mcp其他工具
其他支援遠端 MCP 的 AI 或工具,把下面這組連線資訊填進它的設定就能用:
項目 | 值 |
網址 |
|
連線方式 | Streamable HTTP(遠端 MCP) |
認證 | 不需要 |
各家設定檔的欄位名稱不太一樣,請對應到「Streamable HTTP」那一種,不要選成舊的 SSE。
可以這樣問(範例)
你問:「0056 現在多少?」
AI 大概會回: 0056(元大高股息)目前約 48.19 元,比昨天收盤(50.00)跌約 3.6%, 今天在 48.14~49.26 之間。
(數字示意,實際以你查詢當下為準)
你問:「0050 昨天收盤多少、成交量多大?」
AI 大概會回: 0050(元大台灣50)前一交易日收 97.15 元, 全日成交約 4.0 萬張,開 98.35、最高 98.35、最低 96.90。
(示意)
你問:「幫我看 0056 這檔 ETF 的完整概況。」
AI 大概會回: 0056 是追蹤「臺灣高股息指數」的 ETF, 定期定額很熱門(排在前段班),市值粗估約 7,100 億元—— 並提醒你:這個粗估是用收盤價 ×發行單位數算的,不等於基金實際規模。
(示意)
你問:「證交所有沒有定期定額交易戶數的資料?」
AI 大概會回: 有,證交所有「定期定額交易戶數統計排行月報表」, 我可以幫你查某檔的排名與交易戶數。
一次問多檔也可以,例如:「幫我一次看 0050、0056、台積電的即時報價。」
開始用之前,先知道幾件事
這是個人佛心專案。 我盡量讓它一直開著,但可能偶爾限流、臨時維護、或未來換網址——不保證隨時都在。
即時報價是「盡量即時」。 它來自證交所的網頁介面,可能有幾秒到幾分鐘延遲、偶爾抓不到,或跟你券商看到的報價略有出入。
資料僅供參考,不是投資建議。 數字可能有誤或延遲,下單前請自己再向官方或券商確認,投資盈虧請自行負責。
不用登入、不收集個資。 你查的內容會經過本服務去代理證交所的公開資料,如此而已。
開源專案,原始碼在 GitHub:https://github.com/taux-io/twse-mcp
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceProvides comprehensive Taiwan stock market data and analysis through MCP tools. Enables querying real-time stock prices, historical data, company information, technical analysis, and market overviews for TWSE and TPEx listed companies.Last updated816MIT
- AlicenseCqualityDmaintenanceThe MCP provides comprehensive financial data and analytical tool support for AI large language models, specifically including the following five core data capabilities: Stock Analysis/ETF Analysis/Public Funds/News & Information/General Tools More Info: https://github.com/shenqingtech/deepq-finanLast updated44447ISC
- AlicenseBqualityDmaintenanceProvides real-time access to Taiwan Stock Exchange market data, financial reports, and trading analytics. It enables users to query stock prices, market indices, and corporate profitability metrics through natural language.Last updated22365MIT
- Alicense-qualityCmaintenanceAn open-source MCP server that aggregates Taiwan public data sources (data.gov.tw, TWSE, MOEA, CWA, etc.) and exposes them through the Model Context Protocol, enabling AI agents to query Taiwan data with a single configuration line.Last updated1Apache 2.0
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Twelve Data MCP: real-time & historical market data (stocks, crypto, forex, etc).
The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/taux-io/twse-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server