Trading Analysis MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Trading Analysis UI & MCP Project
Overview β instead of ##Overview
This project is a part of the MCP (Model Context Protocol) ecosystem, providing a modern web-based UI and API for uploading, processing, and analyzing trading screenshots. It leverages FastAPI for backend services and React (served via CDN) for the frontend, enabling smart file handling, trade extraction, and analytics.
MCP (Model Context Protocol): A flexible protocol and toolkit for building AI-powered, context-aware applications. This project demonstrates MCP's capabilities in the domain of trading analysis.
Trading Analysis UI: A user-friendly web interface for uploading trade screenshots, extracting trade data, and managing trade logs.
Related MCP server: MCP Data Analytics Server
Features β instead of ##Features
π Web UI: Drag & drop upload, image paste, and file management
π§ Automatic Trade Extraction: Extracts trade data from images using OCR and custom logic
π·οΈ Smart File Naming: Organizes files by trade metadata and date
π File Management: List, search, and serve uploaded/processed images
π Trade Analytics: Search logs and view trading statistics
π CORS Enabled: For easy integration with other tools
π API Documentation: Available at
/docswhen the server is running
Directory Structure
MCP/
βββ analyze_trade.py
βββ DeepSeek.py
βββ mcp_server.py
βββ mcp_trading_server.py
βββ mcp.json
βββ Ocr.py
βββ requirements.txt
βββ run_extract.py
βββ simple_mcp_server.py
βββ test_system.py
βββ trade_test.png
βββ ui_server.py # Main FastAPI server (UI & API)
βββ web_api_server.py
βββ logs/
β βββ trade_log.jsonl
βββ tools/
β βββ __init__.py
β βββ extract_trade.py # Trade extraction logic
β βββ trade.py # Trade log search & stats
βββ uploads/ # Uploaded images
βββ processed/ # Processed images (by month)
βββ static/ # Static files (UI assets)
βββ trade_logs/Setup & Installation
Clone the repository
git clone <your-repo-url>
cd MCPInstall Python dependencies
pip install -r requirements.txt(Optional) Configure environment variables
If you use a .env file, place it in the project root.
Run the UI server
python ui_server.pyThe server will start at http://localhost:8003
Usage
Web UI
Open http://localhost:8003 in your browser
Drag & drop or paste trading screenshots to upload and analyze
View processed images and trade logs
API Endpoints
POST /extract-trade-uploadβ Upload and process an imagePOST /extract-tradeβ Extract trade data from an existing image pathPOST /search-tradesβ Search trade logsGET /trading-statsβ Get trading statisticsGET /list-imagesβ List all available imagesGET /trade-logβ Get raw trade log contentGET /file-structureβ Get organized file structureGET /uploads/{filename}β Serve uploaded filesGET /processed/{date_folder}/{filename}β Serve processed files
API documentation is available at http://localhost:8003/docs
Example: Upload and Extract Trade Data
curl -F "file=@trade_test.png" http://localhost:8003/extract-trade-uploadExtending & Customizing
Trade Extraction Logic: Edit
tools/extract_trade.pyto improve OCR or parsing.Trade Analytics: Edit
tools/trade.pyfor custom search/statistics.UI Customization: The UI is served as a React app via CDN; you can replace the HTML template in
ui_server.pyfor a custom frontend.
Credits
Nischal Bhandari
Built with FastAPI, React, and Tailwind CSS
Part of the Model Context Protocol (MCP) project
MCP
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Zenrows MCP server: Fetch, Extract, Batch, and Browser Sessions for AI agents
Document-to-Markdown MCP server β convert PDF, Office and HTML into LLM-ready Markdown.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Invoices and other financial documents to rows: upload, say what to extract, read the rows.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server that captures TradingView chart images via Selenium β supports any ticker/interval with browser pooling for concurrent performance104MIT
- AlicenseNot gradedqualityDmaintenanceA FastMCP-based server that provides data analysis tools for processing, analyzing, and visualizing data with an intuitive Streamlit web interface.2MIT
- AlicenseAqualityDmaintenanceMCP server for vision AI β screenshots to code, OCR, error diagnosis, and image analysis via OpenAI-compatible APIs.82MIT
- FlicenseNot gradedqualityBmaintenanceA comprehensive MCP server that integrates TradingView Desktop automation, screener API, Yahoo Finance, IDX/BEI tools, backtesting, news sentiment, trade math, and market sessions. It enables traders to perform technical analysis, backtest strategies, manage positions, and automate TradingView tasks through natural language.-