This connects Claude directly to Angel One's SmartAPI for trading Indian equities and derivatives. You get order placement and modification, portfolio reads (holdings, positions, funds), market data (LTP, candles, Greeks, open interest), GTT rule management, and margin calculators. It handles TOTP generation internally and includes configurable safety guards with soft and hard limits on order quantity and value, especially useful for preventing runaway market orders. The implementation skips the official SDK in favor of direct fetch calls, making it lighter and easier to audit. Best for algorithmic traders or analysts who want conversational access to their Angel One account without building a web interface or writing integration glue.
TypeScript Model Context Protocol server for Angel One SmartAPI.
Use it from Claude, Cursor, Copilot, or any MCP client to:
fetch() integration. No Angel One SDK dependency.npx.angel-one-mcpio.github.ameernoufil/angel-oneameernoufil/angel-one-mcpIf your client supports registry-based discovery, search for io.github.ameernoufil/angel-one.
If your client prefers package installs, use angel-one-mcp from npm.
npx (recommended)Add this to your MCP client config:
{
"mcpServers": {
"angel-one": {
"type": "stdio",
"command": "npx",
"args": ["-y", "angel-one-mcp"],
"env": {
"ANGEL_API_KEY": "your_smartapi_key",
"ANGEL_CLIENT_ID": "your_client_id",
"ANGEL_PASSWORD": "your_mpin",
"ANGEL_TOTP_SECRET": "your_base32_totp_secret"
}
}
}
}
git clone https://github.com/ameernoufil/angel-one-mcp.git
cd angel-one-mcp
npm install
cp .env.example .env
npm run build
npm start
If running from source, point your MCP client to build/index.js.
Required:
ANGEL_API_KEYANGEL_CLIENT_IDANGEL_PASSWORDANGEL_TOTP_SECRETOptional safety limits:
SOFT_MAX_ORDER_QTY default 25HARD_MAX_ORDER_QTY default 100SOFT_MAX_ORDER_VALUE default 10000HARD_MAX_ORDER_VALUE default 100000Example .env:
ANGEL_API_KEY=your_smartapi_key
ANGEL_CLIENT_ID=your_client_id
ANGEL_PASSWORD=your_mpin
ANGEL_TOTP_SECRET=your_base32_totp_secret
Trading mutations are guarded.
Soft limits block by default and can be overridden with force: true.
Hard limits cannot be bypassed without changing env vars and restarting the server.
Guarded operations include:
place_ordermodify_ordercreate_gtt_rulemodify_gtt_ruleconvert_positionFor MARKET orders, the server attempts LTP-based value checks before allowing the request.
For an agent-focused onboarding prompt, see docs/llm-setup.md.
Requirements:
Commands:
npm install
npm run build
npm run lint
npm run lint:fix
npm run format
npm run dev
npm start
src/index.tssrc/api.tssrc/config.tssrc/guards.tssrc/tools/index.tssrc/tools/*.tsANGEL_API_KEY*secretAngel One SmartAPI app key
ANGEL_CLIENT_ID*secretAngel One client code
ANGEL_PASSWORD*secretAngel One password or MPIN
ANGEL_TOTP_SECRET*secretBase32 TOTP secret used to generate login OTPs
SOFT_MAX_ORDER_QTYdefault: 25Soft max order quantity
HARD_MAX_ORDER_QTYdefault: 100Hard max order quantity
SOFT_MAX_ORDER_VALUEdefault: 10000Soft max order value in INR
HARD_MAX_ORDER_VALUEdefault: 100000Hard max order value in INR
com.mcparmory/google-sheets
domdomegg/google-sheets-mcp
henilcalagiya/google-sheets-mcp
cct15/war-dashboard-data
moooonad/mcp-google-sheets-full
io.github.br0ski777/csv-to-json