Skip to the content.

Competitions API

Kaggle-MCP provides comprehensive access to Kaggle competitions functionality, enabling you to browse, join, and submit to competitions directly through Claude.

Available Tools

competitions_list

List available Kaggle competitions with filtering options.

competitions_list(search="", category="all", group="general", sort_by="latestDeadline", page=1)

Parameters:

Returns: JSON string with competition details

competition_details

Get detailed information about a specific competition.

competition_details(competition)

Parameters:

Returns: JSON string with competition details

competition_download_files

Download competition files to a specified location.

competition_download_files(competition, path="", file_name="", force=False)

Parameters:

Returns: Success message or error details

competition_list_files

List files available in a competition.

competition_list_files(competition)

Parameters:

Returns: JSON string with file details

competition_submissions

List your submissions for a competition.

competition_submissions(competition)

Parameters:

Returns: JSON string with submission details

competition_leaderboard

View the competition leaderboard.

competition_leaderboard(competition)

Parameters:

Returns: JSON string with leaderboard details

competition_submit

Submit to a competition.

competition_submit(competition, file_path, message)

Parameters:

Returns: Success message or error details

Examples

Here are some examples of how to use the competition tools with Claude:

# List all active competitions
competitions_list()

# Get details about the Titanic competition
competition_details("titanic")

# Download all files from the Titanic competition
competition_download_files("titanic", "/path/to/download")

# List files in the Titanic competition
competition_list_files("titanic")

# Check the Titanic leaderboard
competition_leaderboard("titanic")

# Submit to the Titanic competition
competition_submit("titanic", "/path/to/submission.csv", "My first submission")