
Angel One
io.github.ameernoufilPublished by GitHub account ameernoufilv1.0.10Updated Oct 24, 2026
Angel One SmartAPI MCP for orders, portfolio, market data, GTT rules, charges, and margin.
Overview
Lets an assistant trade and inspect an Angel One SmartAPI account: orders, portfolio, market data, GTT rules, and margin estimates.
- What you can do
- A local stdio MCP server for Angel One SmartAPI. It covers authentication (login/logout), portfolio reads (holdings, positions, funds, position conversion), order actions (place, modify, cancel, order book and trade lookups), market data (search, LTP, quotes, candles, open interest, Greeks, movers, PCR), GTT rules (create, modify, cancel, list, inspect), and margin and brokerage calculators. It logs in lazily, refreshes tokens, and generates TOTP codes from a base32 secret.
- When to use it
- Use it when an assistant should work with an Angel One trading account: checking holdings, positions, and funds, pulling quotes and candles, or placing and managing orders and GTT rules from a chat client. It is aimed at personal trading workflows rather than read-only market research.
- Requirements
- Runs locally over stdio, typically via npx from the npm package angel-one-mcp, or from source with Node.js 18+. Requires an Angel One SmartAPI app key, client code, password or MPIN, and a base32 TOTP secret, supplied as the environment variables ANGEL_API_KEY, ANGEL_CLIENT_ID, ANGEL_PASSWORD, and ANGEL_TOTP_SECRET. Optional order-size and order-value limits are set by environment variables. Network access to Angel One is needed.
Installation
In SourceWeft
- Open Angel One in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Angel One MCP Server
TypeScript Model Context Protocol server for Angel One SmartAPI.
Use it from Claude, Cursor, Copilot, or any MCP client to:
- place and manage orders
- read holdings, positions, and funds
- fetch market data, candles, OI, Greeks, and movers
- manage GTT rules
- estimate charges and margin
Highlights
- Direct
fetch()integration. No Angel One SDK dependency. - Auto TOTP generation from your base32 secret.
- Lazy login with token refresh in API layer.
- Safety guard for trading mutations with soft and hard limits.
- stdio MCP server. Works well with
npx.
Discoverability
- npm package:
angel-one-mcp - Official MCP Registry:
io.github.ameernoufil/angel-one - GitHub repo:
ameernoufil/angel-one-mcp
If 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.
Quick Start
Option A: Use with npx (recommended)
Add this to your MCP client config:
Option B: Run from source
If running from source, point your MCP client to build/index.js.
Environment Variables
Required:
ANGEL_API_KEYANGEL_CLIENT_IDANGEL_PASSWORDANGEL_TOTP_SECRET
Optional safety limits:
SOFT_MAX_ORDER_QTYdefault25HARD_MAX_ORDER_QTYdefault100SOFT_MAX_ORDER_VALUEdefault10000HARD_MAX_ORDER_VALUEdefault100000
Example .env:
Safety Model
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_position
For MARKET orders, the server attempts LTP-based value checks before allowing the request.
Tool Coverage
- Auth: login and logout
- Portfolio: holdings, positions, funds, conversion
- Orders: place, modify, cancel, book lookup, trade lookup
- Market: search, LTP, quotes, candles, OI, Greeks, movers, PCR
- GTT: create, modify, cancel, list, inspect
- Calculator: margin and brokerage estimates
- User: profile
For an agent-focused onboarding prompt, see docs/llm-setup.md.
Development
Requirements:
- Node.js 18+
Commands:
Architecture Notes
- Entry point:
src/index.ts - API client and auth flow:
src/api.ts - Config and safety limits:
src/config.ts - Order guard:
src/guards.ts - Tool registration:
src/tools/index.ts - Tool implementations:
src/tools/*.ts
License
Source: README.md at commit c5b9081
Tools
0Version history
1- v1.0.10LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts