Kaggle-MCP

by 54yyyu
MIT License
1

Kaggle-MCP:Claude AI 的 Kaggle API 集成

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

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

特征

  • 身份验证:使用您的 Kaggle 凭证进行安全身份验证
  • 竞赛:浏览、搜索和下载 Kaggle 竞赛数据
  • 数据集:从 Kaggle 查找、探索和下载数据集
  • 内核:搜索并分析 Kaggle 笔记本/内核
  • 模型:访问 Kaggle 上提供的预训练模型

快速安装

以下命令安装 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 文件。

-
security - not tested
-
license - not tested
-
quality - not tested

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

  1. Features
    1. Quick Installation
      1. macOS / Linux
      2. Windows
      3. Manual Installation
    2. Configuration
      1. Manual Configuration
    3. Kaggle API Credentials
      1. Available Tools
        1. Examples
          1. Use Cases
            1. Requirements
              1. License

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  Connects Claude to Portkey's API for managing AI configurations, workspaces, analytics, and user access, providing comprehensive control over API usage and settings.
                  Last updated -
                  9
                  TypeScript
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  A Model Context Protocol server that connects to Amadeus API, enabling AI assistants to search flights, analyze prices, find best travel deals, and plan multi-city trips.
                  Last updated -
                  294
                  TypeScript
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server enabling AI assistants to interact with Kong Konnect's API Gateway, providing tools to query analytics data, inspect configurations, and manage control planes through natural language.
                  Last updated -
                  10
                  22
                  TypeScript
                  Apache 2.0
                  • Apple
                • -
                  security
                  -
                  license
                  -
                  quality
                  Provides access to various AI tools through Model Context Protocol, allowing Claude Desktop users to integrate and use Superface capabilities via API.
                  Last updated -
                  3
                  JavaScript
                  MIT License

                View all related MCP servers

                ID: 5m1el8f5l0