š Tiger MCP System
Professional-grade Model Context Protocol (MCP) server for Tiger Brokers API integration with Claude AI
Connect Claude AI directly to Tiger Brokers for AI-powered trading, portfolio management, and market analysis. Features 22 MCP tools, REST API access, and enterprise-grade security.
ā” Quick Installation
Install from GitHub (Recommended)
Use with Claude Code
Install:
pip install git+https://github.com/your-username/tiger-mcp.git
Configure
.mcp.json
with your Tiger API credentialsRestart Claude Code
Start trading: "Show me my Tiger Brokers portfolio"
Use as REST API
⨠Key Features
š¤ AI-Native Trading
Claude AI Integration: Direct MCP protocol support for conversational trading
Natural Language Processing: Execute trades using natural language commands
Intelligent Analysis: AI-powered market analysis and portfolio optimization
Risk Management: Automated risk assessment and position sizing
š Real-Time Market Data
Live Market Feeds: Real-time quotes, order books, and market depth
Historical Analysis: Comprehensive historical data with technical indicators
Market Scanning: Advanced screening and filtering capabilities
Global Markets: Support for US, HK, SG markets and more
ā” High-Performance Trading
Sub-second Execution: Optimized order routing and execution
Portfolio Management: Real-time position tracking and P&L monitoring
Risk Controls: Built-in risk management and compliance checks
Scalable Architecture: UV workspace with modern async/await patterns
š”ļø Enterprise Security
Encrypted Communication: TLS/SSL encryption for all data transmission
Secure Authentication: Tiger Brokers OAuth2 with refresh token management
Audit Logging: Comprehensive logging for compliance and debugging
Production Ready: Docker containerization with health checks
š Quick Start
Prerequisites
Python 3.11+ with UV package manager
Docker & Docker Compose for containerized deployment
Tiger Brokers Account with API access (Apply here)
Claude Desktop or Claude API access
ā” 30-Second Setup
š§ Configuration
Edit .env
with your Tiger Brokers credentials:
ā ļø Security Note: Never commit real credentials to version control. Use
.env
file for local development and secure environment variables for production.
š¤ Claude AI Integration
Tiger MCP supports both Claude Desktop and Claude Code with comprehensive trading capabilities.
Claude Desktop Configuration
Add Tiger MCP to your Claude Desktop configuration (~/.config/claude/config.json
):
Claude Code Integration
For Claude Code users, Tiger MCP provides enhanced development and trading workflows:
Claude Code Features:
Code-Driven Trading: Generate and execute trading algorithms
Portfolio Analysis: Automated portfolio analysis and reporting
Strategy Development: Backtest and optimize trading strategies
Risk Management: Code-based risk analysis and position sizing
Multi-Account Operations: Manage multiple Tiger accounts programmatically
šÆ Example Conversations
General Trading (Claude Desktop & Claude Code):
Multi-Account Trading:
Claude Code Advanced Usage:
š ļø Available Tools & Capabilities
Tool | Description | Use Case |
| Account details and balances | Portfolio overview |
| Holdings and P&L analysis | Performance tracking |
| Real-time quotes and data | Market analysis |
| Execute trading orders | Order management |
| Market screening tools | Stock discovery |
| Historical price data | Backtesting |
| Technical analysis | Chart analysis |
š Documentation
š Getting Started
Quick Start Guide - Get up and running in 30 minutes
Claude Code Integration - Complete Claude setup guide
Tiger Authentication - API credential configuration
š§ Development
Development Guide - Technical details and workspace management
Architecture Overview - System design and components
API Reference - Complete MCP tools documentation
š Deployment
Production Deployment - Production setup and best practices
Docker Guide - Containerization and orchestration
Security Guide - Security guidelines and best practices
šÆ Use Cases
š¼ Portfolio Management
Real-time portfolio tracking and performance analysis
Automated rebalancing and risk management
Multi-account portfolio consolidation
Tax-loss harvesting optimization
š Algorithmic Trading
Strategy backtesting with historical data
Automated order execution based on technical indicators
Custom alert systems for market opportunities
High-frequency trading with sub-second latency
š Market Research
Advanced market scanning and stock screening
Fundamental and technical analysis automation
Sector rotation and correlation analysis
Options strategy analysis and optimization
š¤ AI-Powered Insights
Natural language queries for market data
Automated report generation and analysis
Risk assessment and scenario modeling
Intelligent trade recommendations
šļø Architecture
Tiger MCP is built using a modern, scalable architecture:
MCP Server: FastMCP-based server with async/await patterns
Database: PostgreSQL with async SQLAlchemy for data persistence
Caching: Redis for high-performance data caching
Security: JWT authentication with encrypted credentials storage
Monitoring: Comprehensive logging and health check endpoints
š¤ Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Process
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature
)Commit your changes (
git commit -m 'Add amazing feature'
)Push to the branch (
git push origin feature/amazing-feature
)Open a Pull Request
Code Standards
Python: Black formatting, type hints, docstrings
Testing: Minimum 80% test coverage required
Documentation: Update docs for any new features
Security: Follow security best practices
š License
This project is licensed under the MIT License - see the LICENSE file for details.
ā ļø Disclaimer
Important: This software is for educational and research purposes. Trading financial instruments involves substantial risk and may not be suitable for all investors. Past performance does not guarantee future results. Always consult with financial professionals before making investment decisions.
š Support & Community
š§ Issues: GitHub Issues
š Documentation: Full Documentation
šÆ Discussions: GitHub Discussions
š Bug Reports: Use the bug report template
š” Feature Requests: Use the feature request template
š Acknowledgments
Tiger Brokers for providing robust API services
Anthropic for Claude AI and MCP protocol
FastMCP for the excellent MCP framework
UV for modern Python package management
ā Star this repository if you find it useful!
Built with ā¤ļø for the trading and AI community
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables trading and market analysis through Tiger Brokers API integration. Provides real-time market data, portfolio management, order execution, and technical analysis tools with a comprehensive web dashboard for monitoring.
Related MCP Servers
- -securityAlicense-qualityProvides tools for interacting with the Alpaca Trading API, enabling trading operations like getting account information, placing/canceling orders, listing positions, and accessing market data.Last updated -MIT License
Twelve Data MCP Serverofficial
AsecurityAlicenseAqualityProvides integration with Twelve Data API to access financial market data including historical time series, real-time quotes, and instrument metadata for stocks, forex pairs, and cryptocurrencies.Last updated -3534MIT License- -securityFlicense-qualityEnables real-time stock market analysis through AKShare API integration. Supports retrieving live stock prices, historical data, technical indicators (MA, MACD, RSI), market sentiment analysis, stock search, and financial news.Last updated -4
- AsecurityFlicenseAqualityEnables AI assistants to interact with IG Trading API for forex, indices, and commodities trading. Provides 21 tools for account management, position trading, order placement, market data analysis, and watchlist management.Last updated -21111