https://github.com/lumif-ai/mcp-ta-tool
MCP tool to calculate TA using SSE transport layer
https://github.com/lumif-ai/mcp-ta-tool
Last synced: 3 months ago
JSON representation
MCP tool to calculate TA using SSE transport layer
- Host: GitHub
- URL: https://github.com/lumif-ai/mcp-ta-tool
- Owner: Lumif-ai
- Created: 2025-03-09T08:49:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-09T08:54:48.000Z (7 months ago)
- Last Synced: 2025-03-09T20:20:23.997Z (7 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LumiFAI MCP Technical Analysis Server
A FastMCP server that provides technical analysis tools for cryptocurrency trading data, specifically focusing on Exponential Moving Average (EMA) calculations for Binance pairs. The server defaults to SSE transport layer for communication.
## Features
- Calculate EMAs (12 and 26 periods) for cryptocurrency price data
- Real-time date and time information
- MongoDB integration for data storage and retrieval (Fetches data from DB resource which contains OHLCV data)
- SSE (Server-Sent Events) transport support## Prerequisites
- Python 3.13 or higher
- MongoDB instance
- [uv](https://github.com/astral-sh/uv) package manager## Installation
1. Clone the repository:
```bash
git clone
cd lumifai-mcp-ta
```2. Create and activate a virtual environment and install dependencies:
```bash
uv sync
```3. Set up environment variables:
Create a `.env` file in the root directory with the following content:
```env
MONGODB_URI=your_mongodb_connection_string
```## Usage
Run the server:
```bash
uv run mcp-server.py
```### Available Tools
1. `get_emas(agent_name: str, time_ago: str, interval: int, interval_frequency: str)`
- Calculates EMAs for specified cryptocurrency trading pairs
- Returns a DataFrame with fast (12-period) and slow (26-period) EMAs2. `get_date_time()`
- Returns the current date and time