
arrismo/kaggle-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
arrismo/kaggle-mcp は [https://github.com/arrismo/kaggle-mcp.] からインポートされた MCP サーバー候補です
概要
arrismo/kaggle-mcp は [https://github.com/arrismo/kaggle-mcp.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
Claude DesktopなどのMCPクライアントにKaggleデータセット検索、ダウンロード、EDAプロンプト生成を明示したモデルコンテキストプロトコル(MCP)サーバー。
##特徴
- キーワードでKaggleデータセットを検索します。
- ローカルでKaggleデータセットをダウンロードして解凍します。
- カグルデータセット用のスターター探査データ解析(EDA)プロンプトを生成します。
- 環境変数または標準[[
kaggle.json]]ファイルを使用して、Kaggle認証をサポート。 - ローカル、ドッカー、またはスミery を介して実行します。
利用可能なMCP機能
ツール
####[search_kaggle_datasets(query: str)
query に一致するデータセットを検索し、JSON として最大 10 件の結果を返します。
返されたフィールドには以下のものが含まれます:
- [
ref - [
title - [
subtitle - [
download_count - [
last_updated - [
usability_rating
[[T9]
Kaggle データセットをダウンロードして解凍します。
- [
dataset_ref:[owner/dataset-slug]]の形式の[[kaggle/titanic]]のKaggleデータセット参照。 - [
download_path: オプションのローカル出力パス。 省略した場合は、[./datasets/ /に保存されます。
プロンプト
[[T15]
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Kaggle MCP Server
A Model Context Protocol (MCP) server that exposes Kaggle dataset search, download, and EDA prompt generation to MCP clients such as Claude Desktop.
Features
- Search Kaggle datasets by keyword.
- Download and unzip Kaggle datasets locally.
- Generate a starter Exploratory Data Analysis (EDA) prompt for a Kaggle dataset.
- Supports Kaggle credentials via environment variables or the standard
kaggle.jsonfile. - Runs locally, in Docker, or through Smithery.
Available MCP Capabilities
Tools
search_kaggle_datasets(query: str)
Searches Kaggle for datasets matching query and returns up to 10 results as JSON.
Returned fields include:
reftitlesubtitledownload_countlast_updatedusability_rating
download_kaggle_dataset(dataset_ref: str, download_path: str | None = None)
Downloads and unzips a Kaggle dataset.
dataset_ref: Kaggle dataset reference inowner/dataset-slugformat, for examplekaggle/titanic.download_path: Optional local output path. If omitted, files are saved to./datasets//.
Prompts
generate_eda_notebook(dataset_ref: str)
Creates a prompt for generating basic Python EDA code for the provided Kaggle dataset reference. The prompt asks for data loading, missing-value checks, visualizations, and summary statistics.
Requirements
- Python 3.10+
- Kaggle account and API token
- An MCP-compatible client
Kaggle Credentials
Create a Kaggle API token from your Kaggle account settings:
- Go to .
- Select Create New API Token.
- Download
kaggle.json.
Use either environment variables or the standard Kaggle config file.
Option 1: Environment variables
Create a .env file in the project root:
KAGGLE_USERNAME=your_kaggle_username
KAGGLE_KEY=your_kaggle_api_key
Option 2: kaggle.json
Place kaggle.json in the standard Kaggle location:
- macOS/Linux:
~/.kaggle/kaggle.json - Windows:
C:\Users\\.kaggle\kaggle.json
On macOS/Linux, make sure the file is not world-readable:
chmod 600 ~/.kaggle/kaggle.json
Installation
git clone
cd kaggle-mcp
Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
Install dependencies with one of the following methods.
Using uv
uv sync
Using pip
pip install -r requirements.txt
Running Locally
With uv:
uv run kaggle-mcp
Or run the server module directly:
python src/server.py
The server communicates over MCP stdio and is intended to be launched by an MCP client.
Claude Desktop Configuration
インストール
docker run --rm -i --env-file .env kaggle-mcp設定
{
"mcpServers": {
"kaggle-mcp": {
"command": "uv",
"args": ["run", "kaggle-mcp"],
"cwd": "/absolute/path/to/kaggle-mcp",
"env": {
"KAGGLE_USERNAME": "your_kaggle_username",
"KAGGLE_KEY": "your_kaggle_api_key"
}
}
}
}