CoolFace
Apppublic

Hoff1610/ml-intern

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

๐Ÿค— HF ML Intern MCP Server

Your personal ML intern for Claude Code โ€” a complete suite of ML engineering tools that replicates the Hugging Face Agent's functionality.

What This Is

This is an MCP (Model Context Protocol) server deployed as a Hugging Face Space. When connected to Claude Code, it gives your agent the ability to:

  • โ€”๐Ÿ” Research: Search ML papers, Hugging Face docs, and GitHub examples
  • โ€”๐Ÿ“Š Audit Datasets: Inspect schemas, splits, and sample rows before training
  • โ€”๐Ÿ”Ž Discover: Search models, datasets, and spaces on the Hugging Face Hub
  • โ€”๐Ÿ‹๏ธ Train: Launch fine-tuning jobs (SFT, DPO, GRPO) on HF infrastructure
  • โ€”๐Ÿ“ Manage Repos: List files, read configs, create branches, manage repos
  • โ€”๐Ÿ“ Plan: Track multi-step ML task progress

How to Connect to Claude Code

Step 1: Add the MCP Server

Edit your Claude Code MCP configuration (typically ~/.claude/mcp.json or via claude config):

json
{
  "mcpServers": {
    "hf-ml-intern": {
      "url": "https://hoff1610-ml-intern.hf.space/mcp"
    }
  }
}

Or use the Space MCP badge at huggingface.co/spaces/Hoff1610/ml-intern to auto-generate the config.

Step 2: Ensure HF_TOKEN is set

Your HF_TOKEN needs these permissions:

  • โ€”inference.serverless.write (for Inference Providers)
  • โ€”Read access to repos you want to inspect
bash
export HF_TOKEN="hf_xxxxx"

Step 3: Restart Claude Code

bash
claude

Claude Code will auto-discover all tools from the MCP endpoint.

Tools Available

ToolPurpose
hub_repo_searchSearch models, datasets, spaces on HF Hub
hub_repo_detailsGet detailed metadata for repos
hf_inspect_datasetCRITICAL: Audit dataset schema & samples before training
hf_repo_files_listList files in a repo with sizes
hf_repo_files_readRead text files (configs, scripts, docs)
hf_papers_searchSearch ML papers on HF Hub
hf_papers_detailsGet paper metadata & abstract
explore_hf_docsFind relevant HF documentation pages
fetch_hf_docsRead full HF docs content
research_github_find_examplesFind working examples BEFORE writing code
research_github_read_fileRead example scripts from GitHub
hf_jobs_runLaunch training jobs on HF infrastructure
hf_jobs_psList running jobs
hf_jobs_logsGet job logs for debugging
hf_repo_git_create_repoCreate new HF repos
hf_repo_git_create_branchCreate branches for experiments
generate_imageImage generation via diffusion models
plan_tool_updateTrack task progress

Architecture

Claude Code โ†’ MCP Protocol โ†’ HF ML Intern Space โ†’ HF APIs/Hub
                                    โ†“
                              hf_jobs (training)
                              datasets (audit)
                              Hub API (search/manage)
                              GitHub API (examples)

Inspired By

This replicates the tooling available to the Hugging Face Agent, giving you the same research-first, data-audit-first, example-first approach to ML engineering in your personal Claude Code setup.

License

MIT โ€” feel free to fork and extend.