Api sports MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Api sports MCP or direct API to fetch live scores, query player stats, track match results, and analyze team performance through natural language.

Api sports logoApi sports
Api Key

Api sports is a comprehensive sports data platform covering 2,000+ competitions with live scores and 15+ years of stats. Instantly access up-to-date sports information for analysis, apps, or chatbots.

67 Tools

Try Api sports now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Api sports
Try asking
TOOLS

Supported Tools

Every Api sports action and event your agent gets out of the box.

Get AFL Games

Tool to retrieve AFL games and matches.

Get AFL Game Player Statistics

Tool to retrieve player statistics from AFL (Australian Football League) game(s).

Get AFL Seasons

Tool to get the list of available seasons for AFL.

Get AFL Standings

Tool to retrieve AFL standings for a league.

Get Baseball Games Head-to-Head

Tool to get head-to-head baseball games between two teams.

Get Basketball Bets

Tool to get all available basketball bet types.

Get Basketball Bookmakers

Tool to get all available basketball bookmakers.

Get basketball statistics

Tool to get basketball statistics for a team in a given league and season.

Get Formula 1 Circuits

Tool to get the list of available Formula 1 circuits.

Get Coaches

Tool to fetch coaches and their career history.

Get Countries

Tool to fetch available countries for league queries.

Get Fighters Records

Tool to get fighter career statistics.

Get Fixtures

Tool to retrieve football fixtures/matches.

Get fixtures events

Tool to get events (goals, cards, substitutions, VAR, etc.

Get Head-to-Head Fixtures

Tool to get head-to-head fixtures between two teams.

Get Fixture Lineups

Tool to retrieve starting XI and substitutes for a fixture.

Get fixtures players

Tool to get player statistics from a fixture.

Get Fixtures Rounds

Tool to get the rounds for a league or cup.

Get fixture statistics

Tool to get statistics for a fixture.

Get Formula 1 Competitions

Tool to retrieve Formula 1 competitions (Grand Prix races).

Get Formula 1 Races

Tool to retrieve Formula 1 race information for a given season.

Get Formula 1 Starting Grid

Tool to retrieve the starting grid for a Formula 1 race.

Get games events

Tool to get events (goals, penalties, etc.

Get AFL Games Quarters

Tool to retrieve AFL game quarter scores.

Get game statistics by teams

Tool to get team statistics from a game by ID.

Get Injuries

Tool to get injured or suspended players.

Get Leagues

Tool to retrieve leagues and cups.

Get League Seasons

Tool to get the list of available seasons for all leagues.

Get MMA Categories

Tool to fetch the list of all available MMA categories.

Get MMA Fighters

Tool to fetch MMA fighters data.

Get MMA Fights

Tool to retrieve the list of MMA fights according to given parameters.

Get MMA Fight Results

Tool to retrieve results from one or several MMA fights.

Get MMA Fighter Statistics

Tool to get fighter statistics from MMA fights.

Get NBA game statistics

Tool to get NBA game statistics including player stats for both teams.

Get NFL Standings Conferences

Tool to retrieve the list of available conferences for the NFL to be used in the standings endpoint.

Get Odds

Tool to fetch pre-match odds.

Get Odds Bets

Tool to get all available pre-match bet types.

Get Odds Bookmakers

Tool to list all available pre-match bookmakers.

Get In-Play Odds

Tool to fetch in-play odds for fixtures in progress.

Get Live Odds Bets

Tool to fetch all available bet types for in-play odds.

Get Odds Mapping

Tool to get the list of available fixture IDs for the odds endpoint.

Get Players

Tool to get player statistics.

Get Players Profiles

Tool to get the list of all available players.

Get Players Seasons

Tool to list all available seasons for player statistics.

Get Players Squads

Tool to get player squads.

Get player statistics

Tool to get player statistics for a specific basketball game.

Get Players Teams

Tool to get the list of teams and seasons in which a player played during his career.

Get Players Top Assists

Tool to get the 20 best players (top assists) for a league or cup.

Get Players Top Red Cards

Tool to get the 20 players with the most red cards for a league or cup.

Get Players Top Scorers

Tool to get the 20 best players (top scorers) for a league or cup.

Get Players Top Yellow Cards

Tool to get the 20 players with the most yellow cards for a league or cup.

Get Predictions

Tool to get predictions about a fixture.

Get Formula 1 Driver Rankings

Tool to retrieve Formula 1 driver rankings for a season.

Get Fastest Laps Rankings

Tool to get the ranking of the fastest laps for a Formula 1 race.

Get Race Rankings

Tool to retrieve rankings for a specific Formula 1 race.

Get Formula 1 Team Rankings

Tool to retrieve Formula 1 team rankings for a specific season.

Get Sidelined

Tool to get sidelined information (injuries, suspensions, etc.

Get Standings Divisions

Tool to retrieve the list of available divisions for an NFL competition to be used in the standings endpoint.

Get Standings Groups

Tool to retrieve the list of available groups for a league to be used in the standings endpoint.

Get Standings Stages

Tool to retrieve the list of available stages for a league to be used in the standings endpoint.

Get Teams

Tool to retrieve available teams.

Get Team Seasons

Tool to get the list of seasons available for a team.

Get team statistics

Tool to get detailed statistics of a team for a given league and season.

Get Timezone

Tool to fetch the complete list of available timezones for fixture queries.

Get Transfers

Tool to get all available transfers for players and teams.

Get Trophies

Tool to get trophies for a player or coach.

Get Venues

Tool to retrieve available venues.

SETUP GUIDE

Connect Api sports MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK and Claude Agent SDK
2

Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });

console.log("Creating Tool Router session...");
const { mcp } = await composio.create('your-user-id');
console.log(`Tool Router session created: ${mcp.url}`);
Initialize the Composio client and create a Tool Router session
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText, stepCountIs } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: mcp.url,
    headers: { 'x-api-key': 'your-composio-api-key' }
  }
});

const tools = await client.tools();

const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{ role: 'user', content: 'Get upcoming football fixtures for Premier League' }],
  stopWhen: stepCountIs( 5 )
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent
SETUP GUIDE

Connect Api sports API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Api sports Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: "Show today's football fixtures for Premier League."
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Api sports actions with your Agent

Why Use Composio?

AI Native Api sports Integration

  • Supports both Api sports MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Api sports data

Managed Auth

  • Built-in API key handling with secure storage and management
  • Central place to manage, scope, and revoke Api sports access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Api sports
  • Scoped, least privilege access to Api sports resources
  • Full audit trail of agent actions to support review and compliance
FAQ

Frequently asked questions

Yes, Api sports requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with Api sports.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Api sports tool your agent needs.Free to start.

Start building