原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Safe Kaggle MCP

作者:parkseokjune版本 0.4.1i★ –i在你的电脑上运行
注册名称io.github.parkseokjune/kaggle-mcp

安装

概览

作者提供的说明(英文原文)

Safety-first Kaggle MCP — confirm-gated destructive ops, submission budget, injection-fenced.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 会计、财务与税务
  • 你需要填写:KAGGLE_KEY, KAGGLE_API_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: KAGGLE_USERNAME, KAGGLE_KEY, KAGGLE_API_TOKEN, KAGGLE_MCP_ENABLE_DESTRUCTIVE, KAGGLE_MCP_ENABLE_PUBLISH, KAGGLE_MCP_SUBMISSION_CAP

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "kaggle": {
      "command": "uvx",
      "args": [
        "safe-kaggle-mcp"
      ],
      "env": {
        "KAGGLE_USERNAME": "your-value",
        "KAGGLE_KEY": "your-value",
        "KAGGLE_API_TOKEN": "your-value",
        "KAGGLE_MCP_ENABLE_DESTRUCTIVE": "your-value",
        "KAGGLE_MCP_ENABLE_PUBLISH": "your-value",
        "KAGGLE_MCP_SUBMISSION_CAP": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add kaggle --env KAGGLE_USERNAME=your-value --env KAGGLE_KEY=your-value --env KAGGLE_API_TOKEN=your-value --env KAGGLE_MCP_ENABLE_DESTRUCTIVE=your-value --env KAGGLE_MCP_ENABLE_PUBLISH=your-value --env KAGGLE_MCP_SUBMISSION_CAP=your-value -- uvx safe-kaggle-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "kaggle": {
      "command": "uvx",
      "args": [
        "safe-kaggle-mcp"
      ],
      "env": {
        "KAGGLE_USERNAME": "your-value",
        "KAGGLE_KEY": "your-value",
        "KAGGLE_API_TOKEN": "your-value",
        "KAGGLE_MCP_ENABLE_DESTRUCTIVE": "your-value",
        "KAGGLE_MCP_ENABLE_PUBLISH": "your-value",
        "KAGGLE_MCP_SUBMISSION_CAP": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "kaggle": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "safe-kaggle-mcp"
      ],
      "env": {
        "KAGGLE_USERNAME": "your-value",
        "KAGGLE_KEY": "your-value",
        "KAGGLE_API_TOKEN": "your-value",
        "KAGGLE_MCP_ENABLE_DESTRUCTIVE": "your-value",
        "KAGGLE_MCP_ENABLE_PUBLISH": "your-value",
        "KAGGLE_MCP_SUBMISSION_CAP": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • KAGGLE_USERNAME env
    Kaggle account username (legacy scheme; pair with KAGGLE_KEY). Optional — read-only tools work without credentials.
  • KAGGLE_KEY 机密 env
    Kaggle API key, the 40-char 'key' from kaggle.json (legacy scheme; pair with KAGGLE_USERNAME).
  • KAGGLE_API_TOKEN 机密 env
    Modern Kaggle KGAT_... token (alternative to KAGGLE_USERNAME/KAGGLE_KEY). Optional.
  • KAGGLE_MCP_ENABLE_DESTRUCTIVE env
    Set to 1 to expose delete tools. Default 0 (off).
  • KAGGLE_MCP_ENABLE_PUBLISH env
    Set to 1 to allow making datasets/kernels public. Default 0 (off).
  • KAGGLE_MCP_SUBMISSION_CAP env
    Daily per-competition submission budget. Default 5.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 parkseokjune 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“会计、财务与税务”中的其他服务器比较i

  • 星标数多于此分类中其他 3062 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3062 个服务器的 13% 更新
  • 基础检查结果等于或优于此分类中其他 3062 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Safe Kaggle MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:KAGGLE_KEY, KAGGLE_API_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.4.1)于5个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Finance Toolkit, SolidInvoice, Korea Tax Calculator

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Finance Toolkit

500+ transparent financial methods calculated from raw statements, not third-party endpoints.

作者:JerBouma广泛使用↓ 1.6万/周★ 5496今天更新

电脑或云端

SolidInvoice

Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.

作者:SolidInvoice正在增长★ 981昨天更新

在云端运行✓ solidinvoice.co

Korea Tax Calculator

Korean tax calculation and tax-audit judgment MCP: 97 tools with statutory citations.

作者:UpstageAI正在增长↓ 3172/周★ 97今天更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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 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-mcp

How it compares

Featuresafe-kaggle-mcpTypical community serverOfficial 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 ( 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
InstallLocal stdio (PyPI + git, uvx)Local (pip/uv)✅ Zero-install remote
Raw tool breadth41 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 — 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:

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.

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_track diffs 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-mcp

The PyPI distribution is `safe-kaggle-mcp` (the name kaggle-mcp was taken); the command it installs is still kaggle-mcp, so launch it with uvx --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_token

Claude 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 varDefaultEffect when 1
KAGGLE_MCP_ENABLE_DESTRUCTIVE0Exposes kaggle_delete_dataset / kaggle_delete_model
KAGGLE_MCP_ENABLE_PUBLISH0Allows creating public datasets
KAGGLE_MCP_SUBMISSION_CAP5Per-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 Inspector

License

MIT

问 PopNx