Angel One MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Angel One MCP ServerWhat is the LTP of RELIANCE on NSE?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Angel One MCP Server
Angel One SmartAPI integration for AI trading agents (MCP Tool Server).
This provides a secure HTTP-based interface for AI systems (Claude, Grok, custom agents) to interact with Angel One brokerage for live data, portfolio, and order placement.
Features (v0.1)
SmartAPI authentication with TOTP support (auto-generate if secret provided)
Tools: login, get_ltp, get_holdings, get_positions, place_order (with dryRun safety)
Protected MCP endpoint with secret key (x-mcp-key header)
Auto token refresh attempt on 401
Ready for deployment to get a public URL (Render, Railway, etc.)
Related MCP server: Kite MCP Server
Prerequisites
Angel One Demat account
Enable SmartAPI access and generate API Key from https://smartapi.angelone.in/
Enable TOTP authentication in your Angel One account (for secure API login)
Note your Client ID, Password/PIN, and TOTP secret key (from authenticator setup)
Quick Start (Local)
# 1. Clone the repo
git clone https://github.com/tamil3yashni-ship-it/angel-one-mcp-server.git
cd angel-one-mcp-server
# 2. Setup environment
cp .env.example .env
# Edit .env with your credentials (see below)
# 3. Install dependencies
npm install
# 4. Run
npm startServer runs on http://localhost:3000 by default.
Environment Variables (.env)
Copy from .env.example and fill:
ANGEL_CLIENT_CODE=AB1234 # Your Angel One Client ID
ANGEL_PASSWORD=your_trading_pin
ANGEL_TOTP_SECRET=JBSWY3DPEHPK3PXP # Optional but recommended - Base32 secret from TOTP setup
ANGEL_API_KEY=your_api_key_from_smartapi_portal
MCP_API_KEY=change_this_to_a_strong_secret_for_ai_access
PORT=3000Security: Never commit .env file. Use strong unique MCP_API_KEY.
Deployment for Public URL
Push to GitHub (already done)
Connect repo to Render.com or Railway.app (free tiers available for Node.js)
Set all environment variables in the hosting platform dashboard
Deploy
Your MCP URL will be something like: https://angel-one-mcp-server.onrender.com/mcp/invoke
After deployment, test with curl or integrate into your AI prompt.
MCP Integration for AI Agents
Configure your AI tool (Claude Desktop, Cursor, or custom) with:
MCP Server URL: https://your-deployed-url.com/mcp/invoke
Auth Header: x-mcp-key = your_MCP_API_KEY value
The AI can then discover and call tools like:
login (if needed)
get_ltp
get_holdings
place_order (use dryRun first!)
Example invoke body:
{
"tool": "get_ltp",
"args": {
"exchange": "NSE",
"tradingsymbol": "RELIANCE",
"symboltoken": "2885"
}
}Available Tools
See server.js for handler details and update as needed. Core tools:
login: Authenticates and establishes session. Args: { "password": "...", "totp": "123456" } (or uses env/TOTP_SECRET)
get_ltp: Fetch last traded price. Requires accurate symboltoken (download symbol master from Angel if needed).
get_holdings: Current share holdings.
get_positions: Open positions.
place_order: Execute trade. HIGH RISK - Always test with dryRun: true first. Real money at stake.
Important Notes & Customization
API Endpoints: The endpoints in server.js (e.g. /rest/secure/angelbroking/...) are based on common SmartAPI patterns. Verify and correct them using official documentation or by cross-testing with the official Python SDK (https://github.com/angel-one/smartapi-python).
Add more tools as needed: orderbook, tradebook, historical candles, margin calculator, etc.
For production: Add request logging, rate limiting (e.g. express-rate-limit), IP whitelisting, and order confirmation workflow.
Token expiry: The server attempts re-login on 401. Improve with proper refresh token flow if needed.
This is a starting template tailored for your trading automation needs.
Support
For issues with Angel One API, refer to https://smartapi.angelone.in/ or their forum. For MCP integration or prompt engineering with this server, provide feedback.
Built for reliable AI-assisted trading on Angel One.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/tamil3yashni-ship-it/angel-one-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server