KSEI MCP
An unofficial MCP server for accessing KSEI (AKSes) portfolio data, including cash balances, equity holdings, mutual funds, bonds, and other investments.
README
KSEI MCP
An unofficial Model Context Protocol (MCP) server for accessing your AKSes KSEI (Acuan Kepemilikan Sekuritas Kustodian Sentral Efek Indonesia) portfolio data.
This server enables AI assistants to retrieve Indonesian securities portfolio information, including:
- Cash balances
- Equity holdings
- Mutual funds
- Bonds
- Other investments
🔧 Prerequisites
- Python 3.11 or higher
- Valid KSEI account credentials
uvinstalled (recommended for quick execution)
⚙️ Installation & Setup
1. Set Environment Variables
Set the following environment variables:
export KSEI_USERNAME="your_ksei_username"
export KSEI_PASSWORD="your_ksei_password"
export KSEI_AUTH_PATH="./data" # Optional, defaults to "./data" for saving auth tokens
2. Run with uvx (Recommended)
The easiest way to start the server is with uvx:
# Run directly from PyPI
uvx ksei-mcp
# Or run from the local directory
uvx --from . ksei-mcp
3. Alternative: Traditional Installation
If you prefer manual installation:
# Install dependencies
pip install -e .
🤖 Usage with MCP Clients
Add this configuration to your MCP-compatible client:
{
"mcpServers": {
"ksei": {
"type": "stdio",
"command": "uvx",
"args": ["ksei-mcp@latest"]
}
}
}
🧪 Development: Using MCP Inspector
For local testing and development:
# Install MCP Inspector
npm install -g @modelcontextprotocol/inspector
# Run with inspector
mcp-inspector uvx --from . ksei-mcp
💬 Example Queries
Once integrated into your AI assistant, you can ask:
"Show me my KSEI portfolio summary"
"What are my current cash balances?"
"List all my equity holdings"
"Get my mutual fund investments"
"Fetch all portfolio data"
Example (Using Gemini CLI)

Other supported clients include GitHub Copilot, Claude, and any MCP-compatible assistant.
🔐 Security Considerations
- Credentials: Never commit credentials to version control. Use environment variables or secure vaults.
- Token Storage: Auth tokens are stored locally as JSON files.
- Secure Transport: All communication with KSEI uses HTTPS.
- Access Control: Restrict file system access to the authentication and data directories.
🛠️ Contributing
- Fork this repository
- Create a feature branch
- Implement your changes
- Add tests (if applicable)
- Open a pull request
📄 License
Licensed under the MIT License. See the LICENSE file for details.
⚠️ Disclaimer
This software is intended for educational and personal use only. Users are responsible for complying with KSEI's terms of service and all relevant regulations.
Note: This is an unofficial client for KSEI services. It is not affiliated with or endorsed by KSEI.
Acknowledgement
This project is an adaptation from chickenzord/goksei. Many thanks to the original author for their work and inspiration.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。