MCP cover image
See in Github
2025-04-01

1

Github Watches

0

Github Forks

0

Github Stars

Angle 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

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Create a .env file 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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

    Reviews

    3 (1)
    Avatar
    user_c3kmKez6
    2025-04-16

    As a dedicated user of angle-one-mcp-server, I can confidently say it's an outstanding tool for managing MCP applications. The seamless integration and comprehensive features provided by himanshuteotia make it a must-have for any developer. The detailed documentation and user-friendly interface ensure smooth operation and efficient management. Highly recommend!