Angel One MCP Server
Provides comprehensive trading and market data functionality for Indian equity markets through Angel One's SmartAPI, enabling portfolio management, order placement, and real-time data queries.
README
Angel One MCP Server
Angel One Limited (formerly Angel Broking Limited) is India's leading stockbroker firm established in 1996, serving over 24.7 million clients across major Indian stock exchanges including BSE and NSE. This server provides access to Indian equity markets, commodities, and derivatives trading.
A Model Context Protocol (MCP) server that provides comprehensive trading and market data functionality for Angel One through their SmartAPI.
Features
Portfolio Management
- View stock holdings and investment portfolio
- Get comprehensive family account holdings
- Check current trading positions
- Access Risk Management System (RMS) limits
Trading Operations
- Place buy/sell orders (market, limit, stop-loss)
- Modify existing orders
- Cancel orders
- View order book and trade history
- Create GTT (Good Till Triggered) rules
Market Data
- Real-time Last Traded Price (LTP)
- Historical candlestick (OHLC) data
- Search for stocks and instruments
- Top gainers/losers analysis
- Put-Call Ratio (PCR) for market sentiment
Advanced Features
- Option Greeks calculation
- Position conversion
- Brokerage estimation
- Automated authentication with TOTP
- Comprehensive error handling
- Safety controls and dry-run mode
Installation
Development Installation (Current)
# Clone the repository
git clone https://github.com/YOUR_USERNAME/angel-one-mcp-server.git
cd angel-one-mcp-server
# Install dependencies
pip install -r requirements.txt
# Install in development mode
pip install -e .
PyPI Installation (Coming Soon)
pip install angel-one-mcp
Configuration
You can configure your Angel One credentials using either of these approaches:
Option 1: Environment Variables (Recommended)
Create a .env file in your project directory:
ANGEL_ONE_API_KEY=your_api_key
ANGEL_ONE_CLIENT_CODE=your_client_code
ANGEL_ONE_PASSWORD=your_password
ANGEL_ONE_TOTP_SECRET=your_totp_secret
MAX_ORDER_QUANTITY=10000
DRY_RUN_MODE=false
Then configure Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"angel-one-trading": {
"command": "python",
"args": ["-m", "angel_one_mcp.server"]
}
}
}
Option 2: Direct Configuration
Configure credentials directly in Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"angel-one-trading": {
"command": "python",
"args": ["-m", "angel_one_mcp.server"],
"env": {
"ANGEL_ONE_API_KEY": "your_api_key",
"ANGEL_ONE_CLIENT_CODE": "your_client_code",
"ANGEL_ONE_PASSWORD": "your_password",
"ANGEL_ONE_TOTP_SECRET": "your_totp_secret"
}
}
}
}
Note: Option 1 is recommended as it keeps sensitive credentials separate from configuration files.
Usage Examples
Portfolio Management
- "Show my current holdings"
- "What's my available margin?"
- "Display my open positions"
Trading
- "Buy 100 shares of RELIANCE at market price"
- "Place a limit order to sell 50 TCS at ₹3500"
- "Cancel order ID 12345"
Market Data
- "What's the current price of NIFTY?"
- "Show me top gainers today"
- "Get historical data for SBIN"
Security Features
- Automatic TOTP-based authentication
- Configurable order quantity limits
- Dry-run mode for testing
- Comprehensive error handling
- No credential storage in memory
Requirements
- Python 3.8+
- Angel One SmartAPI account
- Valid API credentials and TOTP setup
License
MIT License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.