About Angle One Stock MCP
Angle One Stock MCP is a server for retrieving stock history and technical indicators through the Angle One API. It is intended for MCP-compatible platforms that need OHLCV data, RSI, and moving averages.
Key features
- 01Historical OHLCV stock data
- 02Configurable history period
- 03RSI calculation
- 04EMA-20 and EMA-50 calculations
Use cases
- 01Reviewing historical prices for a symbol
- 02Checking RSI and moving averages alongside price data
MCP support
Exposes stock data and technical analysis through MCP for compatible platforms such as Cursor, Copilot, and Claude AI.
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 READMEAngle One Stock MCP
A generic MCP (Model Control Protocol) for fetching stock data and technical analysis from Angle One API. This MCP can be used with any platform that supports MCP protocol (Cursor, Copilot, Claude AI, etc.).
Features
- Fetches historical stock data (configurable period)
- Calculates technical indicators (RSI, EMA-20, EMA-50)
- RESTful API endpoints
- CORS enabled
- Written in TypeScript
- Generic MCP Integration
Prerequisites
- Node.js (v14 or higher)
- Angle One API credentials
- Any MCP-supporting platform (Cursor, Copilot, etc.)
Setup
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile in the root directory with your Angle One credentials:ANGLE_ONE_PUBLISHER_API_KEY=your_api_key_here ANGLE_ONE_CLIENT_ID=your_client_id_here ANGLE_ONE_PIN=your_pin_here ANGLE_ONE_TOTP=your_totp_secret_here PORT=3000 DATA_PERIOD_MONTHS=6 # Optional: Number of months of historical data to fetch (default: 6)
Running the Server
Development mode (with hot reload):
npm run dev
Build and run in production:
npm run build
npm start
Watch mode (for development):
npm run watch
API Endpoints
Get Stock Data and Analysis
GET /api/stock/:symbol
Example:
GET http://localhost:3000/api/stock/RELIANCE
Response includes:
- Historical data (OHLCV)
- Technical indicators (RSI, EMA-20, EMA-50)
Technical Indicators
The server calculates the following technical indicators:
- RSI (Relative Strength Index) - 14 periods
- EMA (Exponential Moving Average) - 20 and 50 periods
Configuration
Data Period
You can configure how many months of historical data you want to fetch by setting the DATA_PERIOD_MONTHS environment variable. The default is 6 months.
Example:
DATA_PERIOD_MONTHS=12 # Fetch 1 year of data
DATA_PERIOD_MONTHS=3 # Fetch 3 months of data
MCP Integration
This API is available as a generic MCP that can be used with any platform supporting the MCP protocol.
TypeScript
The project is written in TypeScript and includes type definitions for:
- API responses
- Technical indicators
- Request/Response objects
- Environment variables
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.