Skip to main content

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

  1. Clone the repository:
git clone https://github.com/yourusername/angelone-mcp.git
cd angelone-mcp
git submodule update --init --recursive
  1. Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  1. Install the required dependencies:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install -r requirements.txt

Configuration

  1. 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

  1. You can start api.py as 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

Screenshot 2025-04-29 at 11 35 09 PM Screenshot 2025-04-29 at 11 37 03 PM

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)

Source distribution for iflow-mcp_rohandoshi21_angelone-mcp 0.1.9
File Size Uploaded
iflow_mcp_rohandoshi21_angelone_mcp-0.1.9.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_rohandoshi21_angelone-mcp 0.1.9
File Interpreter ABI Platform
iflow_mcp_rohandoshi21_angelone_mcp-0.1.9-py3-none-any.whl Python 3 none any Details

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}

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page