KAP MCP Tools
This project contains MCP (Model Control Protocol) tools for accessing Public Disclosure Platform (KAP) data.
Features
- Company list and details
- Company financial reports
- KAP announcements
- Stock market indices
- Sector information
Installation
- Install Python 3.11 or higher
- Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # Unix/macOS
# or
.venv\Scripts\activate # Windows
- Install dependencies:
pip install -r requirements.txt
Usage
To start the application:
python main.py
API Functions
get_companies(): Returns a list of all companiesget_company(company_code): Returns details of a specific companyget_company_info(company_code): Returns detailed information about a companyget_financial_report(company_code, year): Returns the financial report of a companyget_indices(): Returns a list of all indicesget_announcements_by_company(company_code): Returns announcements of a specific companyget_announcements(): Returns a list of all announcementsget_sectors(): Returns a list of all sectors
Error Handling
All API calls are protected with try-catch blocks and return meaningful error messages.
License
This project is licensed under the MIT License.
