Angel One MCP
by igeniusdev
README.md
# Angel One MCP by iGeniusDev
A local Model Context Protocol server for Angel One SmartAPI. Use an MCP client to query live quotes and historical candles, search instruments, and review holdings, positions, orders and trades. The server also exposes order management, GTT creation and position conversion, with dry-run enabled by default.
## Install
Use Python 3.10 or newer, Git, and an Angel One SmartAPI account with TOTP configured.
```sh
git clone https://github.com/igeniusdev/angel-one-mcp.git
cd angel-one-mcp
python3 -m venv .venv
.venv/bin/python -m pip install .
cp .env.example .env
chmod 600 .env
```
On Windows use `.venv\Scripts\python.exe` and copy `.env.example` to `.env`. Fill in your own SmartAPI key, client code, PIN/password and TOTP secret in the local `.env` file. Keep that file private.
## Connect Claude Desktop or another stdio MCP client
Add this entry to your client's MCP configuration and replace both paths with absolute paths on your computer. In Claude Desktop, open **Settings → Developer → Edit Config**.
```json
{
"mcpServers": {
"angel-one": {
"command": "/absolute/path/to/angel-one-mcp/.venv/bin/python",
"args": ["-m", "angel_one_mcp.server"],
"env": {
"ANGEL_ONE_ENV_FILE": "/absolute/path/to/angel-one-mcp/.env"
}
}
}
}
```
Restart the client and try “Show my holdings” or “Look up the latest price for RELIANCE on NSE.” This repository is public and each user runs the MCP locally using their own Angel One account.
## Trading mode
Keep `DRY_RUN_MODE=true` while testing. The trading tools simulate orders, modifications, cancellations, GTT creation and position conversion. Portfolio and market-data calls still use the live SmartAPI. Setting `DRY_RUN_MODE=false` explicitly enables live orders and other account changes. `MAX_ORDER_QUANTITY` caps the quantity for order placement.
## License and attribution
This community project is maintained by iGeniusDev and is independent of Angel One.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues