
Safe Kaggle MCP
io.github.parkseokjunePublished by GitHub account parkseokjunev0.4.1Updated Oct 24, 2026
Safety-first Kaggle MCP — confirm-gated destructive ops, submission budget, injection-fenced.
Overview
A safety-first Kaggle MCP server that lets an assistant browse competitions, datasets, kernels and models, run EDA, and submit predictions with confirm gates…
- What you can do
- Connects an assistant to Kaggle for competitions, datasets, kernels (notebooks) and models. Tools cover competition landscape triage, dataset search and preview, compact EDA digests, train/test schema diff with target detection, submission preview and submit, best-score and leaderboard tracking, read-only discussion and write-up digests, kernel push/status/output, dataset versioning, and a session audit log. Irreversible actions such as submit, delete and public publish require a two-call preview then commit confirm token, and Kaggle-returned text is fenced as untrusted content.
- When to use it
- Use it when you want an assistant to drive a Kaggle workflow in plain language: triaging active competitions, downloading and exploring data, running notebooks on Kaggle compute, submitting predictions within a budget, and tracking scores or leaderboard movement. It suits autonomous loops where destructive steps must stay gated.
- Requirements
- Runs locally over stdio, installed from PyPI as safe-kaggle-mcp and launched with uvx (Python/uv runtime). Credentials are optional for read-only tools: either KAGGLE_USERNAME with KAGGLE_KEY, or a modern KGAT_ token read from ~/.kaggle/access_token. Network access to the Kaggle API is required. Optional switches: KAGGLE_MCP_ENABLE_DESTRUCTIVE, KAGGLE_MCP_ENABLE_PUBLISH, KAGGLE_MCP_SUBMISSION_CAP.
Installation
In SourceWeft
- Open Safe Kaggle MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
kaggle-mcp
[CI] [PyPI] [smithery] [Python] [License: MIT]
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.
How it compares
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.
What you can do with it
Drive your whole Kaggle workflow from a Claude chat, in plain language:
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
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:
Safety switches (default OFF → read-only / private posture)
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
License
MIT
Source: README.md at commit 33a5e69
Tools
0Version history
1- v0.4.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts