kospi-kosdaq-stock-server
An MCP server that provides KOSPI/KOSDAQ stock data using FastMCP.
Features
- Lookup KOSPI/KOSDAQ ticker symbols and names
- Retrieve OHLCV data for a specific stock
- Retrieve market capitalization data for a specific stock
- Retrieve fundamental data (PER/PBR/Dividend Yield) for a specific stock
- Retrieve trading volume by investor type for a specific stock
Available Tools
load_all_tickers
- Loads all ticker symbols and names for KOSPI and KOSDAQ into memory.- No arguments.
get_stock_ohlcv
- Retrieves OHLCV (Open/High/Low/Close/Volume) data for a specific stock.fromdate
(string, required): Start date for retrieval (YYYYMMDD)todate
(string, required): End date for retrieval (YYYYMMDD)ticker
(string, required): Stock ticker symboladjusted
(boolean, optional): Whether to use adjusted prices (True: adjusted, False: unadjusted). Defaults to True.
get_stock_market_cap
- Retrieves market capitalization data for a specific stock.fromdate
(string, required): Start date for retrieval (YYYYMMDD)todate
(string, required): End date for retrieval (YYYYMMDD)ticker
(string, required): Stock ticker symbol
get_stock_fundamental
- Retrieves fundamental data (PER/PBR/Dividend Yield) for a specific stock.fromdate
(string, required): Start date for retrieval (YYYYMMDD)todate
(string, required): End date for retrieval (YYYYMMDD)ticker
(string, required): Stock ticker symbol
get_stock_trading_volume
- Retrieves trading volume by investor type for a specific stock.fromdate
(string, required): Start date for retrieval (YYYYMMDD)todate
(string, required): End date for retrieval (YYYYMMDD)ticker
(string, required): Stock ticker symbol
Installation
This package requires uv for installation and execution.
Installing via Smithery
To install KOSPI/KOSDAQ Stock Data Server for Claude Desktop automatically via Smithery:
Manual Installation
Configuration for Claude.app
After installing the package, you need to configure the MCP server in your claude_desktop_config.json
file.
- Locate the configuration file:
- On macOS, the file is typically located at:
/Users/username/Library/Application Support/Claude/claude_desktop_config.json
- On Windows, the file is typically located at:
%APPDATA%/Claude/claude_desktop_config.json
- On macOS, the file is typically located at:
- Add the server configuration:
Open the
claude_desktop_config.json
file and add a new entry to themcpServers
object:
Configuration Details:
command
: Useuvx
to take advantage of uv's isolation and dependency managementargs
: Only the package name is needed since the entry point is defined in the package- No additional environment variables are required
- Restart Claude: After saving the changes to
claude_desktop_config.json
, restart Claude for the changes to take effect.
Usage Example
After configuring the server, you can use it in Claude like this:
- First, load all available stock tickers:
- Get OHLCV data for a specific stock:
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
使用 FastMCP 提供 KOSPI/KOSDAQ 股票数据的 MCP 服务器。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityMCP server that provides AI assistants access to stock market data including financial statements, stock prices, and market news through a Model Context Protocol interface.Last updated -11462PythonMIT License
- -securityFlicense-qualityA FastMCP-based service that provides stock data including historical prices, fundamental information, and financial news.Last updated -6Python
- -securityFlicense-qualityA stock data MCP server based on BaoStock that provides multiple interfaces for retrieving stock market data.Last updated -34Python
- AsecurityAlicenseAqualityAn MCP server that provides comprehensive financial insights and analysis by leveraging real-time market data, news, and advanced analytics for stocks, options, financial statements, and economic indicators.Last updated -1744PythonMIT License