Kaggle-MCP:Claude AI 的 Kaggle API 集成
Kaggle-MCP通过模型上下文协议(MCP)将Claude AI连接到Kaggle API,从而通过AI接口实现竞赛、数据集和内核操作。
特征
- 身份验证:使用您的 Kaggle 凭证进行安全身份验证
- 竞赛:浏览、搜索和下载 Kaggle 竞赛数据
- 数据集:从 Kaggle 查找、探索和下载数据集
- 内核:搜索并分析 Kaggle 笔记本/内核
- 模型:访问 Kaggle 上提供的预训练模型
快速安装
以下命令安装 Kaggle-MCP 的基础版本。
macOS / Linux
视窗
手动安装
配置
安装完成后,运行安装实用程序来配置 Claude Desktop:
这将找到并更新您的 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 配置中:
Kaggle API 凭证
要使用 Kaggle-MCP,您需要设置您的 Kaggle API 凭证:
- 转到您的Kaggle 帐户设置
- 在 API 部分,单击“创建新的 API 令牌”
- 这将下载包含您的凭据的
kaggle.json
文件 - 将此文件移动到
~/.kaggle/kaggle.json
(如果需要,创建目录) - 设置正确的权限:
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 文件。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
通过模型上下文协议将 Claude AI 连接到 Kaggle API,通过 AI 接口实现竞赛、数据集和内核操作。
Related MCP Servers
- -securityFlicense-qualityConnects 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.Last updated -286Python
- -securityFlicense-qualityConnects 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.Last updated -20
- AsecurityAlicenseAqualityIntegration that connects Sketchup to Claude AI through the Model Context Protocol, allowing Claude to directly interact with and control Sketchup for prompt-assisted 3D modeling, scene creation, and manipulation.Last updated -104MIT License
- -securityFlicense-qualityConnects QGIS to Claude AI through the Model Context Protocol, enabling AI-assisted project creation, layer manipulation, processing algorithm execution, and Python code running within QGIS.Last updated -Python