/ 目录 / 演练场 / Kaggle Skill
● 社区 shepsci ⚡ 即开即用

Kaggle Skill

作者 shepsci · shepsci/kaggle-skill

Complete Kaggle integration — competition reports, dataset/model downloads, notebook execution.

A skill that wires Kaggle into Claude Code: list competitions, download datasets/models, submit predictions, fetch notebook executions, track badges. Works across Claude Code, Cursor, Codex, Gemini CLI through skills.sh.

为什么要用

核心特性

实时演示

实际使用效果

kaggle-skill.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "kaggle-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/shepsci/kaggle-skill",
        "~/.claude/skills/kaggle-skill"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "kaggle-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/shepsci/kaggle-skill",
        "~/.claude/skills/kaggle-skill"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "kaggle-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/shepsci/kaggle-skill",
        "~/.claude/skills/kaggle-skill"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "kaggle-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/shepsci/kaggle-skill",
        "~/.claude/skills/kaggle-skill"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "kaggle-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/shepsci/kaggle-skill",
        "~/.claude/skills/kaggle-skill"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "kaggle-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/shepsci/kaggle-skill",
          "~/.claude/skills/kaggle-skill"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add kaggle-skill -- git clone https://github.com/shepsci/kaggle-skill ~/.claude/skills/kaggle-skill

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: Kaggle Skill

Pull a competition dataset, train a baseline, submit predictions

👤 Kagglers iterating fast ⏱ ~15 min intermediate

何时使用: You want to get a first submission on the leaderboard quickly.

前置条件
  • Server/skill installed and authenticated — See repo README
步骤
  1. Pull data
    Use the Kaggle skill to download the latest version of competition 'titanic' to ./data.✓ 已复制
    → Dataset downloaded; files listed
  2. Submit
    After my notebook runs, submit submission.csv with message 'baseline LR'.✓ 已复制
    → Submission id + public score when scored

结果: A real submission on the leaderboard with one chat.

注意事项
  • Daily submission limits per competition — usually 5–10. The skill warns when you're close. — Daily submission limits per competition — usually 5–10. The skill warns when you're close.
搭配使用: filesystem

组合

与其他 MCP 搭配,撬动十倍杠杆

kaggle-skill + filesystem

Pair with filesystem

Use this skill together with filesystem.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
list_competitions category, status Find active competitions 1 API call
download_dataset ref, version Pull a dataset locally Disk I/O
submit competition, file, message Submit predictions 1 API call

成本与限制

运行它的成本

API 配额
Kaggle rate limits apply
每次调用 Token 数
Varies
费用
Free for public competitions
提示
Cache downloads.

安全

权限、密钥、影响范围

凭据存储: ~/.kaggle/kaggle.json with chmod 600
数据出站: kaggle.com

故障排查

常见错误与修复

403 Forbidden on download

Accept the competition's rules on Kaggle first via the web UI. The CLI cannot accept rules.

验证: Visit competition page
kaggle.json missing

Place your API token at ~/.kaggle/kaggle.json with chmod 600.

验证: kaggle competitions list

替代方案

Kaggle Skill 对比其他方案

替代方案何时用它替代权衡
Kaggle CLI directlyYou want raw CLINo agent integration

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills