1. Conduid
  2. Finance
  3. Twsemcpserver
MCP server · Finance

Twsemcpserver

台灣證交所OpenAPI 的 MCP Server

Unclaimed MIT last commit 6 months ago financemcpmcp-serveranalysistradingquestions-and-answers
66Good

Scored 2 days ago · breakdown

About Twsemcpserver

Twsemcpserver is an MCP server published by twjackysu in the Finance category: 台灣證交所OpenAPI 的 MCP Server. It has been installed 0 times through Conduid.

The repository has 41 stars and 22 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx twsemcpserver

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Twsemcpserver

Powered by Claude · Grounded in docs

I know everything about Twsemcpserver. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.8.1v1.8.1 · 28 Aug 2026修正版本。本批全部是 `fix:`,重點是五個**沉默的資料正確性錯誤**——它們都不會拋錯,其中四個會回傳看起來完全正常、實際上是錯的答案。 資料正確性修正 金融股財報一律回傳空字串 `t187ap06/07` 依產業切成六個端點變體,工具原本讀 `t187ap03_L` 的「產業別」欄位去對照中文產業名。但該欄位存的是**數字代碼**(實測 1095 家公司、33 種值,完全沒有中文;2884=`17`、2330=`24`),對照表永遠不匹配,一律落回…
v1.8.0v1.8.0 · 19 Jul 2026新功能 延續 v1.6.0/v1.7.0 的歷史查詢工具系列,這批完成 `NEW_TOOLS_PLAN.md` 的 Tier 2(共 8 個新工具)。 TWSE 歷史查詢工具(新增 5 個) | Tool | 說明 | |------|------| | `get_stock_monthly_history` / `get_stock_yearly_history` | 個股月成交彙總(FMSRFK)/年成交彙總(FMNPTK,可回溯至民國83年) | |…
v1.7.0v1.7.0 · 18 Jul 2026新功能 TAIFEX 歷史查詢工具(新增 4 個) 延續 v1.6.0 的 TWSE 歷史查詢工具,這批補上 TAIFEX 期貨/選擇權的歷史回溯能力。同樣改抓 `www.taifex.com.tw` 網站下載頁面,因為 `openapi.taifex.com.tw` 對應端點只回傳最新一個交易日: | Tool | 說明 | |------|------| | `get_put_call_ratio_history` | 台指選擇權 Put/Call…
v1.6.0v1.6.0 · 18 Jul 2026新功能 TWSE 歷史查詢工具(新增 5 個) `openapi.twse.com.tw` 對應的端點(例如 `get_daily_market_trading_info`、`get_market_historical_index`)實測只回傳最近約 12 個交易日的滾動視窗,無法指定過去的任意日期/月份。這 5 個新工具改抓 `www.twse.com.tw/rwd/*` 的網頁端點,真的支援任意過去日期: | Tool | 說明 | |------|------| |…
v1.5.0v1.5.0 · 17 Jul 2026新功能 TAIFEX 歷史資料工具(新增 2 個) `openapi.taifex.com.tw`完全沒有歷史查詢功能——實測全部 135 個端點,每一個都只回傳最新一個交易日。這 2 個新工具改為抓取期交所自己網站的下載頁面(`www.taifex.com.tw`),該頁面真的支援任意歷史日期區間: | Tool | 說明 | |------|------| | `get_futures_daily_history` | 期貨每日OHLC歷史行情 —…

README

🚀 TWStockMCPServer

Python MCP API Tests

一個全面的模型上下文協議 (MCP) 伺服器,專為台灣證券交易所 (TWSE) 數據分析設計,提供即時股票資訊、財務報表、ESG 數據和趨勢分析功能。

🌏 語言版本

🎬 示範影片

VSCode Copilot demo

VSCode Copilot demo

Gemini CLI demo

Gemini CLI demo

觀看 TWStockMCPServer 功能展示

✨ 五大投資分析情境

📊 個股趨勢研判

短中長期技術面、基本面、籌碼面綜合分析

"分析台積電(2330)最近的走勢" / "鴻海(2317)適合長期投資嗎?"

💰 外資投資解讀

外資持股、產業流向、個股進出追蹤

"外資最近在買什麼股票?" / "半導體業外資投資趨勢如何?"

🔥 市場熱點捕捉

重大訊息、異常成交、權證活躍度監控

"今天有什麼重大消息?" / "哪些股票交易量異常活躍?"

💎 股利投資規劃

高殖利率篩選、除權息行事曆、配息穩定性分析

"推薦一些高殖利率股票" / "下個月有哪些公司要除權息?"

🎯 投資標的篩選

價值股/成長股篩選、ESG風險評估

"幫我找一些被低估的價值股" / "ESG表現好的公司有哪些?"

⚙️ 快速開始

🚀 線上使用(推薦)

{
  "twstockmcpserver": {
    "transport": "streamable_http",
    "url": "https://TW-Stock-MCP-Server.fastmcp.app/mcp"
  }
}

🐳 Docker 使用(stdio,免自架伺服器)

{
  "twstockmcpserver": {
    "command": "docker",
    "args": [
      "run",
      "-i",
      "--rm",
      "--pull=always",
      "-e",
      "MCP_STDIO=1",
      "ghcr.io/twjackysu/twsemcpserver:latest"
    ]
  }
}

🐳 Docker 使用(HTTP,自架伺服器)

docker run -d -p 8000:8000 -e PORT=8000 ghcr.io/twjackysu/twsemcpserver:latest
{
  "twstockmcpserver": {
    "transport": "streamable_http",
    "url": "http://localhost:8000/mcp"
  }
}

🔧 本地安裝

git clone https://github.com/twjackysu/TWStockMCPServer.git
cd TWStockMCPServer
uv sync && uv run fastmcp dev server.py

📡 資料來源

來源 說明 Tools
TWSE OpenAPI 台灣證交所官方 API — 公司治理、ESG、財報、交易、指數等 143 個
TWSE Web API 證交所網頁 API — 個股日K、月均價、估值、融資融券、上市三大法人買賣超 6 個
MIS 即時報價 盤中即時多股報價(上市+上櫃) 1 個
TPEx OpenAPI 櫃買中心 — 上櫃日收盤、三大法人、本益比 3 個
TAIFEX OpenAPI 期交所 — 三大法人系列、大額交易人部位、每日行情、選擇權分析、保證金、年月統計 16 個

🤝 參與貢獻

歡迎PR!

📄 授權 & 免責聲明

MIT授權 | 僅供參考,不構成投資建議

README mirrored from the source repository 2 days ago. The original is authoritative.

Questions

About Twsemcpserver

How do I install Twsemcpserver?

Run npx twsemcpserver, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Twsemcpserver safe to use with an AI agent?

Its trust score is 66 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Twsemcpserver still maintained?

Yes — the latest release is v1.8.1 (28 Aug 2026), and the last commit was 6 months ago. The repository has 41 stars and 0 open issues.