Angel 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
Metadata
Release files for iflow-mcp_rohandoshi21_angelone-mcp 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iflow_mcp_rohandoshi21_angelone_mcp-0.1.9.tar.gz | 4.4 kB | Without provenance | Details for iflow_mcp_rohandoshi21_angelone_mcp-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iflow_mcp_rohandoshi21_angelone_mcp-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for iflow_mcp_rohandoshi21_angelone_mcp-0.1.9-py3-none-any.whl |
Total release size: 12.8 kB
Release files / iflow_mcp_rohandoshi21_angelone_mcp-0.1.9.tar.gz
| Download URL | iflow_mcp_rohandoshi21_angelone_mcp-0.1.9.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f576490d376df16e05d448f901f185d973a892d856423ac94dbf430c7c84a03
|
|
BLAKE2b-256 checksum How to use checksums |
8996cba76c488ab4085f54e1c5fea767153e7b69c580806481ccc59f51f6d3f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_rohandoshi21_angelone_mcp-0.1.9-py3-none-any.whl
| Download URL | iflow_mcp_rohandoshi21_angelone_mcp-0.1.9-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
269e472d088b766c5ed95690e3a5685dfa754439db3d1769836a719ffa088289
|
|
BLAKE2b-256 checksum How to use checksums |
1010abef83978bf3a7e0a834cc31fef2cce1efca90dd415501ebd02e4f27f8b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for iflow-mcp_rohandoshi21_angelone-mcp 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.