Kaggle MCP for AI Agents

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.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Kaggle Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Kaggle now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Download competition data filesDownloads all data files for a Kaggle competition as a single zip archive.
Submit Competition EntrySubmit an entry to a Kaggle competition using a previously uploaded file.
Get Kaggle Config DirectoryTool to retrieve the directory of the Kaggle API configuration file.
Initialize Kaggle ConfigurationInitialize Kaggle API client configuration.
List Kaggle Configuration KeysTool to list local Kaggle API configuration keys.
Get Kaggle Config PathTool to retrieve local Kaggle API configuration file path.
Reset Kaggle ConfigurationTool to reset local Kaggle CLI configuration to defaults.
Set Kaggle ConfigurationTool to set a Kaggle CLI configuration parameter.
Unset Kaggle ConfigurationTool to unset a Kaggle CLI configuration parameter.
View Kaggle ConfigurationView local Kaggle API credentials and configuration settings.
Dataset CreateCreate a new Kaggle dataset with metadata.
Kaggle Dataset InitTool to initialize a dataset-metadata.
List Kaggle Dataset FilesTool to list files in a Kaggle dataset.
Get Dataset StatusCheck the processing status of a Kaggle dataset after creation or version update.
Create Dataset VersionCreate a new version of an existing Kaggle dataset.
Download competition fileTool to download a specific data file from a Kaggle competition.
Download competition leaderboardTool to download the entire competition leaderboard as a CSV file packaged in a ZIP archive.
Download Kaggle DatasetTool to download all files from a Kaggle dataset as a zip archive.
Download Kaggle Dataset FileTool to download a specific file from a Kaggle dataset.
Generate Competition Submission URLTool to generate a pre-signed URL for uploading competition submission files.
Get Dataset MetadataTool to get comprehensive metadata for a Kaggle dataset including title, description, licenses, and tags.
Get Model DetailsTool to get a Kaggle model's details including metadata and description.
Get Model Instance DetailsTool to get details for a specific Kaggle model instance (variation).
Kaggle Kernel InitInitialize a kernel-metadata.
Download kernel outputTool to download the output of a Kaggle kernel.
Get Kernel StatusGet the execution status of a Kaggle kernel (notebook).
List competition data filesTool to list all data files available for a Kaggle competition.
List Kaggle CompetitionsTool to list available Kaggle competitions with filters and pagination.
List Kaggle DatasetsTool to list Kaggle datasets with filters and pagination.
List Kernel Output FilesTool to list output files for a specific kernel run.
List Kaggle KernelsTool to list Kaggle kernels (notebooks and scripts) with filters and pagination.
List Model Instance Version FilesTool to list files for a specific version of a model variation.
List Kaggle ModelsTool to list Kaggle models with optional filters for owner, sorting, search, and pagination.
Pull Kernel CodeTool to pull (download) the source code of a Kaggle kernel to local storage.
View competition leaderboardTool to view competition leaderboard information showing rankings and scores of participants.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Kaggle tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Download competition data files for Titanic competition')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

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

Frequently Asked Questions

Do I need my own developer credentials to use Kaggle with Composio?

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.

Can I use multiple toolkits together?

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

Is Composio secure?

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

What if the API changes?

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

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.