kaggle-mcp
Provides tools for interacting with the Kaggle API, enabling AI agents to manage competitions, datasets, kernels, models, benchmarks, and discussions on Kaggle.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kaggle-mcplist top trending Kaggle datasets"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A full-featured MCP server for the Kaggle API — competitions, datasets, kernels, models, benchmarks, and discussions.
Why kaggle-mcp?
Kaggle provides an official remote MCP server (https://www.kaggle.com/mcp) covering competitions, datasets, notebooks, models, and benchmarks — a solid foundation for most Kaggle workflows.
kaggle-mcp extends that foundation with what the official server is missing: 10 discussion tools. You can search discussions, browse by source type, filter competition discussions by recency, read solution write-ups, explore trending topics, and more — none of which are available in the official MCP.
It also runs locally over stdio, so there's no remote MCP dependency and no npx mcp-remote required.
Use kaggle-mcp if you need discussion tools or prefer a local stdio setup without remote dependencies. Use the official MCP if you prefer OAuth 2.0 auth or want zero local installation.
Quick Navigation
Section | Description |
Kaggle API token setup | |
uvx / pip / source | |
Claude Desktop, Claude Code, VS Code, Cursor | |
Competitions, Datasets, Kernels, Models, Benchmarks, Discussions | |
MCP Inspector | |
Local development setup |
Prerequisites
A Kaggle API token is required. You can authenticate using either method:
Go to https://www.kaggle.com/settings → API → Create New API Token
Set the environment variable:
export KAGGLE_API_TOKEN="KGAT_xxxxxxxxxxxx"Download the token file from Kaggle settings, it will be saved to ~/.kaggle/kaggle.json:
{"username": "your_username", "key": "your_api_key"}Installation
Note: MCP servers are launched automatically by MCP clients (Claude Code, VS Code, etc.) — you don't need to run them manually in the terminal. The commands below are what the client uses under the hood.
Using uvx (recommended)
No installation needed. uvx will automatically download and run the server:
# Used by MCP clients internally; no need to run this yourself
uvx kaggle-mcp-serverUsing pip
pip install kaggle-mcp-serverFrom source
git clone https://github.com/Galaxy-Dawn/kaggle-mcp.git
cd kaggle-mcp
uv syncConfiguration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"kaggle": {
"command": "uvx",
"args": ["kaggle-mcp-server"],
"env": {
"KAGGLE_API_TOKEN": "KGAT_xxxxxxxxxxxx"
}
}
}
}{
"mcpServers": {
"kaggle": {
"command": "python",
"args": ["-m", "kaggle_mcp.server"],
"env": {
"KAGGLE_API_TOKEN": "KGAT_xxxxxxxxxxxx"
}
}
}
}Claude Code
claude mcp add kaggle -- uvx kaggle-mcp-serverOr add to your project's .mcp.json (not settings.json):
{
"mcpServers": {
"kaggle": {
"command": "uvx",
"args": ["kaggle-mcp-server"],
"env": {
"KAGGLE_API_TOKEN": "KGAT_xxxxxxxxxxxx"
}
}
}
}VS Code
Add to .vscode/mcp.json (note: the key is "servers", not "mcpServers"):
{
"servers": {
"kaggle": {
"command": "uvx",
"args": ["kaggle-mcp-server"],
"env": {
"KAGGLE_API_TOKEN": "KGAT_xxxxxxxxxxxx"
}
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"kaggle": {
"command": "uvx",
"args": ["kaggle-mcp-server"],
"env": {
"KAGGLE_API_TOKEN": "KGAT_xxxxxxxxxxxx"
}
}
}
}Tip: If you already have
KAGGLE_API_TOKENin your shell environment (e.g. in.bashrcor.zshrc), you can omit the"env"block.
Tools (51)
Competitions (10)
Tool | Description |
| Search and list Kaggle competitions |
| List data files for a competition |
| Download competition data files |
| Submit predictions to a competition |
| View submission history |
| View leaderboard (top 20) |
| Get detailed competition info |
| Get data files summary |
| Get details for a single submission |
| Download full leaderboard as CSV |
competitions_list —
search,category,sort_by(latestDeadline/numberOfTeams/recentlyCreated),pagecompetition_files —
competition(URL suffix, e.g.titanic)competition_download —
competition,file_name(optional, empty = all files) → download URLcompetition_submit —
competition,blob_file_tokens,messagecompetition_submissions —
competitioncompetition_leaderboard —
competition→ top 20 teams and scorescompetition_get —
competition→ full details (deadline, reward, evaluation metric, etc.)competition_data_summary —
competition→ data files summary dictcompetition_get_submission —
competition,submission_id(integer)competition_leaderboard_download —
competition→ download URL for full leaderboard CSV
Datasets (11)
Tool | Description |
| Search and list Kaggle datasets |
| List files in a dataset |
| Download dataset files |
| Get dataset metadata |
| Create a new dataset |
| Upload a file to Kaggle |
| Get full dataset information |
| Create a new dataset version |
| Update dataset title/description |
| Delete a dataset |
| Download a single file from a dataset |
datasets_list —
search,sort_by(hottest/votes/updated/active),file_type,pagedataset_files —
owner,dataset_slugdataset_download —
owner,dataset_slug,file_name(optional) → download URLdataset_metadata —
owner,dataset_slug→ metadata dictdataset_create —
owner,slug,title,file_tokens(fromfile_upload),license_name,is_privatefile_upload —
file_name,content→ file token for use indataset_createdataset_get —
owner,dataset_slug→ full dataset detailsdataset_create_version —
owner,dataset_slug,version_notes,file_tokensdataset_update_metadata —
owner,dataset_slug,title,descriptiondataset_delete —
owner,dataset_slugdataset_download_file —
owner,dataset_slug,file_name→ download URL
Kernels (9)
Tool | Description |
| Search and list notebooks/kernels |
| Get a notebook's source code |
| Push/save a notebook to Kaggle |
| Get kernel output download URL |
| Create an interactive kernel session |
| Get kernel session execution status |
| List output files from a kernel session |
| Cancel a running kernel session |
| List top public kernels for a competition sorted by score |
kernels_list —
search,competition,dataset,sort_by(hotness/commentCount/dateCreated/dateRun/relevance/voteCount),pagekernel_pull —
user_name,kernel_slug→ metadata + source codekernel_push —
title,text,language(python/r),kernel_type(notebook/script),is_privatekernel_output —
user_name,kernel_slug→ download URLkernel_session_create —
user_name,kernel_slug→ session detailskernel_session_status —
user_name,kernel_slug→ status + failure message if anykernel_session_output —
user_name,kernel_slug→ list of output files with URLskernel_session_cancel —
user_name,kernel_slugcompetition_top_kernels —
competition,sort_by(scoreDescending/scoreAscending/voteCount/hotness/dateCreated/dateRun/commentCount),page_size— Note: Kaggle API does not expose score values for active competitions; scores are extracted from notebook titles where authors include them (e.g.[0.371],LB:0.95)
Models (10)
Tool | Description |
| Search and list Kaggle models |
| Get detailed model information |
| Create a new model |
| Update model metadata |
| Delete a model |
| List all instances of a model |
| Get a specific model instance |
| Create a new model instance |
| List versions of a model instance |
| Create a new model instance version |
models_list —
search,owner,sort_by(hotness/downloadCount/createTime/updateTime),page_sizemodel_get —
owner,model_slugmodel_create —
owner,slug,title,subtitle,is_private,descriptionmodel_update —
owner,model_slug,title,subtitle,descriptionmodel_delete —
owner,model_slugmodel_instances_list —
owner,model_slugmodel_instance_get —
owner,model_slug,framework,instance_slugmodel_instance_create —
owner,model_slug,framework,instance_slug,license_name,is_privatemodel_instance_versions —
owner,model_slug,framework,instance_slugmodel_instance_version_create —
owner,model_slug,framework,instance_slug,version_notes,file_tokens
Benchmarks (1)
Tool | Description |
| Get benchmark leaderboard |
benchmark_leaderboard —
owner_slug,benchmark_slug,version_number(optional, default0)
Discussions (10)
Tool | Description |
| Search Kaggle discussions |
| List discussions for a competition/dataset |
| Get discussion content by ID |
| Get comments for a discussion |
| Search comments across all discussions |
| Browse discussions by source type |
| Browse competition solution write-ups |
| Browse Kaggle write-ups by type |
| Browse trending discussions |
| List the current user's discussions |
discussions_search —
query,sort_by(hotness/votes/comments/created/updated),source_type,page_sizediscussions_list —
competition,dataset,page_size,since_hours(filter to last N hours),new_only(filter bycreateTimevsupdateTime)discussion_detail —
discussion_id(integer),competition(recommended for accuracy)discussion_comments —
discussion_id,page_sizediscussion_comments_search —
query,page_sizediscussions_by_source —
source_type(competition/dataset/kernel/site_forum/competition_solution/model/write_up/learn_track/benchmark/benchmark_task),query,sort_by,page_sizediscussions_solutions —
competition(optional slug),sort_by,page_sizediscussions_writeups —
write_up_type(knowledge/competition_solution/hackathon/personal_project/forum_topic/blog),query,page_sizediscussions_trending —
source_type(optional),page_sizediscussions_my —
page_size
Debugging
You can use the MCP Inspector to debug the server:
npx @modelcontextprotocol/inspector uvx kaggle-mcp-serverThe Inspector will provide a URL to access debugging tools in your browser.
Development
git clone https://github.com/Galaxy-Dawn/kaggle-mcp.git
cd kaggle-mcp
uv syncThen configure the server in your MCP client using the local path, or test with MCP Inspector.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Galaxy-Dawn/kaggle-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server