Salta l'installazione. Attivo in meno di 2 minuti.
Avvia una prova gratuita su cloud.anythingmcp.com, aggiungi Hugging Face con un clic, poi punta il tuo client AI (Claude, ChatGPT, Copilot o Cursor) all'endpoint MCP generato. Niente Docker, niente git clone, nessuna esperienza di sviluppo richiesta.
In breve
Fai esplorare alla tua AI l'Hugging Face Hub con il tuo access token: trova e confronta modelli, dataset, Spaces, paper e collection, guarda dentro i dataset riga per riga, leggi i file di qualsiasi repository e chatta con modelli aperti tramite Inference Providers.
Prova a chiedere
Prompt di esempio per Hugging Face
Clicca su un prompt per copiarlo. Incollalo in Claude, ChatGPT, Cursor, Gemini, Copilot o OpenClaw per eseguirlo contro questo connettore.
Claude è un'AI e può sbagliare. Verifica sempre le risposte.
💡 Niente installazione? Vai direttamente su cloud.anythingmcp.com. Accedi, clicca Connectors → Hugging Face, inserisci le credenziali, genera una MCP API key e hai finito. Niente Docker, niente
git clone, niente server locale.
Hugging Face + Cursor
Fai esplorare alla tua AI l'Hugging Face Hub con il tuo access token: trova e confronta modelli, dataset, Spaces, paper e collection, guarda dentro i dataset riga per riga, leggi i file di qualsiasi repository e chatta con modelli aperti tramite Inference Providers.
Prerequisiti
Le istruzioni di setup complete sono incluse nel connettore stesso (visibili nello store quando lo selezioni). Le variabili d'ambiente richieste sono:
HF_TOKEN
Step 1 — Ottieni le credenziali
- Accedi a
https://huggingface.coe apri Settings → Access Tokens (https://huggingface.co/settings/tokens). - Crea un token. Un token Read copre tutto tranne chat e inferenza: ricerca sull'Hub, dataset viewer, file, paper e collection. Per chattare con i modelli crea un token Fine-grained e spunta Make calls to Inference Providers; spunta anche l'accesso in lettura ai repo gated pubblici se usi modelli gated. Anche un token Write funziona, ma non serve mai, perché il connettore non modifica nulla sull'Hub.
- Incolla il token in
HF_TOKEN(inizia conhf_) e installa il connettore. Viene inviato solo a huggingface.co, datasets-server.huggingface.co e router.huggingface.co. - Verifica la configurazione con
huggingface_whoami: è gratuito e mostra a chi appartiene il token, il suo ruolo e le tue organizzazioni.
Gratis sull'Hugging Face (HF) Hub: cercare e leggere modelli, dataset, Spaces, paper, collection e file non costa nulla.
- Modelli:
huggingface_search_modelsfiltra per nome, task, autore, libreria o tag (per esempioggufolicense:mit) e per Inference Provider, ordinando per download, like o tendenza;huggingface_get_modelmostra licenza, dimensioni e file. - Dataset:
huggingface_search_datasetsehuggingface_get_dataset. Per guardare dentro un dataset senza scaricarlo, l'AI usa il dataset viewer:huggingface_dataset_splits,huggingface_dataset_first_rows,huggingface_dataset_rows(fino a 100 righe per pagina),huggingface_dataset_search(testo completo),huggingface_dataset_filter(condizioni in stile SQL),huggingface_dataset_sizeehuggingface_dataset_statistics(minimo, massimo, media e istogrammi per colonna). Ricerca, filtro e statistiche richiedono un dataset indicizzato dal viewer; uno nuovo o molto grande può rispondere che il suo indice è ancora in caricamento. - Spaces:
huggingface_search_spacesper nome,huggingface_semantic_search_spacesin base a cosa fa l'app ehuggingface_get_spaceper stato di esecuzione e hardware. - Paper:
huggingface_daily_papers,huggingface_search_papers,huggingface_get_paperehuggingface_read_paper(l'intera pagina del paper come testo). - File e collection:
huggingface_list_repo_filesehuggingface_read_fileleggono piccoli file di testo come un README o config.json; i pesi dei modelli e altri file binari grandi non sono leggibili.huggingface_list_collectionsehuggingface_get_collectionmostrano le collection curate.
Chat e inferenza costano, quindi l'AI chiede prima: huggingface_chat_completion e huggingface_run_inference_task sono addebitati sui tuoi crediti Hugging Face. Gli account PRO ricevono 2 dollari di crediti al mese; gli account gratuiti devono prima acquistare crediti su https://huggingface.co/settings/billing. Prima di ogni chiamata a pagamento l'AI ti dice quale modello userà e aspetta il tuo sì, e non ripete mai chiamate a pagamento senza chiedere. huggingface_list_chat_models mostra il prezzo per milione di token e huggingface_get_model_providers quali provider servono un modello.
Scegliere il provider: per impostazione predefinita risponde il provider attivo più veloce. Aggiungi :cheapest, :fastest, :preferred (il tuo ordine nelle impostazioni di Hugging Face) o il nome di un provider come :groq all'id del modello per scegliere tu. Un'organizzazione di cui fai parte può pagare al posto tuo. huggingface_run_inference_task esegue classificazione, riconoscimento di entità, fill-mask, riassunto, traduzione, classificazione zero-shot, risposta a domande, similarità tra frasi ed embedding sul provider hf-inference.
Contenuti non affidabili: model card, righe dei dataset, file, paper e risposte dei modelli provengono da terzi. L'AI tratta le istruzioni che contengono come dati, non come ordini.
Errori comuni: 401 su huggingface_whoami o in chat: il token è errato, revocato o mancante. 401 o 403 su un repository: è privato, gated (accetta prima le condizioni nella pagina del modello) o il tuo token fine-grained non lo copre; l'Hub risponde 401 anche per un repository che non esiste. 402 o un messaggio sui crediti: i crediti sono finiti. 403 in chat: al token fine-grained manca Make calls to Inference Providers. 400 model not supported: nessun provider attivo serve quel modello per la chat. 429: limite di frequenza; attendi un minuto e riprova.
Il connettore non crea né modifica repository, non carica file, non gestisce Spaces, Inference Endpoints o Jobs e non genera immagini.
Step 2 — Installa l'adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Aggiungi il connettore in Cursor
L'URL del tuo server: in AnythingMCP apri MCP Servers → il server su cui si trova questo connettore e copia il suo URL (
https://cloud.anythingmcp.com/mcp/…). Usalo ovunque questa guida mostraYOUR_SERVER_ID.
Cursor legge i server MCP da ~/.cursor/mcp.json. Aggiungi questa voce:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- Crea una chiave API MCP in AnythingMCP da MCP Servers → il tuo server → API keys e incollala al posto di
YOUR_MCP_API_KEY. - Salva il file e riavvia Cursor.
- Apri Cursor → Settings → MCP e verifica che
anythingmcpsia elencato e connesso. - Inizia a chattare: l'agente ora può usare i tool di
Hugging Face.
Tool disponibili
| Tool | What it does |
|---|---|
huggingface_whoami | Show who the Hugging Face token belongs to: user name, PRO status, whether the account can pay for inference, the organizations it belongs… |
huggingface_search_models | Search models on the Hugging Face Hub |
huggingface_get_model | Read one model's details from the Hugging Face Hub: task, library, license, base model, parameter count, downloads, likes, gated or… |
huggingface_get_model_providers | List the Inference Providers that serve a model through Hugging Face (e.g. groq, together, novita, fal-ai, hf-inference), with each… |
huggingface_list_chat_models | List every model available for chat through the Hugging Face router, with each provider's status, context length, price per million input… |
huggingface_search_datasets | Search datasets on the Hugging Face Hub by text in the id, author or organization and tag (e.g. task_categories:text-classification… |
huggingface_get_dataset | Read one dataset's details from the Hugging Face Hub: license, tasks, languages, size category, downloads, likes, gated or private, last… |
huggingface_dataset_splits | List a dataset's subsets (config) and splits (train, validation, test, ...) from the Hugging Face dataset viewer |
huggingface_dataset_first_rows | Show the column names and types and the first 20 rows of one split of a Hugging Face dataset, from the dataset viewer |
huggingface_dataset_rows | Read a slice of rows (up to 100) from one split of a Hugging Face dataset, starting at offset, to page through the data |
huggingface_dataset_search | Full-text search inside one split of a Hugging Face dataset (text columns only) and return the matching rows (up to 100) with the total… |
huggingface_dataset_filter | Filter the rows of one split of a Hugging Face dataset with an SQL-like condition and optional sort, e.g. where "label"=1 AND "score">0.5… |
huggingface_dataset_size | Show how big a Hugging Face dataset is: number of rows and columns and bytes (original files, Parquet, in memory) for the whole dataset… |
huggingface_dataset_statistics | Descriptive statistics for every column of one split of a Hugging Face dataset: for numbers min, max, mean, median, standard deviation and… |
huggingface_search_spaces | Search Spaces (hosted AI demo apps) on the Hugging Face Hub by text in the id, author and tag, sorted by likes, trending, creation or last… |
huggingface_semantic_search_spaces | Find Spaces (hosted AI demo apps) on Hugging Face by describing what they should do, e.g. 'remove image background' or 'transcribe audio' |
huggingface_get_space | Read one Space (hosted AI demo app) on Hugging Face: title, SDK, license, the app URL, the models and datasets it uses, and its runtime… |
huggingface_daily_papers | List the AI research papers curated on Hugging Face Daily Papers, newest first or by trending, for a day, an ISO week or a month (latest… |
huggingface_search_papers | Search AI research papers indexed on Hugging Face by words in the title and abstract |
huggingface_get_paper | Read one paper's page on Hugging Face by arXiv id: title, authors, abstract, AI summary and keywords, upvotes, and the first models… |
huggingface_read_paper | Read a paper's full Hugging Face page as markdown by arXiv id (title, abstract and the paper text as Hugging Face renders it), capped at… |
huggingface_list_repo_files | List the files and folders in a model, dataset or Space repository on Hugging Face, with sizes, at a branch, tag or commit |
huggingface_read_file | Read the start of one text file from a Hugging Face repository (a README, config.json, tokenizer_config.json, a Python script or a small… |
huggingface_list_collections | List curated collections on Hugging Face (groups of models, datasets, Spaces and papers), filtered by owner or by an item they contain… |
huggingface_get_collection | Read one Hugging Face collection with all its items (models, datasets, Spaces, papers) and the curator's notes |
huggingface_chat_completion | Chat with an open model through Hugging Face Inference Providers (OpenAI-compatible) |
huggingface_run_inference_task | Run a model on the hf-inference provider for a non-chat task: text classification, token classification (named entities), fill-mask… |
Esempi di prompt
- "Trova i cinque modelli di classificazione del testo in italiano più scaricati su Hugging Face e confronta licenze e dimensioni."
- "Mostrami le prime righe dello split test di stanfordnlp/imdb e conta quante recensioni hanno label 1."
- "Quali paper hanno avuto più upvote questa settimana su Hugging Face Daily Papers? Riassumi i primi tre."
- "Quali provider servono adesso openai/gpt-oss-120b per la chat e quanto costa per milione di token?"
- "Trova uno Space attivo che rimuove lo sfondo dalle immagini e dimmi quale modello usa."
- "Riassumi questo paragrafo con meta-llama/Llama-3.1-8B-Instruct sul provider più economico. Dimmi modello e prezzo prima di eseguirlo."
FAQ
Cursor supporta server MCP personalizzati nel piano gratuito? Sì, MCP è disponibile nei piani Hobby, Pro e Business.
Prossimi passi
Questa guida ti è stata utile?