Skip to main content
Glama

Kaggle-MCP:Claude AI 的 Kaggle API 集成

     ██╗  ██╗ █████╗  ██████╗  ██████╗ ██╗     ███████╗       ███╗   ███╗ ██████╗██████╗ 
     ██║ ██╔╝██╔══██╗██╔════╝ ██╔════╝ ██║     ██╔════╝       ████╗ ████║██╔════╝██╔══██╗
     █████╔╝ ███████║██║  ███╗██║  ███╗██║     █████╗         ██╔████╔██║██║     ██████╔╝
     ██╔═██╗ ██╔══██║██║   ██║██║   ██║██║     ██╔══╝  ████─  ██║╚██╔╝██║██║     ██╔═══╝ 
     ██║  ██╗██║  ██║╚██████╔╝╚██████╔╝███████╗███████╗       ██║ ╚═╝ ██║╚██████╗██║     
     ╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝  ╚═════╝ ╚══════╝╚══════╝       ╚═╝     ╚═╝ ╚═════╝╚═╝     

Kaggle-MCP通过模型上下文协议(MCP)将Claude AI连接到Kaggle API,从而通过AI接口实现竞赛、数据集和内核操作。

特征

  • 身份验证:使用您的 Kaggle 凭证进行安全身份验证

  • 竞赛:浏览、搜索和下载 Kaggle 竞赛数据

  • 数据集:从 Kaggle 查找、探索和下载数据集

  • 内核:搜索并分析 Kaggle 笔记本/内核

  • 模型:访问 Kaggle 上提供的预训练模型

Related MCP server: SketchupMCP

快速安装

以下命令安装 Kaggle-MCP 的基础版本。

macOS / Linux

# Install with a single command
curl -LsSf https://raw.githubusercontent.com/54yyyu/kaggle-mcp/main/install.sh | sh

视窗

# Download and run the installer
powershell -c "Invoke-WebRequest -Uri https://raw.githubusercontent.com/54yyyu/kaggle-mcp/main/install.ps1 -OutFile install.ps1; .\install.ps1"

手动安装

# Install with pip
pip install git+https://github.com/54yyyu/kaggle-mcp.git

# Or better, install with uv
uv pip install git+https://github.com/54yyyu/kaggle-mcp.git

配置

安装完成后,运行安装实用程序来配置 Claude Desktop:

kaggle-mcp-setup

这将找到并更新您的 Claude Desktop 配置文件,该文件通常位于:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

手动配置

或者,您可以手动将以下内容添加到 Claude Desktop 配置中:

{
  "mcpServers": {
    "kaggle": {
      "command": "kaggle-mcp"
    }
  }
}

Kaggle API 凭证

要使用 Kaggle-MCP,您需要设置您的 Kaggle API 凭证:

  1. 转到您的Kaggle 帐户设置

  2. 在 API 部分,单击“创建新的 API 令牌”

  3. 这将下载包含您的凭据的kaggle.json文件

  4. 将此文件移动到~/.kaggle/kaggle.json (如果需要,创建目录)

  5. 设置正确的权限: chmod 600 ~/.kaggle/kaggle.json

或者,您可以使用您的用户名和 API 密钥通过 Claude 使用authenticate()工具直接进行身份验证。

可用工具

有关可用工具的完整列表及其详细用法,请参阅stevenyuyy.us/kaggle-mcp上的文档。

示例

问克劳德:

  • “使用我的用户名‘username’和密钥‘apikey’向 Kaggle 进行身份验证”

  • “列出活跃的 Kaggle 比赛”

  • “显示泰坦尼克号排行榜上排名前十的选手”

  • “查找有关气候变化的数据集”

  • “下载波士顿住房数据集”

  • “搜索有关情绪分析的内核”

用例

  • 竞赛研究:快速访问竞赛详情、数据和排行榜

  • 数据集发现:查找和下载用于分析项目的数据集

  • 学习资源:查找特定主题的相关内核和笔记本

  • 模型发现:查找用于各种机器学习任务的预训练模型

要求

  • Python 3.8 或更高版本

  • Claude 桌面或 API 访问

  • 具有 API 凭证的 Kaggle 帐户

  • MCP Python SDK 1.6.0+

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

Related MCP Connectors

  • Share context and questions between Claude instances — VS Code, claude.ai web, and mobile.

  • Connect Claude to Fathom meeting recordings, transcripts, and summaries

  • Kaiva Bridge turns an OpenAPI spec, API docs link, database, spreadsheet or documents into a hosted MCP server. Every tool starts switched off and you choose which ones to expose. Teammates connect from Claude or ChatGPT by signing in with OAuth; your API credential is stored encrypted and never shown to the AI. Free plan: 3 servers and 200,000 tool calls a month, no card. Pricing: https://kaiv.ai/bridge/pricing Security: https://kaiv.ai/bridge/security Docs: https://kaiv.ai/bridge/docs

  • AMZScout Skill + MCP gives AI agents live access to real Amazon marketplace data across 14 Amazon marketplaces. Analyze any ASIN, validate product ideas, research niches, compare competitors, discover profitable keywords, and build data-driven PPC strategies using trusted Amazon insights instead of AI assumptions. Works with Claude, ChatGPT, Cursor, and any other MCP-compatible AI client. To connect, you'll need an AMZScout API plan and authorize your account. Get access and view pricing here: https://learn.amzscout.net/amazon-product-api-for-ai-agents

Related MCP Servers

  • F
    license
    B
    quality
    F
    maintenance
    Connects Claude AI to QGIS through the Model Context Protocol, allowing Claude to directly interact with and control QGIS for tasks like project creation, layer manipulation, and code execution.
    15
    1,124
    -
  • A
    license
    B
    quality
    F
    maintenance
    Connects Sketchup to Claude AI through the Model Context Protocol, allowing Claude to directly interact with and control Sketchup for prompt-assisted 3D modeling and scene manipulation.
    10
    490
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Connects 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.
    MIT