Skip to main content

A Python package for technical analysis of financial markets

Project description

Technical Indicator Analysis Tool

This tool provides mcp server for analyzing technical indicators of ETFs and stocks. It utilizes the akshare library to fetch historical data and calculates technical indicators such as RSI, Bollinger Bands, and moving averages. The tool supports both ETF and stock historical data analysis.

API Documentation

Interfaces provided with mcp server:

analyze_etf_technical

@mcp.tool()
def analyze_etf_technical(etf_code='510300'):
    """
    ETF technical indicator analysis tool
    :param etf_code: ETF code (e.g. '510300')
    :return: Markdown table containing technical indicators (last 5 records)
    """

Parameters:

  • etf_code: ETF code, defaults to '510300'(CSI 300 ETF)

Returns:

  • Markdown table containing following technical indicators:
    • Price data
    • RSI indicator
    • Bollinger Bands
    • Moving averages

Example:

result = analyze_etf_technical('510300')
print(result)

analyze_stock_hist_technical

@mcp.tool()
def analyze_stock_hist_technical(stock_code='000001'):
    """
    Stock historical data technical indicator analysis tool
    :param stock_code: Stock code (e.g. '000001')
    :return: Markdown table containing technical indicators (last 5 records)
    """

Parameters:

  • stock_code: Stock code, defaults to '000001'(Ping An Bank)

Returns:

  • Markdown table containing following technical indicators:
    • Price data
    • RSI indicator
    • Bollinger Bands
    • Moving averages

Example:

result = analyze_stock_hist_technical('000001')
print(result)

Installation

pip install technical-analysis-mcp

MCP Configuration Example

{
  "mcpServers": {
    "technical-analysis-mcp": {
      "command": "technical-analysis-mcp",
      "args": []
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

technical_analysis_mcp-0.1.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

technical_analysis_mcp-0.1.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file technical_analysis_mcp-0.1.3.tar.gz.

File metadata

File hashes

Hashes for technical_analysis_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 73f79d4bd0b4a624c0e4a584ba76a51dd34b82feb206b26c255635336655ebc0
MD5 e9d1b90db4a6be0e545c4c328fd02695
BLAKE2b-256 018e736ec6a0ff1aea51fa7264949bb05c261f479a307cda4664e064fd88c04a

See more details on using hashes here.

File details

Details for the file technical_analysis_mcp-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for technical_analysis_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c8ee92503775b4b8d1a6f476c5c167c7795f2cdd9cdb13a89fdf80eb8e87c470
MD5 cd7ce437e28082d92b24a317cbe35b6b
BLAKE2b-256 0c0088dc9534b719753882adfff86e95cc60e384d627297d6bb75a0eaca26ee7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page