SuperAPIAI Directory

kaggle-mcp

github.com · AI developer platforms

Connect to Kaggle to download and analyze datasets.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

kaggle-mcp is a Model Context Protocol (MCP) server that exposes Kaggle dataset-related operations to MCP-compatible clients such as Claude Desktop. It was developed by arrismo and is open-sourced on GitHub. The following content is compiled based on project materials.

Purpose The server is mainly used to connect to Kaggle within an MCP client, enabling dataset search, download, and EDA prompt generation. It is suitable for scenarios that require quickly finding and obtaining Kaggle datasets within a conversational client and generating preliminary analysis code prompts.

Main capabilities

  1. Search Kaggle datasets by keyword, returning up to 10 JSON-formatted results, with returned fields including usability_rating, etc.
  2. Download and unzip Kaggle datasets. It accepts a dataset_ref parameter in the format owner/dataset-slug, for example kaggle/titanic. download_path is an optional local output path; if omitted, files are saved to ./datasets/<dataset_slug>/.
  3. Generate a basic Python EDA code prompt for a specified Kaggle dataset reference, with the prompt content covering data loading, missing value checks, visualization, and summary statistics.
  4. Support providing Kaggle credentials via environment variables or the standard kaggle.json file.
  5. Can be run locally, in Docker, or via Smithery.

Usage Prerequisites: a Kaggle account and API token, as well as an MCP-compatible client.

Obtain Kaggle credentials:

  • Visit https://www.kaggle.com/settings。
  • Select Create New API Token.
  • Download kaggle.json.

Choose one of two credential configuration methods:

  • Method 1: Environment variables. Create a .env file in the project root directory.
  • Method 2: kaggle.json. Place the file in the standard Kaggle location: ~/.kaggle/kaggle.json on macOS/Linux, and C:\Users<Your User Name>.kaggle\kaggle.json on Windows. On macOS/Linux, ensure the file is not globally readable.

Installation and running:

  • Create and activate a virtual environment.
  • Install dependencies (the project materials list multiple methods and do not provide the specific command content).
  • Run locally: the server module can be run directly to start. The server communicates via MCP stdio and is designed to be started by an MCP client.
  • Docker: build the image; run it using the credentials in .env.
  • Smithery: the repository contains smithery.yaml. Smithery starts the server via stdio and passes configuration values as environment variables: kaggleUsername -> KAGGLE_USERNAME, kaggleKey -> KAGGLE_KEY.

Claude Desktop configuration: Open Claude Desktop settings, go to Developer > Edit Config, and add the server to claude_desktop_config.json. If installed in a project environment, configure it accordingly; if using kaggle.json, the env block can be omitted.

Example workflow:

  1. Ask the MCP client: "Search Kaggle for heart disease datasets."
  2. The client calls search_kaggle_datasets.
  3. Select a dataset reference from the results, for example user/heart-disease-dataset.
  4. Ask: "Download user/heart-disease-dataset."
  5. Ask: "Generate an EDA notebook prompt for user/heart-disease-dataset."

Project structure: downloaded datasets are saved by default under datasets/, and this directory is created at runtime when a download is requested.

Applicable scenarios and limitations It is suitable for workflows involving Kaggle dataset retrieval, download, and preliminary EDA prompt generation within an MCP client. Regarding limitations, the project materials do not provide specific limitation descriptions; usage requires your own Kaggle account and API token, as well as an MCP-compatible client.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools