Skip to main content
Glama
twjackysu

TWSE MCP Server

by twjackysu

🚀 TWStockMCPServer

License: MIT Python MCP API Tests

A comprehensive Model Context Protocol (MCP) server designed for Taiwan Stock Exchange (TWSE) data analysis, providing real-time stock information, financial reports, ESG data, and trend analysis features.

🌏 Language Versions

Related MCP server: Taiwan Stock Agent

🎬 Demo Videos

VSCode Copilot demo

VSCode Copilot demo

Gemini CLI demo

Gemini CLI demo

Watch the TWStockMCPServer feature showcase

✨ Five Major Investment Analysis Scenarios

📊 Individual Stock Trend Analysis

Comprehensive analysis of short, medium, and long-term technical, fundamental, and chip-distribution aspects.

"Analyze the recent trend of TSMC (2330)" / "Is Foxconn (2317) suitable for long-term investment?"

💰 Foreign Institutional Investor Interpretation

Tracking foreign shareholding, industry capital flows, and individual stock entry/exit.

"What stocks have foreign investors been buying recently?" / "What is the foreign investment trend in the semiconductor industry?"

🔥 Market Hotspot Capture

Monitoring major news, abnormal trading volume, and warrant activity.

"What is the major news today?" / "Which stocks have abnormally high trading volume?"

💎 Dividend Investment Planning

High dividend yield screening, ex-dividend calendar, and payout stability analysis.

"Recommend some high dividend yield stocks" / "Which companies are going ex-dividend next month?"

🎯 Investment Target Screening

Value/growth stock screening and ESG risk assessment.

"Help me find some undervalued value stocks" / "Which companies have good ESG performance?"

⚙️ Quick Start

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

🐳 Docker Usage (stdio, no server setup required)

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

🐳 Docker Usage (HTTP, self-hosted server)

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

🔧 Local Installation

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

📡 Data Sources

Source

Description

Tools

TWSE OpenAPI

Official TWSE API — Corporate Governance, ESG, Financial Reports, Trading, Indices, etc.

143

TWSE Web API

TWSE Web API — Daily K-line, Monthly Average Price, Valuation, Margin Trading, Institutional Investor Net Buy/Sell

6

MIS Real-time Quotes

Real-time multi-stock quotes during trading hours (Listed + OTC)

1

TPEx OpenAPI

Taipei Exchange — OTC Daily Closing, Institutional Investors, P/E Ratio

3

TAIFEX OpenAPI

Taiwan Futures Exchange — Institutional Investor Series, Large Trader Positions, Daily Market Data, Options Analysis, Margins, Monthly/Yearly Statistics

16

🤝 Contribution

PRs are welcome!

📄 License & Disclaimer

MIT License | For reference only, does not constitute investment advice

Install Server
A
license - permissive license
B
quality
A
maintenance

Maintenance

Maintainers
4dResponse time
1wRelease cycle
13Releases (12mo)
Commit activity
Issues opened vs closed

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

  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that provides AI assistants with access to Shioaji trading API for the Taiwanese financial market.
    9
  • A
    license
    C
    quality
    D
    maintenance
    Provides 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.
    8
    15
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    MCP server for TDCC OpenData, enabling natural language query of Taiwan securities custody data, including shareholding distribution, stock custody changes, offshore fund NAVs, and e-voting information.
    8
    2
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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/twjackysu/TWSEMCPServer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server