Kaggle MCP Server
Provides tools for interacting with Kaggle, enabling remote kernel execution on Kaggle Jupyter Servers (GPU/TPU), and access to competitions, datasets, kernels, and discussions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Kaggle MCP Serverdownload the Titanic competition dataset to my workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Kaggle MCP Server (Cloud & Koyeb Ready) 🚀
A full-featured Model Context Protocol (MCP) server for Kaggle, adapted to run on Koyeb (and any container or serverless cloud) over Server-Sent Events (SSE).
Supports remote execution on Kaggle Jupyter Servers (GPU/TPU), Kaggle Competitions, Datasets, Kernels, and Discussions.
⚡ Deployment on Koyeb
You can deploy this repository to Koyeb without Docker using Koyeb's native Buildpack, or with Docker.
Option 1: Without Docker (Koyeb Buildpack - Recommended)
Fork or push this repository to your GitHub account:
https://github.com/Ragu-123/kaggle-mcpLog in to Koyeb Console.
Click Create Service → Select GitHub.
Select repository
Ragu-123/kaggle-mcpand branchmain.Under Builder, select Buildpack (Koyeb will automatically detect
requirements.txtandProcfile).Under Environment Variables & Secrets, add:
KAGGLE_USERNAME: Your Kaggle usernameKAGGLE_KEY: Your Kaggle API key (from https://www.kaggle.com/settings -> API)MCP_TRANSPORT:sse(default)PORT:8000(default)
Under Ports, expose port
8000asHTTPwith path/.Click Deploy.
Koyeb will assign your service a public URL, for example: https://<service-name>-<org>.koyeb.app.
Option 2: Docker Deployment
If you prefer building from Dockerfile:
Under Builder, select Dockerfile.
Add the same environment secrets (
KAGGLE_USERNAME,KAGGLE_KEY).Click Deploy.
Related MCP server: kaggle-mcp
🔌 Connecting Remote AI Agents
Once deployed, connect your AI agents (Claude, ChatGPT, LibreChat, Cursor, Antigravity, OpenCode, etc.) using the SSE URL:
https://<your-koyeb-subdomain>.koyeb.app/sseHealth Check
You can test the server anytime in your browser or with curl:
curl https://<your-koyeb-subdomain>.koyeb.app/healthResponse:
{
"status": "healthy",
"service": "kaggle-agent-mcp",
"transport": "sse",
"sse_endpoint": "/sse",
"messages_endpoint": "/messages/"
}🛠️ Key Capabilities & Flexible Paths
1. Kaggle Remote Kernel Execution (GPU/TPU)
kaggle_remote_kernel_set_url(url): Connect to a Kaggle Jupyter notebook server.kaggle_remote_kernel_execute(code, file_path, timeout): Execute code or scripts directly on the remote Kaggle GPU/TPU kernel.kaggle_remote_kernel_job_status(job_id): Check execution status (running,completed,failed).kaggle_remote_kernel_job_logs(job_id): Retrieve stdout and stderr logs.kaggle_remote_kernel_wait_for_job(job_id): Wait until execution completes.kaggle_remote_kernel_job_cancel(job_id): Interrupt and abort kernel execution.
2. Flexible Download Directories
Every tool that downloads files supports an optional path parameter so agents can specify their own local or workspace directories:
competition_download(competition, file_name, path): Download competition data directly intopath.competition_leaderboard_download(competition, path): Download leaderboard CSV intopath.dataset_download(owner, dataset_slug, file_name, path, unzip): Download and unpack datasets intopath.dataset_download_file(owner, dataset_slug, file_name, path): Download single dataset file intopath.kernel_pull(kernel, path, competition_slug): Pull notebook and metadata directly intopath.kernel_output(kernel, path): Pull kernel execution outputs intopath.
🔒 Security Best Practice
Do NOT commit your Kaggle API key or username to GitHub. Always configure them as Koyeb Secrets / Environment Variables in the Koyeb web dashboard.
This server cannot be deployed
Maintenance
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Remote MCP server to read and manage your Atako AI agents, messages, files, and integrations.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Remote MCP server for AI.TV creators — delegate account operations to your AI agent over MCP.
Related MCP Servers
- FlicenseBqualityDmaintenanceMCP server for Kaggle API integration that allows creating, running, and managing Kaggle notebooks programmatically.81-
- AlicenseBqualityDmaintenanceA full-featured MCP server for the Kaggle API — competitions, datasets, kernels, models, benchmarks, and discussions.5132 PyPI3MIT
- AlicenseNot gradedqualityDmaintenanceEnables running GPU-accelerated Python code on Kaggle from any MCP-compatible AI assistant without local GPU hardware.MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides seamless integration with the Kaggle API, enabling interaction with competitions, datasets, kernels, and models through MCP-compatible clients.MIT