# Angel One [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/ameernoufil/angel-one-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 315  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/angel-one

## Description
Angel One SmartAPI MCP for orders, portfolio, market data, GTT rules, charges, and margin.

## Tools
Capabilities this server exposes over MCP:

- **login** — Authenticate with Angel One SmartAPI. Auto-generates TOTP. Stores session internally.
- **logout** — End Angel One SmartAPI session and invalidate tokens.
- **get_profile** — Get Angel One user profile: name, email, mobile, exchanges, products, broker info.
- **get_holdings** — Get portfolio holdings: stocks owned, quantities, average prices, P&L, LTP.
- **get_positions** — Get open positions: intraday/carryforward, buy/sell qty, avg prices, unrealised P&L.
- **get_funds** — Get available funds and margins: cash, collateral, utilised margins, net value.
- **get_all_holdings** — Get extended portfolio holdings with total holding value, total investment, total P&L, and P&L percentage.
- **convert_position** — Convert an existing position from one product type to another (e.g. INTRADAY to DELIVERY).
- **place_order** — Place a buy/sell order on Angel One. Supports NORMAL, STOPLOSS, AMO, ROBO varieties. Returns order ID on success.
- **modify_order** — Modify an existing pending order. Change price, quantity, order type, or trigger price.
- **cancel_order** — Cancel a pending order by order ID and variety.
- **get_order_book** — Get all orders for today: pending, executed, rejected. Shows status, prices, quantities.
- **get_trade_book** — Get executed trades for today: fill prices, quantities, timestamps.
- **get_order_details** — Get detailed information for a specific order by its order ID.
- **get_ltp** — Get last traded price for a symbol. Also returns open, high, low, close.
- **search_scrip** — Search for trading instruments by name. Returns symbol tokens needed for other tools.
- **get_candle_data** — Get historical OHLCV candle data for a symbol. Intervals: ONE_MINUTE, FIVE_MINUTE, FIFTEEN_MINUTE, THIRTY_MINUTE, ONE_HOUR, ONE_DAY.
- **get_market_quote** — Get market quote data. Modes: FULL (all fields), OHLC, LTP. Pass exchange and token list.
- **get_oi_data** — Get historical Open Interest data for derivatives. Same intervals as candle data.
- **get_option_greeks** — Get option Greeks (Delta, Gamma, Theta, Vega, IV) for all strikes of a given underlying and expiry.
- **get_gainers_losers** — Get top gainers or losers by OI or price change percentage for derivatives.
- **get_put_call_ratio** — Get Put-Call Ratio data for the derivatives market.
- **get_oi_buildup** — Get OI Buildup analysis: Long Buildup, Short Buildup, Short Covering, Long Unwinding.
- **get_nse_intraday** — Get top NSE intraday movers data.
- **get_bse_intraday** — Get top BSE intraday movers data.
- **create_gtt_rule** — Create a GTT (Good Till Triggered) rule. When trigger price is hit, the order is automatically placed.
- **modify_gtt_rule** — Modify an existing GTT rule. Change price, quantity, or trigger price.
- **cancel_gtt_rule** — Cancel an existing GTT rule by ID.
- **get_gtt_rule_details** — Get details of a specific GTT rule by ID.
- **get_gtt_rule_list** — List GTT rules filtered by status. Returns paginated results.
- **estimate_margin** — Calculate margin requirements for a batch of potential orders before placing them.
- **estimate_charges** — Estimate brokerage, STT, transaction charges, GST, SEBI charges, and stamp duty for proposed trades.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "angel-one": {
    "command": "npx",
    "args": ["-y","angel-one-mcp"],
    "env": {
      "ANGEL_API_KEY": "",
      "ANGEL_CLIENT_ID": "",
      "ANGEL_PASSWORD": "",
      "ANGEL_TOTP_SECRET": "",
      "SOFT_MAX_ORDER_QTY": "",
      "HARD_MAX_ORDER_QTY": "",
      "SOFT_MAX_ORDER_VALUE": "",
      "HARD_MAX_ORDER_VALUE": ""
    }
  }
}
```

**Requires environment variables:** `ANGEL_API_KEY`, `ANGEL_CLIENT_ID`, `ANGEL_PASSWORD`, `ANGEL_TOTP_SECRET`, `SOFT_MAX_ORDER_QTY`, `HARD_MAX_ORDER_QTY`, `SOFT_MAX_ORDER_VALUE`, `HARD_MAX_ORDER_VALUE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the Angel One MCP server does

The Angel One MCP server exposes Angel One SmartAPI through Model Context Protocol tools. It covers both read and mutation workflows, including account information, trading operations, market analysis, GTT management, and trading-cost calculations.

Read operations can retrieve holdings, positions, available funds, user profile data, order and trade records, and market information. Market tools include instrument search, last traded price, quotes, candles, open interest, Greeks, movers, and put-call ratio data. Other tools estimate margin and brokerage charges.

Trading actions include placing, modifying, and cancelling orders, converting positions, and creating, changing, cancelling, listing, or inspecting GTT rules. Login and logout are also exposed through the tool set.

## How it works

The server is implemented in TypeScript and communicates with MCP clients over stdio. It calls SmartAPI directly with `fetch()` rather than depending on an Angel One SDK. When credentials are supplied, authentication is performed lazily, and the API layer refreshes tokens as needed.

Trading mutations pass through configurable safety checks. Soft quantity and value limits reject an action by default but can be overridden with `force: true`. Hard limits cannot be bypassed through a tool call; changing them requires updating the environment and restarting the process. For market orders, the server attempts to check order value using the current LTP before proceeding.

## Setup and configuration

The Angel One MCP server requires Node.js 18 or later. The simplest setup uses an MCP client configuration that runs `npx -y angel-one-mcp` with these required variables: `ANGEL_API_KEY`, `ANGEL_CLIENT_ID`, `ANGEL_PASSWORD`, and `ANGEL_TOTP_SECRET`. The TOTP value is a base32 secret, allowing the server to generate login codes automatically.

For a source installation, clone the repository, run `npm install`, copy `.env.example` to `.env`, build the project, and start it. The client should then use `build/index.js` as the server entry point. The package is also published on npm and listed in the official MCP Registry under `io.github.ameernoufil/angel-one`.

Optional safeguards are controlled by `SOFT_MAX_ORDER_QTY`, `HARD_MAX_ORDER_QTY`, `SOFT_MAX_ORDER_VALUE`, and `HARD_MAX_ORDER_VALUE`. The documented defaults are 25 and 100 for quantity, and 10,000 and 100,000 for value, respectively.

## Tools and capabilities

The Angel One MCP server groups its tools into these areas:

- Authentication: login and logout.
- Portfolio: holdings, positions, funds, and position conversion.
- Orders: placement, modification, cancellation, order-book lookup, and trade lookup.
- Market data: search, LTP, quotes, candles, open interest, Greeks, movers, and PCR.
- GTT: create, modify, cancel, list, and inspect rules.
- Calculators: margin and brokerage estimates.
- User data: profile retrieval.

## Limitations and notes

This server is intended for Angel One SmartAPI accounts and requires valid SmartAPI credentials. It is a stdio server, so the MCP client must support launching a local process or an equivalent package command. The safety guard applies to the listed trading mutations, but soft-limit overrides and any changes to hard limits should be handled deliberately because they affect whether orders can be submitted.

The README identifies Claude, Cursor, Copilot, and other MCP clients as usage targets, but the exact client configuration format may vary. An agent-focused onboarding prompt is available in the repository at `docs/llm-setup.md`.

_Full upstream README: https://allmcps.com/mcp/angel-one/readme_

