This is a standalone server designed to deliver market data insights to AI trading agents. It processes data from external brokers and computes structured information to help LLMs and other AI systems make more informed trading decisions. Built using experience in scalable cloud systems, this project focuses on reliable data processing and delivery.
The server currently provides the following information via its API:
- Volume Profile Data: Key price levels based on where trading volume has been concentrated.
- Standard Technical Analysis Indicators: Common metrics like Moving Averages, RSI, MACD, and volatility measures.
- Technical Zones: Pre-calculated price ranges indicating potential support and resistance levels.
This server is designed to function as a tool provider for AI agents, particularly those supporting external tool use or function calling based on API specifications.
FastAPI automatically generates an API specification following the OpenAPI standard. LLM frameworks like AWS Bedrock's Converse API can be configured to use this server as a tool.
See this sample spec file -> spec.json
Follow these steps to get the server up and running:
-
Prerequisites:
- Python 3.9+
- An API Key from a supported market data broker (e.g., Twelve Data, Polygon.io). The current implementation includes fetchers for Twelve Data.
- Git
-
Clone the Repository:
git clone https://github.com/YOUR_GITHUB_USERNAME/FinancialDataMCP.git cd FinancialDataMCP -
Set up Environment:
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate` pip install -r requirements.txt
-
Run the Server:
python src/main.py # Or using FastAPI's uvicorn for development with auto-reloads # uvicorn src.main:app --reload --host 0.0.0.0 --port 8100
The server should start and listen on the configured port (default 8100).
Once the server is running, you can access the API endpoints. You can find the auto-generated API documentation (Swagger UI) at http://localhost:8100/docs in your web browser.
Planned enhancements include adding more sophisticated insights like Dealer Gamma/Delta Exposure and Smart Money Flow signals, along with performance improvements and caching.