Labsco
batprem logo

SET-MCP

โ˜… 12

from batprem

Access financial statements, including income, balance sheets, and cash flow, for companies listed on the Securities Exchange of Thailand (SET).

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

SET-MCP

smithery badge

SET-MCP is a Python package that provides tools for serving Model Context Protocol which can access the Securities Exchange of Thailand (SET). It allows AI agents to retrieve comprehensive financial statements including income statements, balance sheets, and cash flow statements for listed companies.

Features

  • Retrieve financial statements for SET-listed companies
  • Support for multiple financial statement types:
    • Income Statement
    • Balance Sheet
    • Cash Flow Statement
  • Historical data retrieval with customizable date ranges
  • Command-line interface for easy integration
  • FastMCP integration for enhanced functionality

Development

Setup Development Environment

  1. Clone the repository:
git clone https://github.com/yourusername/set-mcp.git
cd set-mcp
  1. Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install development dependencies:
pip install -e ".[dev]"

Running Tests

python test_client.py

The output should be no error

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author