How to connect Kaggle MCP with Cursor

How to integrate Kaggle MCP with Cursor Cursor is one of the leading AI-powered code editors. It is built to help developers write, understand, and refactor code faster with AI assistance built directly into the editor. And in this guide, I will explain the easiest and most secure way to connect your Kaggle account to Cursor via Composio Connect, so it can download data files for the Titanic competition, create a new version of your COVID-19 dataset, check processing status of your uploaded dataset, and more without ever putting your account credentials at risk.

Kaggle logoKaggle
Api Key

Kaggle is a platform for data science and machine learning competitions, datasets, and collaborative notebooks. It makes it easy to find data, participate in challenges, and share insights with a global data community.

35 Tools

How to integrate Kaggle MCP with Cursor

Cursor is one of the leading AI-powered code editors. It is built to help developers write, understand, and refactor code faster with AI assistance built directly into the editor.

And in this guide, I will explain the easiest and most secure way to connect your Kaggle account to Cursor via Composio Connect, so it can download data files for the Titanic competition, create a new version of your COVID-19 dataset, check processing status of your uploaded dataset, and more without ever putting your account credentials at risk.

Also integrate Kaggle with

Why Composio?

  • 1,000+ SaaS toolkits out of the box. Skip the work of building and maintaining integrations, Composio gives you instant access to a vast catalog of pre-built connectors.
  • One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
  • Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand. A remote CLI workbench lets LLMs compose these tools into workflows for complex automation.

Connect Kaggle to Cursor

Two ways to install — pick whichever you prefer.

1. Install with one click

Click the button below to add Composio to Cursor.

Install in Cursor

2. Or add manually

Add to your Cursor mcp.json

Open .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global config) and add the following configuration:

bash
{
  "servers": {
    "composio": {
      "type": "http",
      "url": "https://connect.composio.dev/mcp"
    }
  }
}

3. Authorize

Restart Cursor, then click "Connect" next to Composio in MCP Tools settings.

Cursor MCP Tools settings with Connect button next to Composio

A browser window will open to authorize.

Composio authorization browser window

Connect your Kaggle account

Back in Cursor, ask the agent to connect to Kaggle or give it any Kaggle-related task.

For example, ask it to:

  • "Download data files for the Titanic competition"
  • "Create a new version of your COVID-19 dataset"
  • "Check processing status of your uploaded dataset"

It will prompt you to authenticate and authorize access to Kaggle.

That is it. Composio tools are now available in Cursor, and your Kaggle account is ready to use.

Conclusion

You have successfully connected Kaggle to Cursor using Composio Connect. Your agent can now use Kaggle securely without exposing credentials in prompts or local scripts.

TOOLS

Supported Tools

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

Download competition data files

Downloads all data files for a Kaggle competition as a single zip archive.

Submit Competition Entry

Submit an entry to a Kaggle competition using a previously uploaded file.

Get Kaggle Config Directory

Tool to retrieve the directory of the Kaggle API configuration file.

Initialize Kaggle Configuration

Initialize Kaggle API client configuration.

List Kaggle Configuration Keys

Tool to list local Kaggle API configuration keys.

Get Kaggle Config Path

Tool to retrieve local Kaggle API configuration file path.

Reset Kaggle Configuration

Tool to reset local Kaggle CLI configuration to defaults.

Set Kaggle Configuration

Tool to set a Kaggle CLI configuration parameter.

Unset Kaggle Configuration

Tool to unset a Kaggle CLI configuration parameter.

View Kaggle Configuration

View local Kaggle API credentials and configuration settings.

Dataset Create

Create a new Kaggle dataset with metadata.

Kaggle Dataset Init

Tool to initialize a dataset-metadata.

List Kaggle Dataset Files

Tool to list files in a Kaggle dataset.

Get Dataset Status

Check the processing status of a Kaggle dataset after creation or version update.

Create Dataset Version

Create a new version of an existing Kaggle dataset.

Download competition file

Tool to download a specific data file from a Kaggle competition.

Download competition leaderboard

Tool to download the entire competition leaderboard as a CSV file packaged in a ZIP archive.

Download Kaggle Dataset

Tool to download all files from a Kaggle dataset as a zip archive.

Download Kaggle Dataset File

Tool to download a specific file from a Kaggle dataset.

Generate Competition Submission URL

Tool to generate a pre-signed URL for uploading competition submission files.

Get Dataset Metadata

Tool to get comprehensive metadata for a Kaggle dataset including title, description, licenses, and tags.

Get Model Details

Tool to get a Kaggle model's details including metadata and description.

Get Model Instance Details

Tool to get details for a specific Kaggle model instance (variation).

Kaggle Kernel Init

Initialize a kernel-metadata.

Download kernel output

Tool to download the output of a Kaggle kernel.

Get Kernel Status

Get the execution status of a Kaggle kernel (notebook).

List competition data files

Tool to list all data files available for a Kaggle competition.

List Kaggle Competitions

Tool to list available Kaggle competitions with filters and pagination.

List Kaggle Datasets

Tool to list Kaggle datasets with filters and pagination.

List Kernel Output Files

Tool to list output files for a specific kernel run.

List Kaggle Kernels

Tool to list Kaggle kernels (notebooks and scripts) with filters and pagination.

List Model Instance Version Files

Tool to list files for a specific version of a model variation.

List Kaggle Models

Tool to list Kaggle models with optional filters for owner, sorting, search, and pagination.

Pull Kernel Code

Tool to pull (download) the source code of a Kaggle kernel to local storage.

View competition leaderboard

Tool to view competition leaderboard information showing rankings and scores of participants.

FAQ

Frequently asked questions

With a standalone Kaggle MCP server, the agents and LLMs can only access a fixed set of Kaggle tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Kaggle and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Cursor fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Kaggle tools.

Yes, absolutely. You can configure which Kaggle scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Kaggle data and credentials are handled as safely as possible.

Start with Kaggle.It takes 30 seconds.

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

Start building