Skip to main content
Glama
twjackysu

TWSE MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
get_company_profileB

Obtain the basic information of a listed company as a JSON string object based on its stock code.

get_company_dividendB

Obtain the dividend distribution information of a listed company based on its stock code.

get_company_monthly_revenueB

Obtain monthly revenue information for a listed company based on its stock code.

get_public_company_monthly_revenueB

Obtain monthly revenue summary for a public company based on its stock code.

get_company_major_shareholdersA

Obtain major shareholders (over 10% ownership) information for a listed company based on its stock code.

get_company_eps_statisticsB

Obtain EPS statistics by industry for a listed company based on its stock code.

get_company_board_insufficient_sharesB

Get all listed companies where board members hold insufficient shares as required by law.

get_company_board_shareholdingsB

Obtain board members' shareholding details for a listed company based on its stock code.

get_company_daily_insider_trades_preannouncedB

Obtain daily insider share transfer pre-announcements for a listed company based on its stock code.

get_company_daily_insider_trades_untransferredB

Obtain daily insider share transfers that have not yet been executed for a listed company based on its stock code.

get_company_sec_regulatory_penaltiesB

Obtain SEC regulatory penalty information for a listed company based on its stock code.

get_companies_with_independent_directorsB

Get all listed companies with information about independent directors.

get_company_director_compensationB

Obtain director compensation information for a listed company based on its stock code.

get_company_supervisor_compensationB

Obtain supervisor compensation information for a listed company based on its stock code.

get_company_consolidated_director_compensationB

Obtain consolidated director compensation information for a listed company based on its stock code.

get_company_consolidated_supervisor_compensationB

Obtain consolidated supervisor compensation information for a listed company based on its stock code.

get_company_information_disclosure_violationsC

Obtain information disclosure and shareholder meeting regulation violations for a listed company based on its stock code.

get_companies_with_csr_reports_103B

Get all companies required to prepare and submit CSR reports in 2014 (103 year).

get_public_company_profileB

Obtain basic information for a public company based on its stock code.

get_market_disposal_stocksB

Get stocks that have been disposed by the market.

get_company_board_insufficient_shares_consecutiveB

Get companies where board members have held insufficient shares for 3 consecutive months or more.

get_company_shareholder_meeting_announcementsB

Get comprehensive shareholder meeting announcements with all available information (since 2008).

get_company_shareholder_meeting_announcements_by_codeC

Get comprehensive shareholder meeting announcements for a specific company by stock code.

get_companies_with_ownership_changesB

Get companies with changes in ownership structure.

get_company_shareholder_meeting_datesB

Get shareholder meeting dates, locations and electronic voting information.

get_companies_with_business_scope_changesB

Get companies with major changes in business scope.

get_companies_ownership_changes_business_scopeB

Get companies with ownership changes that also have major business scope changes and were suspended from trading.

get_companies_ownership_changes_business_scope_tradingB

Get companies with ownership changes and major business scope changes that were changed to trading method.

get_company_governance_regulationsB

Obtain corporate governance regulations and rules for a listed company based on its stock code.

get_company_ceo_dual_roleB

Get information about whether company chairmen also serve as CEOs.

get_company_board_pledged_sharesB

Get board members' pledged shares as a percentage of their actual holdings.

get_companies_cumulative_votingB

Get companies that use cumulative voting, full roll-call voting, or nominee nomination systems for electing directors and supervisors.

get_company_shareholder_proposal_exerciseC

Get information about shareholder exercise of proposal rights.

get_company_income_statementA

Obtain comprehensive income statement for a listed company based on its stock code. Automatically detects company industry and uses appropriate financial statement format:

  • General industry (一般業)

  • Financial services (金融業)

  • Securities & futures (證券期貨業)

  • Financial holding companies (金控業)

  • Insurance (保險業)

  • Other industries (異業)

get_company_balance_sheetB

Obtain balance sheet for a listed company based on its stock code. Automatically detects company industry and uses appropriate financial statement format:

  • General industry (一般業)

  • Financial services (金融業)

  • Securities & futures (證券期貨業)

  • Financial holding companies (金控業)

  • Insurance (保險業)

  • Other industries (異業)

get_company_quarterly_earnings_forecast_achievementC

Obtain quarterly earnings forecast achievement (simplified) for a listed company based on its stock code.

get_company_quarterly_audit_varianceB

Obtain quarterly comprehensive income audited/reviewed figures that differ from forecast by more than 10% for a listed company based on its stock code.

get_company_profitability_analysisC

Get profitability analysis for a specific listed company based on its stock code.

get_company_profitability_analysis_summaryA

Get profitability analysis query summary table (all companies aggregate report).

Args: page_size: Number of records per page (default: 20, max: 100) page_number: Page number to retrieve (default: 1, starts from 1) order_by: Field name to sort by. Available fields: - "公司代號" (Company Code) - "公司名稱" (Company Name) - "營業收入(百萬元)" (Revenue in millions) - "毛利率(%)(營業毛利)/(營業收入)" (Gross Margin %) - "營業利益率(%)(營業利益)/(營業收入)" (Operating Margin %) - "稅前純益率(%)(稅前純益)/(營業收入)" (Pre-tax Margin %) - "稅後純益率(%)(稅後純益)/(營業收入)" (Net Margin %) - "年度" (Year) - "季別" (Quarter) order_direction: Sort direction, "asc" for ascending or "desc" for descending (default: "asc")

get_company_financial_reports_supervisor_acknowledgmentB

Obtain financial report acknowledgment by supervisors for a listed company based on its stock code.

get_public_company_balance_sheetA

Obtain balance sheet for a public company based on its stock code. Automatically detects company industry and uses appropriate financial statement format.

get_public_company_income_statementB

Obtain comprehensive income statement for a public company based on its stock code. Automatically detects company industry and uses appropriate financial statement format.

get_public_company_board_shareholdingsB

Obtain board member shareholding details for a public company based on its stock code.

get_company_governance_infoB

Obtain corporate governance information for a listed company based on its stock code.

get_company_climate_managementB

Obtain climate-related management information for a listed company based on its stock code.

get_company_risk_managementB

Obtain risk management policy information for a listed company based on its stock code.

get_company_supply_chain_managementB

Obtain supply chain management information for a listed company based on its stock code.

get_company_info_securityB

Obtain information security data for a listed company based on its stock code.

get_company_anticompetitive_litigationC

Obtain anti-competitive litigation losses information for a listed company based on its stock code.

get_companies_with_anticompetitive_lossesB

Get all listed companies that have reported monetary losses from anti-competitive litigation (excluding zero or N/A values).

get_company_inclusive_financeB

Obtain inclusive finance information for a listed company based on its stock code.

get_companies_with_inclusive_finance_dataB

Get all listed companies that have reported inclusive finance activities (excluding zero or N/A values).

get_company_community_relationsB

Obtain community relations information for a listed company based on its stock code.

get_companies_with_refineries_in_populated_areasB

Get all listed companies that have reported refineries in populated areas (excluding zero or N/A values).

get_company_ownership_and_controlB

Obtain ownership and control information for a listed company based on its stock code.

get_company_product_quality_safetyB

Obtain product quality and safety information for a listed company based on its stock code.

get_company_food_safetyB

Obtain food safety information for a listed company based on its stock code.

get_company_product_lifecycleB

Obtain product lifecycle information for a listed company based on its stock code.

get_company_fuel_managementB

Obtain fuel management information for a listed company based on its stock code.

get_company_investor_communicationsB

Obtain investor communications information for a listed company based on its stock code.

get_company_board_infoB

Obtain board information for a listed company based on its stock code.

get_company_human_developmentB

Obtain human development information for a listed company based on its stock code.

get_company_waste_managementC

Obtain waste management information for a listed company based on its stock code.

get_company_water_managementB

Obtain water resource management information for a listed company based on its stock code.

get_company_energy_managementB

Obtain energy management information for a listed company based on its stock code.

get_company_greenhouse_gas_emissionsC

Obtain greenhouse gas emissions information for a listed company based on its stock code.

get_company_major_newsA

Get daily major announcements from listed companies.

Retrieves important company announcements and material information disclosures that may impact stock prices and investor decisions. Can filter by company code or get all announcements.

Args: code: Company stock code (optional). If provided, filters results for specific company. If empty, returns all major announcements.

Returns: Formatted string containing major announcements including: - Report date (出表日期) - Announcement date (發言日期) - Announcement time (發言時間) - Company code (公司代號) - Company name (公司名稱) - Subject/Title (主旨 ) - Applicable regulations (符合條款) - Event occurrence date (事實發生日) - Description/Details (說明)

Note: This API provides basic announcement information without speaker/contact details. For complete contact information, refer to company's official announcements.

get_twse_newsA

Get latest news from Taiwan Stock Exchange with optional date filtering.

Retrieves official news announcements from TWSE including market updates, regulatory changes, system maintenance notices, and other important information for market participants.

Args: start_date: Start date for filtering news (format: YYYYMMDD, e.g., "20250101") If empty, defaults to current month's first day end_date: End date for filtering news (format: YYYYMMDD, e.g., "20250131") If empty, defaults to current month's last day

Note: - If both dates are empty, returns current month's news - Date format must be YYYYMMDD (e.g., "20250822" for August 22, 2025) - API returns news in Chinese with dates in format YYYMMDD (民國年)

Returns: Formatted string containing TWSE news including: - Title (標題) - URL/Link (連結) - Date (日期) - in format YYYMMDD (民國年)

get_twse_eventsA

Get Taiwan Stock Exchange event announcements and activities.

Retrieves information about TWSE organized events, seminars, training sessions, and other activities that may be of interest to market participants and investors.

Args: top: Number of top events to return (default: 10). If empty or 0, returns all events.

Returns: Formatted string containing TWSE events including: - Event number (No) - Event title/subject (活動主題) - Event details (詳細內容)

get_foreign_companies_applying_for_listingB

Get foreign companies applying for first listing on TWSE.

get_recently_listed_companiesB

Get recently listed companies.

get_suspended_listed_companiesB

Get companies whose listing has been suspended.

get_local_companies_applying_for_listingB

Get local companies applying for listing.

get_stock_daily_tradingA

Obtain daily trading information for a listed company stock based on its stock code.

Returns information including:

  • Date: Trading date (ROC calendar YYYMMDD)

  • Code: Stock code

  • Name: Stock name

  • TradeVolume: Trade volume (in shares)

  • TradeValue: Trade value (in TWD)

  • OpeningPrice: Opening price

  • HighestPrice: Highest price

  • LowestPrice: Lowest price

  • ClosingPrice: Closing price

  • Change: Price change

  • Transaction: Transaction count

get_stock_monthly_averageC

Obtain daily closing price and monthly average price for a listed company stock based on its stock code.

get_stock_monthly_tradingA

Obtain monthly trading information for a listed company stock based on its stock code.

Returns information including:

  • Month: Trading month (ROC calendar YYMM)

  • Code: Stock code

  • Name: Stock name

  • HighestPrice: Highest price in the month

  • LowestPrice: Lowest price in the month

  • WeightedAvgPriceAB: Weighted average price

  • Transaction: Transaction count

  • TradeValueA: Trade value (in TWD)

  • TradeVolumeB: Trade volume (in shares)

  • TurnoverRatio: Turnover ratio (%)

get_stock_yearly_tradingA

Obtain yearly trading information for a listed company stock based on its stock code.

Returns information including:

  • Year: Trading year (ROC calendar YYY)

  • Code: Stock code

  • Name: Stock name

  • TradeVolume: Total trade volume (in shares)

  • TradeValue: Total trade value (in TWD)

  • Transaction: Total transaction count

  • HighestPrice: Highest price in the year

  • HDate: Date of highest price

  • LowestPrice: Lowest price in the year

  • LDate: Date of lowest price

  • AvgClosingPrice: Average closing price

get_stock_valuation_ratiosA

Obtain P/E ratio, dividend yield, and P/B ratio for a listed company stock based on its stock code.

Returns information including:

  • Date: Data date (ROC calendar YYYMMDD)

  • Code: Stock code

  • Name: Stock name

  • PEratio: Price-to-Earnings ratio

  • DividendYield: Dividend yield (%)

  • PBratio: Price-to-Book ratio

get_etf_regular_investment_rankingA

Get top 10 securities by number of regular investment accounts (定期定額).

Retrieves ranking statistics for both individual stocks and ETFs based on the number of trading accounts using regular investment plans. This data helps identify the most popular securities for systematic investment strategies.

Returns: Formatted string containing top 10 regular investment rankings including: - Ranking number (排序) - Stock code (股票代號) - Stock name (股票名稱) - Number of stock trading accounts (股票交易戶數) - ETF code (ETF代號) - ETF name (ETF名稱) - Number of ETF trading accounts (ETF交易戶數)

get_warrant_basic_infoA

Get basic information of listed warrants.

Retrieves comprehensive basic data for all listed warrants including warrant codes, types, exercise periods, underlying assets, and other key parameters. Can filter by specific warrant code if provided.

Args: code: Warrant code (optional). If provided, filters results for specific warrant. If empty, returns all warrant basic information.

Returns: Formatted string containing warrant basic information including: - Report date (出表日期) - Warrant code (權證代號) - Warrant name (權證簡稱) - Warrant type (權證類型) - Category (類別) - Market maker quoting method (流動量提供者報價方式) - Exercise start date (履約開始日) - Last trading date (最後交易日) - Exercise deadline (履約截止日) - Issue size in thousand units (發行單位數量(仟單位)) - Settlement method (結算方式(詳附註編號說明)) - Underlying securities/index (標的證券/指數) - Latest exercise allocation per thousand units (最新標的履約配發數量(每仟單位權證)) - Original/latest exercise prices and price limits (原始/最新履約價格及上下限價格) - Notes (備註)

get_warrant_daily_tradingA

Get daily trading data for listed call/put warrants.

Retrieves daily trading volume and value statistics for warrants, including transaction amounts and number of contracts traded.

Args: code: Warrant code (optional). If provided, filters results for specific warrant. If empty, returns all warrant trading data.

Returns: Formatted string containing warrant daily trading data including: - Report date (出表日期) - Warrant code (權證代號) - Warrant name (權證名稱) - Trading volume in lots (成交張數) - Trading value (成交金額)

Note: This API may return empty data when there are no warrant trades for the day. Check warrant basic info to see available warrants before querying trading data.

get_warrant_trader_countA

Get daily number of warrant traders.

Retrieves statistics on the number of individual traders participating in warrant trading on each trading day, providing insights into warrant market participation levels.

Returns: Formatted string containing warrant trader count data including: - Report date (出表日期) - Trading date (日期) - Number of traders (人數)

get_warrant_yearly_issuance_statisticsB

Get yearly issuance volume statistics for listed call/put warrants.

Retrieves annual statistics on warrant issuance volumes by type and period.

Returns: Formatted string containing warrant yearly issuance statistics including: - Year (年度) - Warrant type (權證類型) - Issuance volume (發行量) - And other issuance-related statistics

get_dividend_rights_scheduleA

Get ex-dividend and ex-rights schedule for listed stocks.

Retrieves upcoming and historical ex-dividend/ex-rights dates along with detailed information about stock dividends, cash dividends, rights offerings, and other corporate actions. Essential for dividend investment strategies.

Args: code: Stock code (optional). If provided, filters results for specific company. If empty, returns all upcoming dividend/rights schedules.

Returns: Formatted string containing dividend/rights schedule including: - Ex-dividend/rights date (除權息日期) - Stock code (股票代號) - Company name (名稱) - Ex-dividend/rights type (除權息) - Stock dividend ratio (無償配股率) - Rights offering ratio (現金增資配股率) - Rights offering price per share (現金增資認購價) - Cash dividend (現金股利) - Number of shares offered (配股張數) - And other corporate action details

get_stocks_no_price_change_first_five_daysA

Get stocks with no price change in the first five trading days.

get_financial_program_abnormal_recommendationsB

Get stocks abnormally recommended in financial programs.

get_daily_day_trading_targetsC

Get daily day trading targets and statistics.

get_suspended_day_trading_announcementC

Get announcement of suspended buy-sell-same-day trading targets.

get_suspended_day_trading_historyB

Get historical query of suspended buy-sell-same-day trading.

get_cross_market_trading_infoB

Get daily cross-market trading information for listed and OTC stocks.

get_top_20_volume_stocksB

Get top 20 stocks by trading volume in the centralized market.

Returns information including:

  • Date: Trading date

  • Rank: Volume ranking

  • Code: Stock code

  • Name: Stock name

  • TradeVolume: Trading volume

  • Transaction: Transaction count

  • OpeningPrice: Opening price

  • HighestPrice: Highest price

  • LowestPrice: Lowest price

  • ClosingPrice: Closing price

  • Dir: Direction (+/-)

  • Change: Price change

get_odd_lot_trading_quotesB

Get odd-lot trading quotes in the centralized market.

get_suspended_trading_stocksB

Get stocks suspended from trading in the centralized market.

get_after_hours_tradingB

Get after-hours fixed-price trading in the centralized market.

get_margin_loan_restrictions_announcementB

Get announcement of margin loan and short sale restrictions.

get_block_trades_dailyB

Get daily block trade volume and value statistics.

get_block_trades_monthlyB

Get monthly block trade volume and value statistics.

get_block_trades_yearlyB

Get yearly block trade volume and value statistics.

get_first_listed_foreign_stocks_dailyB

Get daily trading volume and value of first-listed foreign stocks.

get_securities_trading_changesB

Get securities trading method changes in the centralized market.

Prompts

Interactive templates invoked by user choice

NameDescription
stock_trend_analysis_promptPrompt for Taiwan stock trend analysis using TWSE OpenAPI endpoints.
foreign_investment_analysisPrompt for foreign investment analysis using TWSE OpenAPI endpoints.
market_hotspot_monitoringPrompt for market hotspot monitoring using TWSE OpenAPI endpoints.
dividend_investment_strategyPrompt for dividend investment strategy using TWSE OpenAPI endpoints.
investment_screeningPrompt for investment screening using TWSE OpenAPI endpoints.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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