Provides access to Major League Baseball live scores, team information, standings, and statistics through ESPN's API
Provides access to National Basketball Association live scores, team information, standings, and player data through ESPN's API
Provides access to National Hockey League live scores, team information, standings, and statistics through ESPN's API
Provides access to English Premier League live scores, standings, and match information through ESPN's API
ESPN MCP Server ππβΎπβ½
A modern, production-ready Model Context Protocol (MCP) server that provides comprehensive access to ESPN's hidden sports APIs. Built with enhanced tool handlers, advanced parameter support, and complete coverage of all major sports leagues.
π Features
Core Capabilities
20+ Specific ESPN Endpoints - Direct access to ESPN's hidden API endpoints
Advanced Parameter Support - Date filtering, week numbers, season types, team IDs
Multi-Transport Support - STDIO and HTTP streaming with MCP compliance
Comprehensive Sports Coverage - NFL, NBA, MLB, NHL, College Sports, Soccer
Smart Routing - Automatic endpoint selection based on sport/league combinations
Enhanced Tool Schemas - Rich parameter validation and documentation
Sports Coverage
π NFL - National Football League (with week/season type filtering)
οΏ½ College Football - Division I (with rankings and game summaries)
οΏ½π NBA - National Basketball Association
π WNBA - Women's National Basketball Association
π College Basketball - Men's and Women's NCAA
βΎ MLB - Major League Baseball
βΎ College Baseball - NCAA Division I
οΏ½ NHL - National Hockey League
β½ MLS - Major League Soccer
β½ Premier League - English Premier League
β½ Champions League - UEFA Champions League
Enhanced Data Access
Live Scores with Filtering - Date-specific scores (YYYYMMDD format)
Team-Specific Data - Individual team information by abbreviation
Game Summaries - Detailed game breakdowns and statistics
College Football Rankings - Current AP and Coaches polls
Multi-League News - Sport-specific news aggregation
Historical Data - Season and career statistics
π Prerequisites
Node.js 18+ (ESM support required)
TypeScript 5.3+
npm or yarn package manager
π οΈ Installation
Quick Start
Docker Deployment
Kubernetes Deployment
π Usage
STDIO Mode (Default)
Perfect for MCP client integration:
HTTP Mode
For web applications and REST API access:
Available Endpoints (HTTP Mode)
POST /mcp- Main MCP JSON-RPC endpointGET /mcp- Server-Sent Events (SSE) streamingGET /health- Health check and capabilities
π§ Available Tools
Enhanced Sports Tools
π Live Scores with Advanced Filtering
ποΈ Team Information
π― Specific Team Details
π College Football Rankings
π Game Summary
π League Standings
π° Sports News with Multi-League Support
π Athlete Search
π Resources
Dynamic resources that update automatically:
Live Dashboard
URI:
espn://live-dashboardDescription: Real-time sports scores across all major leagues
Updates: Every 30 seconds during live games
Breaking News
URI:
espn://breaking-newsDescription: Latest breaking news from the sports world
Updates: Every 5 minutes
Trending Athletes
URI:
espn://trending-athletesDescription: Currently trending athletes and performances
Updates: Every 10 minutes
Playoff Picture
URI:
espn://playoff-pictureDescription: Current playoff standings and scenarios
Updates: Daily during playoff seasons
π€ Interactive Prompts
AI-powered sports analysis and insights:
Game Performance Analysis
Head-to-Head Comparison
Season Predictions
π§ Configuration
Environment Variables
MCP Client Configuration
For Claude Desktop or other MCP clients:
ποΈ Architecture
Modern Design Patterns
Event-Driven Architecture - Real-time updates and notifications
Intelligent Caching - Multi-level caching with automatic invalidation
Resource Subscriptions - Live data streaming to connected clients
Error Recovery - Robust error handling and retry mechanisms
TypeScript First - Full type safety and IntelliSense support
Performance Features
Request Deduplication - Prevents redundant API calls
Batch Processing - Efficient handling of multiple requests
Connection Pooling - Optimized HTTP client configuration
Memory Management - Automatic cleanup and garbage collection
π Enhanced API Examples
Advanced Live Scores
Team-Specific Data
College Football Enhancements
Multi-League News
Soccer Leagues
Resource Subscription
Interactive Prompts
π³ Docker Support
Dockerfile
Multi-stage build optimized for production:
Docker Compose
βΈοΈ Kubernetes Support
Deployment Configuration
π Monitoring & Health Checks
Health Endpoint
Response:
Logging
Structured logging with different levels:
Error: Critical failures and exceptions
Warn: Non-critical issues and degraded performance
Info: General operational messages
Debug: Detailed troubleshooting information
π€ Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Setup
Code Style
TypeScript with strict mode enabled
ESLint for code quality
Prettier for formatting
Conventional Commits for commit messages
π Security
Input Validation - All inputs validated with Zod schemas
Rate Limiting - Built-in protection against abuse
CORS Configuration - Secure cross-origin resource sharing
Error Handling - No sensitive information leaked in errors
π Performance
Benchmarks
Response Time: < 100ms for cached data
Throughput: 1000+ requests/second
Memory Usage: < 100MB typical operation
Cache Hit Rate: > 95% for live data
Optimization Tips
Use resource subscriptions for real-time data
Cache frequently accessed data locally
Batch multiple requests when possible
Monitor memory usage in long-running processes
π Troubleshooting
Common Issues
Connection Timeouts
Memory Issues
Port Conflicts
Debug Mode
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
ESPN for providing comprehensive sports data APIs
Model Context Protocol team for the excellent SDK and specification
TypeScript and Node.js communities for robust tooling
Contributors who help improve this project
π Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Email: support@dynamicendpoints.com
Built with β€οΈ by the DynamicEndpoints team
This server cannot be installed