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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file technical_analysis_mcp-0.1.3.tar.gz.
File metadata
- Download URL: technical_analysis_mcp-0.1.3.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73f79d4bd0b4a624c0e4a584ba76a51dd34b82feb206b26c255635336655ebc0
|
|
| MD5 |
e9d1b90db4a6be0e545c4c328fd02695
|
|
| BLAKE2b-256 |
018e736ec6a0ff1aea51fa7264949bb05c261f479a307cda4664e064fd88c04a
|
File details
Details for the file technical_analysis_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: technical_analysis_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8ee92503775b4b8d1a6f476c5c167c7795f2cdd9cdb13a89fdf80eb8e87c470
|
|
| MD5 |
cd7ce437e28082d92b24a317cbe35b6b
|
|
| BLAKE2b-256 |
0c0088dc9534b719753882adfff86e95cc60e384d627297d6bb75a0eaca26ee7
|