kaggle-mcp
Provides tools for interacting with Kaggle's API, enabling AI agents to manage competitions, datasets, kernels, models, discussions, and leaderboards with safety-first features like preview-commit confirm tokens and submission budgeting.
Click on "Install 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-mcpTriage active competitions with days left and prize"
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
A safety-first Model Context Protocol server connecting Claude (Desktop / Code) to Kaggle — competitions, datasets, kernels (notebooks), and models.
safe-kaggle-mcp is the only Kaggle MCP built safety-first. Every irreversible action — submit, delete, public-publish — is gated behind a two-call preview→commit confirm token, a per-competition submission budget surfaced in every response, and off-by-default destructive flags, while all Kaggle-returned text is fenced in
<untrusted-content>and your credentials never enter the model context. Other servers chase tool count and the official remote server wins on zero-install convenience — but none of them, official included, gate a single destructive call, cap submissions, or harden against prompt injection. It trades raw breadth for the one thing an autonomous agent with your Kaggle account actually needs: it cannot quietly burn your daily submissions, leak your key, publish your private work, or be hijacked by a poisoned discussion thread.
claude mcp add --transport stdio kaggle -- uvx --from safe-kaggle-mcp kaggle-mcpHow it compares
Feature | safe-kaggle-mcp | Typical community server | Official remote / Composio |
Two-call preview→commit confirm tokens (submit/delete/publish) | ✅ Yes | ❌ No (single-shot) | ❌ No (single-shot) |
Per-competition submission budget surfaced to the agent | ✅ Yes (default 5/day) | ❌ No | ❌ No (opaque server quota) |
Prompt-injection hardening ( | ✅ Yes | ❌ No | ❌ No |
Private-by-default + off-by-default destructive/publish flags | ✅ Yes | ⚠️ Optional | ❌ No |
No in-chat | ✅ Yes | ❌ Some leak the key into context | ⚠️ OAuth keeps key out, no redaction |
Zip-slip-safe / sandboxed downloads | ✅ Yes | ❌ No | ❌ Can't sandbox local writes |
Callable local EDA tool (compact pandas digest, never raw rows) | ✅ Yes (dataset + competition) | ❌ EDA prompt at best | ❌ No |
Competition train/test schema diff + target auto-detect | ✅ Yes | ❌ No | ❌ No |
Competition landscape triage (days-left, budget, metric) | ✅ Yes | ❌ Thin raw list | ❌ Raw fields, no digest |
Submission best-score digest (metric-aware best/trend/failures) | ✅ Yes | ❌ Raw list | ❌ Raw list |
Leaderboard delta tracking (local snapshots + rank moves) | ✅ Yes | ❌ No | ❌ No API endpoint either |
Session audit ledger of mutating actions (redacted) | ✅ Yes | ❌ No | ❌ No |
Read-only discussion + write-up digest, injection-fenced | ✅ Yes (untrusted-fenced) | ⚠️ Yes but unfenced (Galaxy-Dawn) | ⚠️ Unfenced |
One-call competition kickoff (data + EDA + baseline plan) | ✅ Yes | ❌ No | ❌ No |
Output discipline (ranked/capped tables, pagination, top-N) | ✅ Yes | ❌ Undocumented | ❌ Client's job |
Modern | ✅ Both | ⚠️ Mostly legacy-only | ✅ OAuth 2.0 |
Install | Local stdio (PyPI + git, | Local (pip/uv) | ✅ Zero-install remote |
Raw tool breadth | 41 tools (no benchmark listing — API exposes none) | up to ~51 | ~35–57 |
The two honest places we don't lead: the official remote server is zero-install, and the broadest community server (Galaxy-Dawn, ~51 tools) has more raw endpoints (e.g. benchmarks). Where they expose ~10 forum tools unfenced, we expose read-only discussion search + read with every body fenced as <untrusted-content> — and no posting tool, because the API has none.
Related MCP server: Kaggle-MCP
What you can do with it
Drive your whole Kaggle workflow from a Claude chat, in plain language:
Ask Claude… | What happens under the hood |
"Triage active competitions — prize, metric, days left." |
|
"Download titanic data, infer the target, and do an EDA." |
|
"Find a good Titanic dataset and show me what it looks like." |
|
"Summarize the iris dataset." |
|
"Submit predictions.csv to titanic and tell me the score." |
|
"Is it worth iterating — what's my best score so far?" |
|
"Did anyone pass me on the leaderboard since last check?" |
|
"What techniques are people discussing for this competition?" |
|
"Find the winning solution write-ups for this competition." |
|
"Kick off this competition for me." |
|
"What mutating actions have I taken this session?" |
|
"Run this notebook on Kaggle's free GPU and get the output." |
|
"Save my engineered features as a private dataset version." |
|
Higher-order workflows the agent chains itself: an autonomous competition loop (download → train → submit → read score → iterate, within the daily budget), Kaggle as a remote GPU/TPU backend, and cross-run memory via private dataset versions. Every irreversible step is gated, so the agent can run autonomously without risking your account.
What it won't do (honest limits)
Some competitors advertise capabilities the public Kaggle API can't actually deliver. We refuse to ship dishonest stubs:
No posting to forums/discussions. The API can read topics but has no create/reply/vote endpoint — so we don't pretend to.
No private-leaderboard or final-rank prediction. Private scores are withheld until the deadline; our tools label scores as public-only.
No historical leaderboard from Kaggle. There's no such endpoint —
kaggle_leaderboard_trackdiffs against snapshots you captured locally, and says so.No hidden test labels / private splits. We only ever serve files the competition exposes.
Install
# fastest: install + register with Claude Code
claude mcp add --transport stdio kaggle -- uvx --from safe-kaggle-mcp kaggle-mcp
# or straight from this repo (no PyPI):
claude mcp add --transport stdio kaggle -- uvx --from git+https://github.com/parkseokjune/kaggle-mcp kaggle-mcp
# or for development
uv sync --extra dev && uv run kaggle-mcpThe PyPI distribution is
safe-kaggle-mcp(the namekaggle-mcpwas taken); the command it installs is stillkaggle-mcp, so launch it withuvx --from safe-kaggle-mcp kaggle-mcp.
Get a token at https://www.kaggle.com/settings → API → Create New Token. Both schemes work (resolved in order):
# 1) legacy username/key (env or ~/.kaggle/kaggle.json)
export KAGGLE_USERNAME=your_user
export KAGGLE_KEY=your_40_char_key
# 2) current API token (KGAT_...): the client reads it automatically
mkdir -p ~/.kaggle && echo "KGAT_..." > ~/.kaggle/access_token && chmod 600 ~/.kaggle/access_tokenClaude Desktop — edit claude_desktop_config.json, then fully restart:
{ "mcpServers": { "kaggle": {
"command": "uvx", "args": ["--from", "safe-kaggle-mcp", "kaggle-mcp"],
"env": { "KAGGLE_USERNAME": "your_user", "KAGGLE_KEY": "your_key" } } } }Safety switches (default OFF → read-only / private posture)
Env var | Default | Effect when |
|
| Exposes |
|
| Allows creating public datasets |
|
| Per-competition daily submission budget |
Even when enabled, each destructive call still needs a one-time confirm_token from its *_preview_* tool, and is recorded in kaggle_audit_log.
Tools
41 tools across account, competitions, datasets, discussions, kernels, models — plus kaggle:// resources (metadata, leaderboard, rules) and /kaggle-eda, /kaggle-submit-checklist, /kaggle-landscape, /kaggle-solution-research prompts. Run kaggle_status to see your auth + submission budget.
Verified live against the Kaggle API (kaggle 2.2.2) with both auth schemes; 53 offline + 6 live read-only tests pass.
Develop
uv run pytest # offline unit + integration tests
KAGGLE_LIVE=1 uv run pytest tests/test_live_readonly.py # live read-only smoke (needs creds)
uv run mcp dev src/kaggle_mcp/server.py # MCP InspectorLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceConnects Claude AI to the Kaggle API through the Model Context Protocol, enabling competition, dataset, and kernel operations through the AI interface.Last updated36MIT
- Alicense-qualityDmaintenanceConnects Claude AI to the Kaggle API through the Model Context Protocol, enabling users to browse competitions, search and download datasets, analyze kernels, and access pre-trained models through natural language interactions.Last updatedMIT
- AlicenseBqualityDmaintenanceA full-featured MCP server for the Kaggle API — competitions, datasets, kernels, models, benchmarks, and discussions.Last updated513MIT
- Alicense-qualityDmaintenanceA full-featured MCP server with 96 tools for the Kaggle API, enabling users to manage competitions, datasets, notebooks, models, discussions, and workflows via natural language.Last updatedMIT
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/parkseokjune/kaggle-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server