Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SET-MCPShow me the income statement for PTT from 2022 to 2024"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SET-MCP
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
Installation
The package requires Python 3.11 or higher. You can install it using pip:
Installing via Smithery
To install set-mcp for Claude Desktop automatically via Smithery:
Usage
Command Line Interface
The package provides a command-line interface for easy access to financial data:
Using with uvx
Run
Using with pipx
MCP.json example
Vercel
Coming soon
Available options:
--port: Port to listen on for SSE (default: 8000)--host: Host to listen on (default: 0.0.0.0)--transport: Transport type (choices: stdio, sse, default: stdio)
Note: SSE is not yet implemented
Python API
You can also use the package programmatically in your Python code:
Development
Setup Development Environment
Clone the repository:
Create and activate a virtual environment:
Install development dependencies:
Running Tests
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
Prem Chotipanit (prem.ch@ku.th | prem.chotepanit@gmail.com)