Angel One Mcp
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.
Related MCP server: Upstox MCP Server
Discoverability
npm package:
angel-one-mcpOfficial MCP Registry:
io.github.ameernoufil/angel-oneGitHub 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:
{
"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"
}
}
}
}Option B: Run from source
git clone https://github.com/ameernoufil/angel-one-mcp.git
cd angel-one-mcp
npm install
cp .env.example .env
npm run build
npm startIf 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:
ANGEL_API_KEY=your_smartapi_key
ANGEL_CLIENT_ID=your_client_id
ANGEL_PASSWORD=your_mpin
ANGEL_TOTP_SECRET=your_base32_totp_secretSafety 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:
npm install
npm run build
npm run lint
npm run lint:fix
npm run format
npm run dev
npm startArchitecture Notes
Entry point:
src/index.tsAPI client and auth flow:
src/api.tsConfig and safety limits:
src/config.tsOrder guard:
src/guards.tsTool registration:
src/tools/index.tsTool implementations:
src/tools/*.ts
License
This server cannot be installed
Maintenance
Related MCP Servers
- -license-quality-maintenanceAn MCP server implementation that integrates with Angle One APIs to provide standardized access to financial market data, trading operations, and portfolio management.Last updated
- Flicense-qualityDmaintenanceA lightweight, plugin-based MCP server for trading and fund analysis using Upstox APIs.Last updated5
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants to interact with the DhanHQ trading platform, providing access to holdings, orders, trade history, and token renewal via DhanHQ APIs.Last updatedMIT
- Flicense-qualityCmaintenanceAn MCP server for the Groww trading platform. This enables LLM applications to interact with your Groww trading account.Last updated4
Related MCP Connectors
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ameernoufil/angel-one-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server