TWSEMCPServer

作者 twjackysu已验证

台灣證交所OpenAPI 的 MCP Server 同時整合部分即時報價和櫃檯買賣中心TPEx OpenAPI, 臺灣期貨交易所TAIFEX OpenAPI

149
Stars
41
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/twjackysu/TWSEMCPServer

快速入门

使用 TWSEMCPServer 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

🚀 TWStockMCPServer

License: MIT Python MCP API Tests

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

🌏 語言版本

🎬 示範影片

VSCode Copilot demo

VSCode Copilot demo

Gemini CLI demo

Gemini CLI demo

觀看 TWStockMCPServer 功能展示

✨ 五大投資分析情境

📊 個股趨勢研判

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

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

💰 外資投資解讀

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

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

🔥 市場熱點捕捉

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

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

💎 股利投資規劃

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

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

🎯 投資標的篩選

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

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

🧮 進階功能

期貨籌碼與選擇權分析

Put/Call Ratio、大額交易人未沖銷部位、三大法人期貨/選擇權部位

"台指期籌碼現在偏多還是偏空?" / "選擇權大額交易人在哪個價位布局?"

三大法人籌碼流向

上市/上櫃三大法人買賣超、外資產業配置

"三大法人今天買超哪些股票?" / "外資在哪個產業加碼?"

個股財報體檢

獲利能力、成長性、財務結構、配息政策、公司治理五面向分析

"幫我做台積電的財報體檢" / "這家公司的財務體質健不健康?"

買前風險掃描

處置股、注意股、當沖限制、停資停券名單比對

"這檔股票買進前有沒有被列處置或注意?"

期貨/三大法人歷史回溯查詢

openapi.taifex.com.tw 僅提供最新一個交易日,本專案額外串接期交所網站下載頁面 (www.taifex.com.tw),可回溯查詢台指期等期貨每日OHLC歷史、三大法人期貨部位歷史

"幫我拉台指期最近一個月的每日OHLC" / "外資期貨部位過去三個月怎麼變化?"

⚙️ 快速開始

🚀 線上使用(由 Prefect Horizon 提供支援)

本專案由 Prefect Horizon 提供支援,免費託管線上 remote MCP Server:

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

⚠️ 使用限制:為維持服務永續,此線上服務設有合理使用量上限(非無限制)。若需商業使用或較高呼叫量,強烈建議改用下方 Docker/本機方式自行架設伺服器,或使用 Prefect Horizon 的付費方案。

🙏 感謝 Prefect Horizon 支援本開源專案,讓社群能免費輕鬆試用。

🐳 Docker 使用(stdio)

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

🔧 本地安裝

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、月均價、估值、融資融券、上市三大法人買賣超(金額/股數)、全市場收盤行情、加權指數歷史、外資持股歷史、個股月/年成交彙總、鉅額交易明細、融券借券餘額/成交16 個
MIS 即時報價盤中即時多股報價(上市+上櫃)1 個
TPEx OpenAPI櫃買中心 — 上櫃日收盤、三大法人(個股/彙總)、本益比、融資融券、注意/處置股、除權息、零股、指數10 個
TAIFEX OpenAPI期交所 — 三大法人系列、大額交易人部位、每日行情、選擇權分析、保證金、年月統計16 個
TAIFEX 網站下載期交所網站歷史資料下載頁面 — 期貨每日OHLC歷史、三大法人期貨部位歷史、Put/Call Ratio歷史、三大法人選擇權買賣權分計歷史、大額交易人未沖銷部位歷史、選擇權每日OHLC歷史、三大法人期貨+選擇權總表歷史、三大法人期貨/選擇權分計歷史、三大法人各選擇權契約歷史(openapi.taifex.com.tw 僅提供最新一日,無歷史查詢功能)9 個

🤝 參與貢獻

歡迎PR!

📄 授權 & 免責聲明

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

常见问题

What is TWSEMCPServer?

TWSEMCPServer is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by twjackysu. 台灣證交所OpenAPI 的 MCP Server 同時整合部分即時報價和櫃檯買賣中心TPEx OpenAPI, 臺灣期貨交易所TAIFEX OpenAPI. It has 149 GitHub stars.

Is TWSEMCPServer safe to use?

Yes. TWSEMCPServer passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install TWSEMCPServer?

Clone the repository with "git clone https://github.com/twjackysu/TWSEMCPServer" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is TWSEMCPServer written in?

TWSEMCPServer is primarily written in Python. It is open-source under twjackysu on GitHub, so you can review or fork the full source.

Are there alternatives to TWSEMCPServer?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh TWSEMCPServer against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP 服务器
查看详情

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP 服务器
查看详情

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP 服务器
查看详情

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP 服务器
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情