此仓库包含了Angel One交易平台的模型上下文协议实现,允许您通过Angel One的交易API获取历史数据和投资组合数据。
git clone https://github.com/yourusername/angelone-mcp.git
cd angelone-mcp
git submodule update --init --recursive
python -m venv venv
source venv/bin/activate # 在Windows上使用 `venv\Scripts\activate`
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install -r requirements.txt
# test_credentials.py
API_KEY = "your_api_key"
CLIENT_CODE = "your_client_code"
PASSWORD = "your_password"
PIN = "your_pin"
TOKEN = "your_token" # 可选
api.py作为MCP服务器供MCP客户端使用{
"mcp": {
"servers": {
"angleone": {
"command": "/Users/rohandoshi/.local/bin/uv",
"args": [
"--directory",
"/Users/rohandoshi/Development/angelone-mcp",
"run",
"api.py"
]
},
}
}
}