Safety-first Kaggle MCP β confirm-gated destructive ops, submission budget, injection-fenced.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
| 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 (<untrusted-content> fencing) | β Yes | β No | β No |
| Private-by-default + off-by-default destructive/publish flags | β Yes | β οΈ Optional is_private param | β No |
No in-chat authenticate() + 40-hex credential redaction | β 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 KGAT_ token + legacy username/key auth | β Both | β οΈ Mostly legacy-only | β OAuth 2.0 |
| Install | Local stdio (PyPI + git, uvx) | 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.
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." | kaggle_competition_landscape (one digested, deadline-sorted report) |
| "Download titanic data, infer the target, and do an EDA." | kaggle_eda_competition β train/test schema diff (auto-target) + compact pandas digest |
| "Find a good Titanic dataset and show me what it looks like." | kaggle_search_datasets β kaggle_dataset_preview (capped, untrusted-fenced rows) |
| "Summarize the iris dataset." | kaggle_eda_dataset β shape, dtypes, missingness, target dist, top correlations |
| "Submit predictions.csv to titanic and tell me the score." | kaggle_preview_submission β kaggle_submit_to_competition (token + budget gate) β kaggle_get_submission_score |
| "Is it worth iterating β what's my best score so far?" | kaggle_submission_best_score (metric-aware best/trend/failures + today's budget) |
| "Did anyone pass me on the leaderboard since last check?" | kaggle_leaderboard_track (snapshot deltas, who passed you) |
| "What techniques are people discussing for this competition?" | kaggle_search_discussions β kaggle_get_discussion (read-only, every post untrusted-fenced) |
| "Find the winning solution write-ups for this competition." | kaggle_search_writeups β kaggle_get_discussion |
| "Kick off this competition for me." | kaggle_competition_kickoff β one call: metric + rules + data download + train/test EDA (auto-target) + baseline plan + budget |
| "What mutating actions have I taken this session?" | kaggle_audit_log (redacted ledger of every submit/create/delete) |
| "Run this notebook on Kaggle's free GPU and get the output." | kaggle_push_kernel β kaggle_kernel_status β kaggle_kernel_output |
| "Save my engineered features as a private dataset version." | kaggle_version_dataset β private by default |
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.
Some competitors advertise capabilities the public Kaggle API can't actually deliver. We refuse to ship dishonest stubs:
kaggle_leaderboard_track diffs against snapshots you captured locally, and says so.The 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):
Claude Desktop β edit claude_desktop_config.json, then fully restart:
| Env var | Default | Effect when 1 |
|---|---|---|
KAGGLE_MCP_ENABLE_DESTRUCTIVE | 0 | Exposes kaggle_delete_dataset / kaggle_delete_model |
KAGGLE_MCP_ENABLE_PUBLISH | 0 | Allows creating public datasets |
KAGGLE_MCP_SUBMISSION_CAP | 5 | 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.
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.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/safe-kaggle-mcp)<a href="https://allmcps.com/mcp/safe-kaggle-mcp"><img src="https://allmcps.com/api/badge/safe-kaggle-mcp?style=directory" alt="Safe Kaggle MCP on AllMCPs" /></a>