What is MCP?
Model Context Protocol (MCP) is an open protocol that enables AI assistants to interact with external tools and data sources. With our MCP integration, you can ask your AI coding assistant questions like:
“Get the current Premier League standings”
And it will automatically call the correct SportsAPI Pro endpoint with the right parameters!
Supported AI Clients
Our MCP server works with any MCP-compatible AI client:
Client Support Cursor ✅ Full support Windsurf ✅ Full support Claude Desktop ✅ Full support VS Code + Continue ✅ Full support Any MCP client ✅ Full support
Supported Sports
All 25 sports are supported using the V2 Enhanced API by default. All shared tools accept an optional sport parameter (defaults to 'football').
Category Sports Major Sports Football, Basketball, Tennis, Hockey, Cricket, Baseball Team Sports American Football, Rugby, Handball, Volleyball, Beach Volleyball, Water Polo, Aussie Rules Combat & Motorsport MMA, Motorsport, Cycling Racquet & Cue Table Tennis, Badminton, Snooker, Darts Indoor & Ice Futsal, Minifootball, Floorball, Bandy, Esports
All tools route through the V2 Enhanced API:
https://v2.{sport}.sportsapipro.com
A small number of sport-specific tools (e.g. get_player_stats, get_transfers) still use the legacy V1 API internally for football and basketball. No action is needed from users — the MCP server handles routing automatically.
Quick Setup
Step 1: Get Your API Key
Sign up at sportsapipro.com
Go to your Dashboard
Copy your API key
Add the following to your AI client’s MCP configuration:
Cursor Claude Desktop
Alternative (Direct URL)
{
"mcpServers" : {
"SportsApiPro" : {
"command" : "npx" ,
"args" : [
"-y" ,
"mcp-remote" ,
"https://mcp.sportsapipro.com/mcp?sportsapiproApiKey=YOUR_API_KEY"
]
}
}
}
Replace YOUR_API_KEY with your actual API key.
Configuration File Locations
Client Config File Path Cursor ~/.cursor/mcp.jsonWindsurf ~/.codeium/windsurf/mcp_config.jsonClaude Desktop (Mac) ~/Library/Application Support/Claude/claude_desktop_config.jsonClaude Desktop (Windows) %APPDATA%\Claude\claude_desktop_config.jsonVS Code + Continue .continue/config.json in your project
Once connected, your AI assistant can use 45+ tools organized into categories. All shared tools use the V2 Enhanced API for richer, more detailed data:
These tools help AI agents understand the API and generate code:
Tool Description Example Query get_api_documentationGet complete docs for any endpoint ”How do I use the results endpoint?” get_code_templateGet React/TypeScript code templates ”Give me code for a results page” get_image_url_patternGet image URL construction patterns ”How do I show team logos?” get_full_api_referenceGet all endpoints summary ”What endpoints are available?”
These tools work across all 25 sports using the V2 Enhanced API via the sport parameter:
Tool Description Example Query get_live_scoresGet currently live matches ”What games are happening now?” get_fixturesGet upcoming matches ”Show me tomorrow’s Premier League games” get_resultsGet completed match results ”What were yesterday’s La Liga results?” get_standingsGet league tables ”Show me the Serie A standings” get_match_detailsGet full match info ”Get details for game ID 12345” get_game_statsGet detailed match statistics ”Show me the box score for game 12345” get_game_commentaryGet play-by-play commentary ”Get the live commentary for Liverpool vs Arsenal” get_game_highlightsGet video highlights ”Show me Man City’s recent video highlights” get_game_predictionsGet match predictions ”What are the predictions for this match?” get_related_gamesGet suggested games ”What games are similar to this match?” get_head_to_headGet H2H history ”Liverpool vs Man United head to head” searchSearch teams/players/competitions ”Find Manchester United’s team ID” get_betting_oddsGet betting lines ”What are the odds for the Lakers game?” get_betting_trendsGet betting trends ”What are the betting trends for today?” get_outright_oddsGet futures/outrights ”Who’s the favorite to win the Premier League?” get_teaser_betsGet teaser bet lines ”Get teaser bets for game 12345” get_account_statusCheck API usage ”How many API calls have I made today?” get_competitionsList available leagues ”Show me all available football leagues” get_featured_competitionsGet featured/popular leagues ”What are the top football leagues?” get_competition_detailsGet competition metadata ”Get details for the Premier League” get_competitor_detailsGet team statistics ”Get Arsenal’s detailed stats” get_team_formGet team’s recent form ”How is Liverpool performing lately?” get_top_teamsGet popular teams ”Show me the most popular teams” get_tournament_bracketsGet knockout brackets ”Show me the EFL Cup bracket for Man City” get_athlete_lineupsGet match lineups ”Show me the starting lineups for game 12345” get_related_entitiesGet related entities ”What’s related to the Premier League?” get_newsGet latest sports news ”Get latest Premier League news” get_countriesList countries with leagues ”What countries have football leagues?” get_sportsList available sports ”What sports does the API support?” get_common_idsGet reference IDs ”Show me common team and league IDs” get_supported_sportsList all 25 supported sports ”What sports does SportsAPI Pro support?”
Tool Description Example Query get_player_statsGet player statistics ”Show me Haaland’s stats this season” get_player_next_gameGet player’s next match ”When does Salah play next?” get_player_gamesGet player’s match history ”Get Haaland’s last 10 games with stats” get_player_chart_eventsGet player events for charts ”Show me Salah’s goal timeline” get_transfersGet transfer news ”Show me latest transfer news” get_top_athletesGet top-rated players ”Who are the top rated players?” get_team_squadGet team roster ”Show me Liverpool’s squad”
Tool Description Example Query get_player_propsGet player prop bets ”Get player props for tonight’s Lakers game” get_predictionsGet AI predictions ”Predict the Celtics vs Heat game”
The v2_get_live_matches, v2_get_today_matches, and v2_search tools have been merged into the shared tools above (get_live_scores, get_fixtures, search). The v2_get_match_details and v2_get_standings tools remain available for V2-specific parameter options (e.g. requesting lineups, incidents, shotmap in a single call).
Tool Description Example Query get_historical_seasonsDiscover available seasons ”What seasons are available for La Liga?” get_season_resultsGet a specific season’s data ”Get the 2022-23 Premier League standings”
Common Entity IDs
The AI agent has access to a resource with common IDs. Here are some frequently used ones:
Competition ID Premier League 7 La Liga 8 Serie A 17 Bundesliga 35 Ligue 1 24 Champions League 572 Europa League 573 World Cup 16
Basketball Competitions
Competition ID NBA 132 WNBA 2004 EuroLeague 138 NCAA Men’s 2065
Tennis Competitions
Competition ID ATP Tour 225 WTA Tour 226 Australian Open 227 French Open 228 Wimbledon 229 US Open 230
Hockey Competitions
Competition ID NHL 207 KHL 208 SHL (Sweden) 209 Liiga (Finland) 210
You don’t need to memorize IDs! Just ask the AI to search for a team or competition by name, and it will find the ID for you.
Example Conversations
Get Live Scores
You: “What Premier League games are on right now?”
AI: Uses get_live_scores tool with sport=“football”, competition_id=7
{
"games" : [
{
"id" : 4521234 ,
"homeCompetitor" : { "name" : "Liverpool" , "score" : 2 },
"awayCompetitor" : { "name" : "Arsenal" , "score" : 1 },
"gameTime" : 67 ,
"statusText" : "2nd Half"
}
]
}
Get NHL Standings
You: “Show me the current NHL standings”
AI: Uses get_standings tool with sport=“hockey”, competition_id=207
Get Tennis Live Scores
You: “Any tennis matches happening right now?”
AI: Uses get_live_scores tool with sport=“tennis”
Get Match Lineups
You: “Show me the starting lineups for match 12345”
AI: Uses get_athlete_lineups tool with game_id=12345
Get Player Match History
You: “Get Haaland’s last 10 games with stats”
AI: Uses get_player_games tool with athlete_id=934235 and num_of_games=10
Get Standings
You: “Show me who’s top of La Liga”
AI: Uses get_standings tool with competition_id=8
Find a Team ID
You: “What’s Real Madrid’s team ID?”
AI: Uses search tool with query=“Real Madrid”
Response: “Real Madrid’s team ID is 86”
Check Your Usage
You: “How many API calls do I have left today?”
AI: Uses get_account_status tool
Response: “You’ve used 245 of your 7,500 daily requests. 7,255 remaining.”
Code Generation Examples
The MCP server includes documentation and code templates that enable AI agents to generate production-ready code.
Build a Results Page
You: “Create a page showing yesterday’s UEFA Champions League results with team logos”
AI workflow:
Uses get_api_documentation to learn about the results endpoint (V2 Enhanced API)
Uses get_common_ids to find Champions League ID (572)
Uses get_image_url_pattern to understand image URLs
Uses get_code_template with template_name=“results-page”
Generates customized React component with date filtering
Available Code Templates
Template Description results-pageMatch results with team logos, date filtering, pagination standings-tableLeague table with team logos and full stats live-scoresReal-time live scores with auto-refresh match-cardSingle match card for any status fixtures-listUpcoming fixtures grouped by date api-hookReusable React hook for any endpoint
Ask the AI to combine templates or customize them for your specific needs. For example: “Take the results-page template and add a competition selector dropdown.”
Rate Limits
MCP tool calls count against your normal API quota:
Plan Daily Limit Free 100 Pro 7,500 Ultra 75,000 Mega 150,000
Each tool call counts as one API request. Complex queries may result in multiple tool calls. Documentation and template tools (get_api_documentation, get_code_template, get_image_url_pattern) do NOT count against your quota.
Testing with MCP Inspector
You can test your MCP connection using the official MCP Inspector:
npx @modelcontextprotocol/inspector
Enter your MCP URL: https://mcp.sportsapipro.com/mcp?sportsapiproApiKey=YOUR_API_KEY
Troubleshooting
”Invalid API key” Error
Verify your API key is correct
Check that your API key is active in the Dashboard
Ensure there are no extra spaces in the URL
”Missing API key” Error
Make sure you include the sportsapiproApiKey query parameter in the URL:
https://mcp.sportsapipro.com/mcp?sportsapiproApiKey=YOUR_KEY
Connection Timeout
Check your internet connection
Verify the MCP server is accessible: visit https://mcp.sportsapipro.com/health
Try restarting your AI client
Make sure you’re using the correct tool name. The AI should automatically discover available tools, but you can ask:
“What SportsAPI Pro tools are available?”
Security
Your API key is passed via query parameter (required for MCP remote protocol)
All requests are made over HTTPS
API keys can be regenerated in your Dashboard if compromised
Consider using IP restrictions in your account settings for additional security
Need Help?