Angel One SmartAPI MCP for orders, portfolio, market data, GTT rules, charges, and margin.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y angel-one-mcp
MCP client config
{
"mcpServers": {
"angel-one": {
"command": "npx",
"args": [
"-y",
"angel-one-mcp"
]
}
}
}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/*.ts