Tabcorp MCP Server
Enterprise-grade Model Context Protocol server for comprehensive Tabcorp betting API access
๐ Quick Start โข ๐ Documentation โข ๐ ๏ธ API Reference โข ๐ Tutorials โข ๐ค Contributing
๐ Overview
Tabcorp MCP Server is a production-ready Model Context Protocol (MCP) server that provides seamless access to Tabcorp's comprehensive betting API. With 28 specialized tools across racing, sports betting, and account management, it enables developers to build sophisticated betting applications, analysis tools, and automated systems.
Live Server: https://server.smithery.ai/@bencousins22/tab-mcp/mcp
โจ Key Features
๐ Complete OAuth 2.0 Implementation - Password grant, refresh tokens, and client credentials
๐ Comprehensive Racing Data - Meetings, races, form guides, runners, pools, and jackpots
โฝ Full Sports Coverage - Soccer, basketball, tennis, AFL, NRL with live and resulted markets
๐ Real-time Odds & Markets - Fixed odds, betting pools, and dividend approximations
๐ก๏ธ Production-Ready - Error handling, validation, rate limiting, and comprehensive testing
๐ High Performance - Async/await architecture with connection pooling
๐ง Developer-Friendly - Type hints, detailed documentation, and example code
๐ฆ What's Included
28 Specialized Tools Across 6 Categories:
Category | Tools | Description |
OAuth Authentication | 3 tools | Password grant, refresh tokens, client credentials |
Racing API | 10 tools | Meetings, races, form guides, runners, pools, jackpots |
Sports API | 7 tools | Open sports, competitions, tournaments, matches |
Sports Results | 4 tools | Resulted sports, competitions, matches with dividends |
FootyTAB | 2 tools | AFL/NRL tipping competitions and rounds |
Generic API | 2 tools | Low-level GET/POST for custom endpoints |
๐ฏ Use Cases
Betting Bots - Automated value betting and risk management systems
Form Analysis - Statistical racing analysis and prediction models
Odds Comparison - Multi-market comparison and arbitrage detection
Data Analytics - Historical trends and performance tracking
Custom Applications - Build your own betting tools and dashboards
๐ Quick Start
Option 1: Use Live Hosted Server (Easiest)
Connect directly to our hosted server:
Option 2: Run Locally
1. Clone and Install
2. Configure Environment
3. Run Development Server
4. Run Tests
๐๏ธ Architecture
Key Components
FastMCP Server: Built on Smithery's FastMCP framework with session management
OAuth Manager: Automatic token refresh and credential management
Tool Layer: 28 specialized tools with validation and error handling
API Client: Async HTTP client with connection pooling and retry logic
Error Handler: Comprehensive error parsing and user-friendly messages
๐ Documentation
For Users
Getting Started Guide - Complete beginner's guide with installation and first API calls
API Reference - Comprehensive documentation of all 28 tools with examples
Tutorials (Step-by-Step Projects)
Building a Betting Bot - Complete betting analysis bot with ML and risk management
Racing Form Analysis - Statistical form analysis tool with predictions
Sports Odds Comparison - Odds comparison and arbitrage detection system
For Developers & DevOps
Deployment Guide - Production deployment procedures and rollback strategies
Testing Guide - Running tests and CI/CD workflows
Security Guide - Credential management and security best practices
DevOps Summary - Complete DevOps infrastructure overview
Contributing Guidelines - How to contribute to the project
Changelog - Version history and release notes
๐ Tutorials
1. Intelligent Betting Bot
Build a complete betting bot with form analysis, value detection, and risk management:
What you'll learn: Form analysis, value betting, risk management, database tracking, performance analytics
2. Racing Form Analyzer
Create a sophisticated form analysis tool with statistical models:
What you'll learn: Data collection, statistical analysis, prediction models, report generation
3. Sports Odds Comparison
Build an odds comparison system with arbitrage detection:
What you'll learn: Arbitrage detection, value finding, odds tracking, alert systems
๐ง Configuration
Environment Variables
Create a .env file in the project root:
Security Note: Never commit .env to version control. The file is gitignored by default.
Session Configuration
Configure per-session settings via the MCP client:
๐งช Testing
Run All Tests
Test Categories
Coverage Report
Current Coverage: 31% (baseline) | Target: 80%+
๐ Deployment
Deploy to Smithery (Recommended)
Automated deployment via GitHub Actions:
Push to
mainbranchGitHub Actions runs tests
Manual approval in Smithery UI
Auto-deploy to production
See DEPLOYMENT.md for complete deployment procedures.
Self-Hosted Deployment
๐ก๏ธ Security
Best Practices
โ Store credentials in environment variables, never in code
โ Use
.envfiles locally (gitignored)โ Rotate credentials every 90 days
โ Enable 2FA on all accounts
โ Use least-privilege principle for API scopes
โ Monitor access logs for suspicious activity
Vulnerability Reporting
Found a security issue? Please email security@example.com (do not open public issues).
See SECURITY.md for complete security policies.
๐ Performance
Benchmarks
Authentication: ~200ms (OAuth token request)
Racing Data: ~150ms (single race with form)
Sports Data: ~180ms (competition with matches)
Concurrent Requests: Supports 100+ simultaneous connections
Rate Limits: Respects Tabcorp API limits with automatic backoff
Optimization Features
Async/await for non-blocking I/O
Connection pooling for HTTP requests
Token caching to reduce auth overhead
Response caching for frequently accessed data (planned)
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for:
Development workflow and setup
Code style guidelines (Black, Ruff)
Testing requirements
Pull request process
Community guidelines
Quick Contribution Guide
๐ Changelog
See CHANGELOG.md for version history and release notes.
Latest Release: v1.0.0 (2024-10-29)
โจ Initial production release
โ 28 tools across 6 categories
โ Comprehensive testing suite
โ Complete documentation
โ CI/CD automation
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
Smithery - MCP server hosting platform
FastMCP - MCP server framework
Tabcorp - API access and documentation
All contributors and users of this project
๐ Support
Getting Help
๐ Documentation: Start with Getting Started Guide
๐ Bug Reports: Open an issue
๐ฌ Questions: GitHub Discussions
๐ง Email: support@example.com
Resources
Live Server: https://server.smithery.ai/@bencousins22/tab-mcp/mcp
Repository: https://github.com/bencousins22/tab-mcp
Smithery Dashboard: https://smithery.ai/@bencousins22/tab-mcp
MCP Protocol: https://modelcontextprotocol.io
โญ Star History
If you find this project useful, please consider giving it a star! โญ
Built with โค๏ธ for the betting community