M
MCP Trading System
MCP server by bhosaleshivam
Created 6/2/2025
Updated 4 days ago
README
Repository documentation and setup instructions
title: MCP app_file: app.py sdk: gradio sdk_version: 5.31.0
MCP Trading System
A sophisticated multi-agent trading simulation system that allows multiple AI traders to operate in a simulated market environment. The system provides real-time visualization of trading activities, portfolio performance, and market interactions.
Features
- Multiple AI traders operating simultaneously
- Real-time portfolio value tracking and visualization
- Detailed transaction history and holdings management
- Live trading logs with color-coded events
- Interactive web interface built with Gradio
- Market simulation and price updates
- Account management and transaction tracking
System Components
- Trading Interface: Web-based UI showing trader performance, holdings, and transactions
- Market Simulation: Real-time market data and price updates
- Account Management: Portfolio tracking and transaction history
- Trading Agents: AI-powered trading strategies
- Logging System: Comprehensive activity logging and monitoring
Dependencies
- gradio
- pandas
- plotly
- python-dotenv
- openai
- asyncio
- requests
- openai-agents
- polygon-api-client
Getting Started
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your environment variables (if required)
-
Run the application:
python app.py
The web interface will be launched in your default browser, showing the trading dashboard.
Project Structure
app.py
: Main application and UI componentstrading_floor.py
: Trading environment and agent managementmarket.py
: Market simulation and price updatesaccounts.py
: Account management and portfolio trackingdatabase.py
: Data persistence and loggingtraders.py
: Trading agent implementationsutil.py
: Utility functions and helpers
Monitoring
The system provides real-time monitoring of:
- Portfolio values
- Trading activities
- Market movements
- Agent decisions
- Transaction history
License
[Add your license information here]
Contributing
[Add contribution guidelines here]
Quick Setup
Installation guide for this server
Install Package (if required)
uvx mcp-trading-system
Cursor configuration (mcp.json)
{
"mcpServers": {
"bhosaleshivam-mcp-trading-system": {
"command": "uvx",
"args": [
"mcp-trading-system"
]
}
}
}