Kaggle MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Kaggle MCP or direct API to search datasets, download notebooks, submit competition entries, and manage your Kaggle profile through natural language.

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

Try Kaggle now

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

TOOL ROUTER PLAYGROUND
Kaggle
Try asking
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.

SETUP GUIDE

Connect Kaggle MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

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

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["kaggle"],
  mcp: true,
});
Create a session scoped to Kaggle and read its MCP URL and headers
3

Connect your agent to the MCP server

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

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Download the latest competition data for \"titanic\"",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Kaggle request
SETUP GUIDE

Connect Kaggle API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

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

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["kaggle"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Kaggle
3

Run Kaggle tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Download the latest competition data for \"titanic\"" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Kaggle tool calls through the session, and print the final answer

Why Use Composio?

AI Native Kaggle Integration

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

Managed Auth

  • Built-in API Key handling for seamless access
  • Central place to manage, scope, and revoke Kaggle credentials
  • 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 Kaggle
  • Scoped, least privilege access to Kaggle resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Yes, Kaggle 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.

Yes. Composio is SOC 2 Type II compliant and is built to keep your Kaggle connection and credentials secure. OAuth tokens and API keys are encrypted, and sensitive customer data is protected at rest and in transit.

Composio also undergoes independent security testing and continuously monitors its systems for security threats. You can review the latest reports and policies in the Composio Trust Center.

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

Create the key in your Kaggle account settings, then paste it once on Composio's connection page. Composio stores it encrypted and uses it only for the Kaggle actions your agent runs. Nobody else in your workspace can read it, and you can revoke it inside Kaggle at any time.

When you connect a Kaggle account through Composio, every action runs under that account, so anything the agent creates, sends, or changes shows up in Kaggle as done by you. Keep an approval step in your prompt for actions with side effects, such as sending or deleting, and have the agent draft first.

Whatever the credentials you connect allow inside Kaggle. If Kaggle lets you scope a key to specific permissions, create a scoped one so the agent can only do what you intend. You can revoke the key inside Kaggle at any time.

Yes. Composio supports multiple connected accounts for the same app, and that works in Claude, ChatGPT, or any other assistant you connect through Composio. Give each Kaggle connection a name such as work or personal, and the assistant uses the one you mention in the request. Each account keeps its own credentials and nothing is merged.

The connection stops working the moment Kaggle rejects the old key. Create a new key in Kaggle and reconnect the account from the Composio dashboard or by asking your agent to reconnect Kaggle. Nothing else changes.

Composio's free Hobby plan includes 100,000 tool calls per month with no credit card, which covers most personal Kaggle use. Paid plans add higher limits and team features. Your Kaggle plan and its API limits still apply as usual.

Built-in connectors usually give one AI access to a limited set of apps. Many people use Composio because it lets their AI connect to more apps than it normally supports, or connect to multiple accounts for the same app (e.g. connect Claude to multiple Kaggle accounts).

With Composio, you connect Kaggle once and then use it across different AI assistants without setting it up separately in each one. Connect your apps to Composio once, then connect Composio to whichever AI you use, whether that's Claude, ChatGPT, Hermes, or your own custom assistant.

Start with Kaggle.It takes 30 seconds.

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

Start building