Angel One MCP (Model Context Protocol)
LocalAbout Angel One MCP (Model Context Protocol)
An MCP server for Angel One trading account users that accesses its trading APIs to retrieve historical and portfolio data. It requires Python 3.10, an Angel One account, and API credentials.
Key features
- 01Retrieve trading history
- 02Retrieve portfolio data
- 03Call trading APIs through an MCP client
Use cases
- 01Review Angel One account history
- 02Check an Angel One portfolio
MCP support
Run as an MCP server, it lets MCP clients interact with Angel One trading APIs to retrieve historical and portfolio data.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEAngel One MCP (Model Context Protocol)
This repository contains the Model Context Protocol implementation for Angel One trading platform, allowing you to interact with Angel One's trading APIs to get history data and get portfolio data.
Prerequisites
- Python 3.10
- Angel One trading account
- API credentials from Angel One
Installation
- Clone the repository:
git clone https://github.com/yourusername/angelone-mcp.git
cd angelone-mcp
git submodule update --init --recursive
- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install the required dependencies:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install -r requirements.txt
Configuration
- Create a test_credentials.py file in the root directory with your Angel One credentials:
# test_credentials.py
API_KEY = "your_api_key"
CLIENT_CODE = "your_client_code"
PASSWORD = "your_password"
PIN = "your_pin"
TOKEN = "your_token" # Optional
Usage
- You can start
api.pyas an mcp server to your mcp client
{
"mcp": {
"servers": {
"angleone": {
"command": "/Users/rohandoshi/.local/bin/uv",
"args": [
"--directory",
"/Users/rohandoshi/Development/angelone-mcp",
"run",
"api.py"
]
},
}
}
}
Results
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.